Fix error when running setup:cli

pull/5318/head
Chocobozzz 2022-09-28 14:55:15 +02:00
parent 3fca30a7ef
commit 31ee48d579
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 1 additions and 4 deletions

View File

@ -63,9 +63,7 @@
"ts-node": "ts-node",
"eslint": "eslint",
"resolve-tspaths": "resolve-tspaths",
"resolve-tspaths:all": "npm run resolve-tspaths:server && npm run resolve-tspaths:cli",
"resolve-tspaths:server": "npm run resolve-tspaths -- --project tsconfig.json --src . --out dist",
"resolve-tspaths:cli": "npm run resolve-tspaths -- --project ./server/tools/tsconfig.json --src ./server/tools --out ./dist/server/tools",
"concurrently": "concurrently",
"mocha": "mocha",
"ci": "bash ./scripts/ci.sh",

View File

@ -13,4 +13,4 @@ mkdir -p "./dist/server/tools"
cp -r "./server/tools/node_modules" "./dist/server/tools"
cd ./server/tools
../../node_modules/.bin/tsc-watch --build --verbose --onSuccess 'sh -c "cd ../../ && npm run resolve-tspaths:all"'
../../node_modules/.bin/tsc-watch --build --verbose --onSuccess 'sh -c "cd ../../ && npm run resolve-tspaths:server"'

View File

@ -14,5 +14,4 @@ rm -rf ./dist/server/tools/
cp -r "./server/tools/node_modules" "./dist/server/tools"
npm run resolve-tspaths:cli
npm run resolve-tspaths:server