Skip to content

Commit

Permalink
fix(build): emit TS helpers rather than import tslib
Browse files Browse the repository at this point in the history
`esModuleInterop` not in tslib yet.
  • Loading branch information
jeffijoe committed Mar 8, 2018
1 parent d5b5b2a commit 90c8274
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
34 changes: 24 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"build": "rimraf lib && tsc -p tsconfig.build.json",
"test": "jest",
"test:watch": "jest --watchAll",
"lint":
"tslint --project tsconfig.json --fix \"src/**/*.ts\" && prettier --write \"src/**/*.ts\"",
"lint": "tslint --project tsconfig.json --fix \"src/**/*.ts\" && prettier --write \"src/**/*.ts\"",
"cover": "jest --coverage",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"precommit": "lint-staged && npm run build",
Expand All @@ -22,7 +21,11 @@
"type": "git",
"url": "https://github.com/jeffijoe/awilix-koa.git"
},
"files": ["lib", "LICENSE.md", "README.md"],
"files": [
"lib",
"LICENSE.md",
"README.md"
],
"directories": {
"lib": "lib"
},
Expand All @@ -36,8 +39,7 @@
"dependencies": {
"awilix-router-core": "^1.3.2",
"koa-compose": "^4.0.0",
"koa-router": "^7.4.0",
"tslib": "^1.9.0"
"koa-router": "^7.4.0"
},
"devDependencies": {
"@semantic-release/condition-codeship": "^1.1.0",
Expand Down Expand Up @@ -82,15 +84,25 @@
"jest": {
"testEnvironment": "node",
"testRegex": "(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$",
"collectCoverageFrom": ["src/**/*.ts"],
"coveragePathIgnorePatterns": ["/node_modules/"],
"modulePaths": ["src"],
"collectCoverageFrom": [
"src/**/*.ts"
],
"coveragePathIgnorePatterns": [
"/node_modules/"
],
"modulePaths": [
"src"
],
"coverageDirectory": "<rootDir>/coverage",
"transform": {
"\\.(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js",
"\\.(js|jsx)": "babel-jest"
},
"moduleFileExtensions": ["ts", "tsx", "js"],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"globals": {}
},
"prettier": {
Expand All @@ -101,7 +113,9 @@
"generateNotes": "@semantic-release/release-notes-generator"
},
"babel": {
"presets": ["latest"],
"presets": [
"latest"
],
"plugins": "transform-decorators-legacy"
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"importHelpers": true,
"noEmitHelpers": true,
"importHelpers": false,
"noEmitHelpers": false,
"sourceMap": true,
"declaration": true,
"skipLibCheck": true,
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5142,10 +5142,6 @@ tslib@^1.0.0, tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1:
version "1.8.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.8.1.tgz#6946af2d1d651a7b1863b531d6e5afa41aa44eac"

tslib@^1.9.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"

tslint-config-prettier@^1.9.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.9.0.tgz#391887644b66de4623f745a6c85672405cbcdcee"
Expand Down

0 comments on commit 90c8274

Please sign in to comment.