Skip to content

Commit

Permalink
fix(tslib): remove implicit dependency on tslib (#8)
Browse files Browse the repository at this point in the history
Until now, typed-inject implicitly depended on tslib. Not depending on tslib yourself could result in this error:

```
internal/modules/cjs/loader.js:584
    throw err;
    ^

Error: Cannot find module 'tslib'
    at Function.Module._resolveFilename (internal/module
```

This fix will remove this implicit dependency by setting `importHelpers` to `false` in `tsconfig`
  • Loading branch information
nicojs committed May 7, 2019
1 parent c2b6477 commit 7fe01aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.settings.json
Expand Up @@ -11,7 +11,7 @@
"declaration": true,
"forceConsistentCasingInFileNames": true,
"allowJs": false,
"importHelpers": true,
"importHelpers": false,
"noUnusedLocals": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
Expand Down

0 comments on commit 7fe01aa

Please sign in to comment.