Skip to content

Commit

Permalink
feat: remove "tslib"
Browse files Browse the repository at this point in the history
This can be done because the minimal required nodejs version is 12.22,
which fully supports async-await, generators and async-generators

though for typescript to apply this it has to be set to es2018, even though
these features are es2016

BREAKING CHANGE:
Typescript "target" is now "es2018", which is a breaking change, but should not affect anything
as long as the required nodejs version is used (12.22 or higher)
  • Loading branch information
hasezoey committed May 24, 2022
1 parent c1c4c9c commit e91c6dd
Show file tree
Hide file tree
Showing 3 changed files with 833 additions and 520 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -60,8 +60,7 @@
"typescript": "~4.4.4"
},
"dependencies": {
"debug": "^4.3.4",
"tslib": "^2.4.0"
"debug": "^4.3.4"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es6",
"target": "ES2018",
"lib": [
"esnext"
],
Expand All @@ -14,7 +14,7 @@
"allowJs": false,
"outDir": "build",
"inlineSourceMap": true,
"importHelpers": true,
"importHelpers": false,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true
Expand Down

0 comments on commit e91c6dd

Please sign in to comment.