Added quotation marks to fix spaces in pwd causing scripts to crash

This commit is contained in:
Nathan Huntzinger 2022-01-12 20:28:50 -07:00 committed by GitHub
parent 79cd8f0a4e
commit 6f33fe1edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@
"db:migrate": "yarn db:start && yarn typeorm migration:run", "db:migrate": "yarn db:start && yarn typeorm migration:run",
"db:migrate:prod": "yarn typeorm migration:run", "db:migrate:prod": "yarn typeorm migration:run",
"db:migrate:undo": "yarn db:start && yarn typeorm migration:revert", "db:migrate:undo": "yarn db:start && yarn typeorm migration:revert",
"db:seed": "yarn db:start && ts-node ./node_modules/typeorm-seeding/dist/cli.js seed -n cli_config.ts -r $(pwd)/server/database", "db:seed": "yarn db:start && ts-node ./node_modules/typeorm-seeding/dist/cli.js seed -n cli_config.ts -r \"$(pwd)/server/database\"",
"db:seed:prod": "ts-node ./node_modules/typeorm-seeding/dist/cli.js seed -n cli_config.ts -r $(pwd)/server/database", "db:seed:prod": "ts-node ./node_modules/typeorm-seeding/dist/cli.js seed -n cli_config.ts -r \"$(pwd)/server/database\"",
"db:reset": "yarn db:start && yarn typeorm schema:drop && yarn db:migrate && yarn db:seed", "db:reset": "yarn db:start && yarn typeorm schema:drop && yarn db:migrate && yarn db:seed",
"db:setup": "bash bin/create_db.sh && yarn db:migrate && yarn db:seed", "db:setup": "bash bin/create_db.sh && yarn db:migrate && yarn db:seed",
"prebuild": "rimraf dist", "prebuild": "rimraf dist",