Skip to content

Commit 38d4a49

Browse files
committed
improves scripts to import helpers from tslib
1 parent 427331c commit 38d4a49

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"tslint:src": "tslint --project tsconfig.json",
1414
"tslint:test": "tslint --config tslint.test.json --project tsconfig.test.json",
1515
"tslint": "npm run tslint-check:src && npm run tslint-check:test && npm run tslint:src && npm run tslint:test",
16-
"clean-up": "rimraf .nyc_output && rimraf coverage && rimraf lib",
17-
"compile": "tsc -d",
16+
"clean-up": "rimraf .nyc_output && rimraf coverage && rimraf lib && rimraf lib-test && rimraf dist-test",
17+
"compile:src": "tsc -d --importHelpers",
18+
"compile:test": "tsc -p tsconfig.test.json -d --importHelpers",
1819
"dev": "webpack",
1920
"build": "webpack --env.production",
20-
"prepare": "npm run clean-up && npm run compile",
21+
"prepare": "npm run clean-up && npm run compile:src",
2122
"prepublishOnly": "publish-please guard",
2223
"publish-please": "npm run tslint && npm run autoformat && npm run clean-up && npm run test && publish-please"
2324
},
@@ -83,7 +84,6 @@
8384
"istanbul-instrumenter-loader": "^3.0.1",
8485
"karma": "^2.0.5",
8586
"karma-chai": "^0.1.0",
86-
"karma-chai-sinon": "^0.1.5",
8787
"karma-chrome-launcher": "^2.2.0",
8888
"karma-coverage-istanbul-reporter": "^2.0.1",
8989
"karma-es6-shim": "^1.0.0",
@@ -92,6 +92,7 @@
9292
"karma-phantomjs-launcher": "^1.0.4",
9393
"karma-remap-istanbul": "^0.6.0",
9494
"karma-sinon": "^1.0.5",
95+
"karma-sinon-chai": "^2.0.2",
9596
"karma-sourcemap-loader": "^0.3.7",
9697
"karma-sourcemap-writer": "^0.1.2",
9798
"karma-webpack": "^3.0.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3841,10 +3841,6 @@ just-extend@^1.1.27:
38413841
version "1.1.27"
38423842
resolved "https://registry.npmjs.org/just-extend/-/just-extend-1.1.27.tgz#ec6e79410ff914e472652abfa0e603c03d60e905"
38433843

3844-
karma-chai-sinon@^0.1.5:
3845-
version "0.1.5"
3846-
resolved "https://registry.npmjs.org/karma-chai-sinon/-/karma-chai-sinon-0.1.5.tgz#5c392ca95247818951d6b57902f02c36e803753a"
3847-
38483844
karma-chai@^0.1.0:
38493845
version "0.1.0"
38503846
resolved "https://registry.npmjs.org/karma-chai/-/karma-chai-0.1.0.tgz#bee5ad40400517811ae34bb945f762909108b79a"
@@ -3898,6 +3894,10 @@ karma-remap-istanbul@^0.6.0:
38983894
istanbul "^0.4.3"
38993895
remap-istanbul "^0.9.0"
39003896

3897+
karma-sinon-chai@^2.0.2:
3898+
version "2.0.2"
3899+
resolved "https://registry.npmjs.org/karma-sinon-chai/-/karma-sinon-chai-2.0.2.tgz#e28c109b989973abafc28a7c9f09ef24a05e07c2"
3900+
39013901
karma-sinon@^1.0.5:
39023902
version "1.0.5"
39033903
resolved "https://registry.npmjs.org/karma-sinon/-/karma-sinon-1.0.5.tgz#4e3443f2830fdecff624d3747163f1217daa2a9a"

0 commit comments

Comments
 (0)