1
0
Fork 0

Fix error when running setup:cli

This commit is contained in:
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", "ts-node": "ts-node",
"eslint": "eslint", "eslint": "eslint",
"resolve-tspaths": "resolve-tspaths", "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: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", "concurrently": "concurrently",
"mocha": "mocha", "mocha": "mocha",
"ci": "bash ./scripts/ci.sh", "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" cp -r "./server/tools/node_modules" "./dist/server/tools"
cd ./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" cp -r "./server/tools/node_modules" "./dist/server/tools"
npm run resolve-tspaths:cli
npm run resolve-tspaths:server npm run resolve-tspaths:server