Skip to content

Commit 8846c26

Browse files
committed
Switch to ts-packager
1 parent ac9ad43 commit 8846c26

16 files changed

Lines changed: 100 additions & 276 deletions

package-lock.json

Lines changed: 72 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
"private": true,
77
"scripts": {
88
"start": "ts-node test/examples/basic/server.js",
9-
"bundle": "ts-node scripts/bundle",
9+
"bundle": "ts-packager",
1010
"clean": "rm -rf dist",
11-
"compile:dev": "tsc --p tsconfig.json",
12-
"compile:prod": "tsc --p tsconfig.dist.json",
13-
"build:spec": "npm run clean && npm run compile:dev",
14-
"build:prod": "npm run clean && npm run compile:prod && npm run bundle",
15-
"prepare": "npm run build:prod",
16-
"test": "npm run build:spec && npm run coverage && npm run test-examples",
11+
"compile": "tsc --p tsconfig.json",
12+
"build": "npm run clean && npm run compile && npm run bundle",
13+
"prepare": "npm run build",
14+
"test": "npm run build && npm run coverage && npm run test-examples",
1715
"test-examples": "npm run test:jasmine-basic && npm run test:jasmine-guards && npm run test:jasmine-chat && npm run test:jasmine-terms",
1816
"test:jasmine-api": "npm run db:drop && jasmine --config=test/jasmine.api.json",
1917
"test:jasmine-basic": "npm run db:drop && jasmine --config=test/jasmine.basic.json",
@@ -45,6 +43,7 @@
4543
"reflect-metadata": "^0.1.13",
4644
"request": "^2.88.2",
4745
"sinon": "^7.5.0",
46+
"ts-packager": "^1.0.1",
4847
"typeorm": "^0.2.38",
4948
"validator": "^12.2.0"
5049
},

scripts/_config.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

scripts/bundle.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

scripts/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22
npm test
3-
npm run build:prod
3+
npm run build
44
cd dist/src/
55
npm publish

src/scripts/bootstrap.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/scripts/bundle-package-json.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/scripts/bundle.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/scripts/configure.ts

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)