diff options
author | Madeline <maddyunderstars@gmail.com> | 2022-01-05 01:38:53 +1100 |
---|---|---|
committer | Madeline <maddyunderstars@gmail.com> | 2022-01-05 01:38:53 +1100 |
commit | b131efca2e2f81843092f7b83f9756c1b0c47e21 (patch) | |
tree | 8596d115573c5330f1b751ba34177d6578c80ee3 | |
parent | Remove one more Microsoft Corp. ad (diff) | |
download | server-b131efca2e2f81843092f7b83f9756c1b0c47e21.tar.xz |
Added `tsnode` npm script
-rw-r--r-- | bundle/package.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bundle/package.json b/bundle/package.json index 301ee18c..fa64ce6b 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -9,7 +9,8 @@ "start": "node scripts/build.js && node dist/bundle/src/start.js", "start:bundle": "node dist/bundle/src/start.js", "test": "echo \"Error: no test specified\" && exit 1", - "migrate": "cd ../util/ && npm i && node --require ts-node/register node_modules/typeorm/cli.js -f ../util/ormconfig.json migration:run" + "migrate": "cd ../util/ && npm i && node --require ts-node/register node_modules/typeorm/cli.js -f ../util/ormconfig.json migration:run", + "tsnode": "npx ts-node --transpile-only -P tsnode.tsconfig.json src/start.ts" }, "repository": { "type": "git", |