Skip to content

Commit

Permalink
chore: add missing clean script in packages (#11983)
Browse files Browse the repository at this point in the history
* chore: add missing `clean` script in packages

* Update packages/adapter-azure-tables/package.json

---------

Co-authored-by: Balázs Orbán <[email protected]>
  • Loading branch information
halvaradop and balazsorban44 authored Oct 8, 2024
1 parent 0244513 commit e8e6b4e
Show file tree
Hide file tree
Showing 21 changed files with 39 additions and 21 deletions.
3 changes: 2 additions & 1 deletion packages/adapter-azure-tables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"scripts": {
"test": "./test/test.sh",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-d1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
},
"scripts": {
"build": "tsc",
"test": "vitest -c ../utils/vitest.config.ts"
"test": "vitest -c ../utils/vitest.config.ts",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-dgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"scripts": {
"build": "tsc",
"test": "./test/test.sh"
"test": "./test/test.sh",
"clean": "rm -rf *.js *.d.ts* lib"
},
"devDependencies": {
"@types/jsonwebtoken": "^8.5.5"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"access": "public"
},
"scripts": {
"clean": "find . -type d -name \".drizzle\" | xargs rm -rf",
"clean": "rm -rf *.js *.d.ts* lib",
"clean:drizzle": "find . -type d -name \".drizzle\" | xargs rm -rf",
"test": "pnpm test:mysql && pnpm test:sqlite && pnpm test:pg",
"test:mysql": "pnpm clean && ./test/mysql/test.sh",
"test:sqlite": "pnpm clean && ./test/sqlite/test.sh",
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-edgedb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"scripts": {
"build": "tsc",
"test": "vitest -c ../utils/vitest.config.ts"
"test": "vitest -c ../utils/vitest.config.ts",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-fauna/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"fauna": "fauna",
"build": "tsc",
"dev": "tsc -w",
"test": "./test/test.sh"
"test": "./test/test.sh",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"scripts": {
"build": "tsc",
"test": "./test/test.sh"
"test": "./test/test.sh",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-hasura/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
},
"scripts": {
"test": "./test/test.sh",
"build": "graphql-codegen-esm --config codegen.ts && tsc"
"build": "graphql-codegen-esm --config codegen.ts && tsc",
"clean": "rm -rf *.js *.d.ts* lib"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-kysely/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"scripts": {
"build": "tsc",
"test": "./test/test.sh"
"test": "./test/test.sh",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-mikro-orm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"scripts": {
"test": "vitest -c ../utils/vitest.config.ts",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts* lib"
},
"peerDependencies": {
"@mikro-orm/core": "^5"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
},
"scripts": {
"test": "./test/test.sh",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-neo4j/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
},
"scripts": {
"test": "./test/test.sh",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"peerDependencies": {
"neo4j-driver": "^4.0.0 || ^5.7.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"scripts": {
"test": "./test/test.sh",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"access": "public"
},
"scripts": {
"clean": "rm ./prisma/dev.db* || echo 'File deleted'",
"clean": "rm ./prisma/dev.db* || echo 'File deleted' && rm -rf *.js *.d.ts*",
"init:default": "prisma migrate dev --name init --skip-seed",
"init:custom": "prisma migrate dev --name init-custom --schema ./prisma/custom.prisma",
"test:default": "pnpm init:default && vitest run -c ../utils/vitest.config.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-sequelize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
},
"scripts": {
"test": "vitest -c ../utils/vitest.config.ts",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-surrealdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"scripts": {
"test": "./test/test.sh",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-typeorm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"scripts": {
"build": "tsc",
"dev": "tsc -w",
"clean": "rm -rf dist",
"clean": "rm -rf dist *.js *.d.ts*",
"test": "pnpm test:mysql && pnpm test:sqlite && pnpm test:pg",
"test:mysql": "pnpm clean && ./test/mysql/test.sh",
"test:pg": "pnpm clean && ./test/postgresql/test.sh",
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-unstorage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"scripts": {
"test": "./test/test.sh",
"dev": "tsc -w",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-upstash-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
},
"scripts": {
"test": "./test/test.sh",
"build": "tsc"
"build": "tsc",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-xata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
},
"scripts": {
"build": "tsc",
"test": "vitest -c ../utils/vitest.config.ts"
"test": "vitest -c ../utils/vitest.config.ts",
"clean": "rm -rf *.js *.d.ts*"
},
"dependencies": {
"@auth/core": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"scripts": {
"build": "pnpm clean && pnpm providers && tsc",
"clean": "rm -rf lib index.* src/lib/providers",
"clean": "rm -rf lib *.js *.d.ts* src/lib/providers",
"test": "vitest run -c ../utils/vitest.config.ts",
"providers": "node ../utils/scripts/providers"
},
Expand Down

0 comments on commit e8e6b4e

Please sign in to comment.