-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
32 lines (32 loc) · 2.07 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"version": "0.2.0",
"license": "MIT",
"scripts": {
"build": "rm -rf lib && esbuild `find src \\( -name '*.ts' -o -name '*.tsx' \\)` --platform='node' --sourcemap --ignore-annotations --format='cjs' --target='es2022' --outdir='lib' && esbuild src/index.ts --platform='node' --sourcemap --ignore-annotations --format='cjs' --target='es2022' --outdir='lib' --banner:js='require(\"module-alias\").addAlias(\"@\", __dirname);' && sed -i 's|var import_validators = require(\"@\\/globals\\/validators\");||g' lib/api/index.js && sed -i 's|var import_responses = require(\"@\\/globals\\/responses\");||' lib/api/index.js && sed -i 's|const globalAPIRouter = new server.FileLoader(\"\\/api\").|var import_validators = require(\"@\\/globals\\/validators\");var import_responses = require(\"@\\/globals\\/responses\");const globalAPIRouter = new server.FileLoader(\"\\/api\").|' lib/api/index.js",
"sync": "CHECKPOINT_DISABLE=1 prisma format && CHECKPOINT_DISABLE=1 prisma db push",
"sync:prod": "sed -i 's/schema=testing/schema=public/g' .env && CHECKPOINT_DISABLE=1 prisma db push && sed -i 's/schema=public/schema=testing/g' .env",
"db:generate": "CHECKPOINT_DISABLE=1 prisma generate",
"node:generate": "rm -rf src/panel && openapi-generator-cli generate -i http://localhost:9001/api/openapi -g typescript-axios -o src/panel --skip-validate-spec && sed -i 's|AxiosInstance, RawAxiosRequestConfig|AxiosInstance, AxiosRequestConfig as RawAxiosRequestConfig|' src/panel/api.ts",
"lint": "tsc",
"dev": "pnpm build && cd lib && sudo NODE_ENV=development node --trace-warnings --enable-source-maps index && cd .."
},
"dependencies": {
"@rjweb/runtime-node": "^1.1.1",
"@rjweb/utils": "^1.12.14",
"ansi-colors": "^4.1.3",
"archiver": "^7.0.1",
"axios": "^1.7.2",
"node-pty": "^1.0.0",
"rjweb-server": "^9.5.5",
"ssh2": "^1.15.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/archiver": "^6.0.2",
"@types/node": "^18.19.33",
"@types/ssh2": "^1.15.0",
"esbuild": "^0.21.3",
"module-alias": "^2.2.3",
"typescript": "^5.4.5"
}
}