Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit c626055

Browse files
committed
Cleanup build scripts
1 parent 8e2a345 commit c626055

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Diff for: nodemon.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"src/generated/**/*"
77
],
88
"ext": "ts",
9-
"exec": "npx tsoa routes && npx tsx src/index.ts"
9+
"exec": "npm run generate && npx tsx src/index.ts"
1010
}

Diff for: package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@
3636
"main": "lib/index.js",
3737
"scripts": {
3838
"dev": "nodemon",
39-
"build": "npm run generate && npm run check-types && ./scripts/build.js",
39+
"build": "npm run generate && tsc --noEmit && ./scripts/build.js",
4040
"start": "node lib/index.js",
41-
"generate": "tsoa spec-and-routes && npm run spec:format",
42-
"spec:format": "./scripts/formatSpec.js",
41+
"generate": "tsoa spec-and-routes && ./scripts/formatSpec.js",
4342
"docker:build": "docker build -t e2b/chatgpt-plugin-api .",
44-
"docker:run": "docker run --init -p 3000:3000 e2b/chatgpt-plugin-api",
45-
"check-types": "tsc --noEmit"
43+
"docker:start": "docker run --init -p 3000:3000 e2b/chatgpt-plugin-api"
4644
}
4745
}

Diff for: scripts/build.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
const esbuild = require('esbuild')
55

6-
const isDev = process.env.NODE_ENV === 'development'
7-
86
const makeAllPackagesExternalPlugin = {
97
name: 'make-all-packages-external',
108
setup(build) {
@@ -19,7 +17,7 @@ const makeAllPackagesExternalPlugin = {
1917
esbuild
2018
.build({
2119
bundle: true,
22-
minify: !isDev,
20+
minify: true,
2321
tsconfig: 'tsconfig.json',
2422
platform: 'node',
2523
target: 'node18',

0 commit comments

Comments
 (0)