summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordittonjs <jditton.atomic@gmail.com>2022-01-13 08:01:24 -0700
committerGitHub <noreply@github.com>2022-01-13 08:01:24 -0700
commitf533c48fc918a8c5daed9f2a2989b541f3dc31f3 (patch)
tree6f8547ec385eea943d5ca12cb293ed5b8df50d59
parent79cd8f0a4e31d489284ce1500c87a28ca6baefc8 (diff)
parent6f33fe1edc3633232117f383ff373e24e203751d (diff)
downloadlocchat-f533c48fc918a8c5daed9f2a2989b541f3dc31f3.tar.gz
locchat-f533c48fc918a8c5daed9f2a2989b541f3dc31f3.zip
Merge pull request #1 from NathanHuntzinger/main
Added quotation marks to fix spaces in pwd causing scripts to crash
-rw-r--r--package.json4
1 files 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",