Skip to content

Commit

Permalink
chore: remove dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Dec 16, 2024
1 parent e3f63a0 commit 7e5d195
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 121 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"test:react": "vitest --project wagmi",
"test:typecheck": "vitest typecheck",
"test:update": "vitest --update",
"test:ui": "vitest --ui",
"test:vue": "vitest --project @wagmi/vue",
"version:update": "bun scripts/updateVersion.ts",
"version:update:viem": "bun scripts/updateViemVersion.ts"
Expand All @@ -48,10 +47,8 @@
"@changesets/cli": "^2.27.8",
"@types/bun": "^1.1.10",
"@vitest/coverage-v8": "^2.1.1",
"@vitest/ui": "^2.1.1",
"@wagmi/test": "workspace:*",
"bun": "^1.1.29",
"glob": "^10.4.5",
"happy-dom": "^15.7.4",
"knip": "^5.30.6",
"prool": "^0.0.16",
Expand Down
132 changes: 40 additions & 92 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions scripts/formatPackageJson.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import path from 'node:path'
import { glob } from 'glob'

// Generates package.json files to be published to NPM with only the necessary fields.

console.log('Formatting package.json files.')

// Get all package.json files
const packagePaths = await glob('packages/**/package.json', {
ignore: ['**/dist/**', '**/node_modules/**'],
})
const packagePaths = await Array.fromAsync(
new Bun.Glob('packages/**/package.json').scan(),
)

let count = 0
for (const packagePath of packagePaths) {
Expand Down
7 changes: 3 additions & 4 deletions scripts/generateProxyPackages.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import fs from 'node:fs/promises'
import path from 'node:path'
import { glob } from 'glob'

// Generates proxy packages for package.json#exports.

console.log('Generating proxy packages.')

// Get all package.json files
const packagePaths = await glob('packages/**/package.json', {
ignore: ['**/dist/**', '**/node_modules/**'],
})
const packagePaths = await Array.fromAsync(
new Bun.Glob('packages/**/package.json').scan(),
)

let count = 0
for (const packagePath of packagePaths) {
Expand Down
7 changes: 3 additions & 4 deletions scripts/preconstruct.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import fs from 'node:fs/promises'
import path from 'node:path'
import { glob } from 'glob'

// Symlinks package sources to dist for local development

console.log('Setting up packages for development.')

// Get all package.json files
const packagePaths = await glob('**/package.json', {
ignore: ['**/dist/**', '**/node_modules/**'],
})
const packagePaths = await Array.fromAsync(
new Bun.Glob('**/package.json').scan(),
)

let count = 0
for (const packagePath of packagePaths) {
Expand Down
7 changes: 3 additions & 4 deletions scripts/restorePackageJson.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import fs from 'node:fs/promises'
import path from 'node:path'
import { glob } from 'glob'

// Restores package.json files from package.json.tmp files.

console.log('Restoring package.json files.')

// Get all package.json files
const packagePaths = await glob('packages/**/package.json.tmp', {
ignore: ['**/dist/**', '**/node_modules/**'],
})
const packagePaths = await Array.fromAsync(
new Bun.Glob('packages/**/package.json.tmp').scan(),
)

let count = 0
for (const packagePath of packagePaths) {
Expand Down
7 changes: 3 additions & 4 deletions scripts/updateVersion.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import path from 'node:path'
import { glob } from 'glob'

// Updates package version.ts files (so you can use the version in code without importing package.json).

console.log('Updating version files.')

// Get all package.json files
const packagePaths = await glob('**/package.json', {
ignore: ['**/dist/**', '**/node_modules/**'],
})
const packagePaths = await Array.fromAsync(
new Bun.Glob('**/package.json').scan(),
)

let count = 0
for (const packagePath of packagePaths) {
Expand Down
8 changes: 3 additions & 5 deletions scripts/updateViemVersion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { glob } from 'glob'

// Updates viem version in Vitest snapshots, etc.

console.log('Updating Viem version.')
Expand All @@ -10,9 +8,9 @@ const viemVersion = packageJson.devDependencies.viem

// Update Vitest snapshots
// Get all *.test.ts files
const testPaths = await glob('packages/**/*.test.ts', {
ignore: ['**/dist/**', '**/node_modules/**'],
})
const testPaths = await Array.fromAsync(
new Bun.Glob('packages/**/*.test.ts').scan(),
)

let count = 0
for (const testPath of testPaths) {
Expand Down
Loading

0 comments on commit 7e5d195

Please sign in to comment.