From 6f33fe1edc3633232117f383ff373e24e203751d Mon Sep 17 00:00:00 2001 From: Nathan Huntzinger Date: Wed, 12 Jan 2022 20:28:50 -0700 Subject: [PATCH] Added quotation marks to fix spaces in pwd causing scripts to crash --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 92a0244..a5a9f8e 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "db:migrate": "yarn db:start && yarn typeorm migration:run", "db:migrate:prod": "yarn typeorm migration:run", "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:prod": "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: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", "prebuild": "rimraf dist",