Skip to content

Commit

Permalink
clean build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
younes200 committed Oct 4, 2023
1 parent 73273a7 commit 19565e2
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 532 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
9 changes: 2 additions & 7 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"node": ">=16"
},
"scripts": {
"dev": "tsx watch --clear-screen=false src ",
"dev": "dotenv -e ../../.env -- tsup --watch --silent --onSuccess 'node dist/index.js'",
"build": "tsup",
"start": "node dist"
},
Expand All @@ -35,13 +35,8 @@
"copyfiles": "^2.4.1",
"del-cli": "^5.0.0",
"dotenv-cli": "^7.2.1",
"esbuild": "^0.19.4",
"np": "^7.7.0",
"tsup": "^7.2.0",
"tsx": "^3.12.10",
"typescript": "^5.2.2"
},
"files": [
"dist"
]
}
}
5 changes: 2 additions & 3 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "tsup",
"dev": "tsx watch --clear-screen=false src ",
"dev": "dotenv -e ../../.env -- tsup --watch --silent --onSuccess 'node dist/index.js'",
"start": "node dist/index",
"test-start": "start-server-and-test 'node dist/index' 2021"
},
Expand All @@ -18,7 +18,6 @@
"connect-redis": "^7.1.0",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-session": "^1.17.3",
"lodash": "^4.17.21",
Expand All @@ -35,10 +34,10 @@
"@types/node": "^20.8.2",
"@types/swagger-ui-express": "^4.1.3",
"@types/uuid": "^9.0.4",
"dotenv-cli": "^7.3.0",
"start-server-and-test": "^2.0.0",
"tslib": "^2.6.2",
"tsup": "^7.2.0",
"tsx": "^3.12.10",
"typescript": "^5.2.2",
"wait-port": "^1.1.0"
}
Expand Down
5 changes: 1 addition & 4 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"scripts": {
"clean": "rm -rf dist",
"build": "tsup",
"watch": "tsc -b --watch --preserveWatchOutput",
"dev": "nodemon --signal SIGINT --watch 'dist/**/*.js' -x \"node --inspect=9678 -r source-map-support/register\" dist/index.js | pino-pretty",
"dev": "dotenv -e ../../.env -- tsup --watch --silent --onSuccess 'node dist/index.js'",
"start": "node --use-strict dist/index.js"
},
"devDependencies": {
Expand Down Expand Up @@ -71,8 +70,6 @@
"knex-types": "^0.4.0",
"mock-req": "^0.2.0",
"pino-pretty": "^9.1.1",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
}
Expand Down
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"babel-jest": "^27.0.1",
"dotenv": "^16.3.1",
"eslint": "^8.50.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-react": "^1.1.7",
Expand All @@ -50,15 +49,11 @@
"jest": "^27.0.1",
"mock-req": "^0.2.0",
"mock-res": "^0.5.0",
"nodemon": "^2.0.22",
"prettier": "^2.3.0",
"rimraf": "^3.0.2",
"start-server-and-test": "^2.0.0",
"ts-jest": "^27.0.1",
"ts-loader": "^8.0.11",
"ts-node": "^10.0.0",
"tsup": "^5.11.13",
"tsx": "^3.12.10",
"turbo": "^1.10.14",
"typescript": "^5.2.2",
"wait-port": "^1.1.0"
Expand Down
4 changes: 0 additions & 4 deletions packages/prisma/.npmignore

This file was deleted.

5 changes: 1 addition & 4 deletions packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"build": "yarn run generate && tsup",
"clean": "rimraf .turbo node_modules dist",
"dev": "tsx watch --clear-screen=false src ",
"dev": "tsup --watch --silent",
"setup": "yarn db:push && yarn migrate:init && migrate:deploy && yarn generate",
"migrate:init": "yarn prisma migrate resolve --applied 0_init",
"migrate:deploy": "yarn prisma migrate deploy",
Expand All @@ -37,14 +37,11 @@
"devDependencies": {
"@celluloid/config": "*",
"@types/dotenv": "^6.0.0",
"copyfiles": "^2.4.1",
"dotenv-cli": "^7.2.1",
"eslint": "^8.50.0",
"prisma": "^5.4.0",
"rimraf": "^5.0.1",
"ts-node-dev": "^2.0.0",
"tsup": "^5.11.13",
"tsx": "^3.7.1",
"typescript": "^5.2.2"
},
"dependencies": {
Expand Down
9 changes: 3 additions & 6 deletions packages/trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"dist"
],
"scripts": {
"build1": "tsup",
"build": "esbuild src/index.ts --bundle --packages=external --platform=node --format=esm --outdir=dist --sourcemap",
"dev": "esbuild src/index.ts --bundle --packages=external --platform=node --format=esm --outdir=dist --sourcemap --watch"
"build": "tsup",
"dev": "tsup --watch --silent"
},
"dependencies": {
"@celluloid/prisma": "*",
Expand All @@ -28,8 +27,6 @@
"devDependencies": {
"@celluloid/config": "*",
"@types/uuid": "^9.0.4",
"esbuild": "^0.19.4",
"tsup": "^7.2.0",
"tsx": "^3.12.10"
"tsup": "^7.2.0"
}
}
3 changes: 2 additions & 1 deletion packages/trpc/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default defineConfig({
clean: true,
dts: true,
entry: ["src/index.ts"],
format: ["cjs", "esm"],
target: "esnext",
format: ["esm"],
minify: isProduction,
sourcemap: true,
});
Loading

0 comments on commit 19565e2

Please sign in to comment.