Skip to content

Commit

Permalink
chore: Remove tslib
Browse files Browse the repository at this point in the history
In order to decrease the bundle size.
  • Loading branch information
tommy351 committed Apr 17, 2020
1 parent 3f6b32a commit 311f290
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 20 deletions.
8 changes: 0 additions & 8 deletions .pnp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, DependencyRange2, Depende
workspace_has_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, DependencyType),
workspace_has_dependency(OtherWorkspaceCwd, DependencyIdent, DependencyRange2, DependencyType2),
DependencyRange \= DependencyRange2.

% This rule will prevent all workspaces from depending on tslib
gen_enforced_dependency(WorkspaceCwd, 'tslib', null, DependencyType) :-
workspace_has_dependency(WorkspaceCwd, 'tslib', _, DependencyType).
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"prettier": "^1.19.1",
"tmp-promise": "^2.0.2",
"ts-jest": "25.2.0",
"tslib": "^1.11.0",
"typescript": "^3.8.2"
}
}
3 changes: 1 addition & 2 deletions packages/changed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"build": "builder build plugin"
},
"dependencies": {
"clipanion": "^2.1.5",
"tslib": "^1.11.0"
"clipanion": "^2.1.5"
},
"devDependencies": {
"@yarnpkg/builder": "^2.0.0-rc.19",
Expand Down
3 changes: 1 addition & 2 deletions packages/tsconfig-references/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"build": "builder build plugin"
},
"dependencies": {
"detect-indent": "^6.0.0",
"tslib": "^1.11.0"
"detect-indent": "^6.0.0"
},
"devDependencies": {
"@types/detect-indent": "6.0.0",
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"esModuleInterop": true,
"noEmitHelpers": true,
"importHelpers": true,
"module": "commonjs",
"moduleResolution": "node",
"preserveConstEnums": true,
"strict": true,
"suppressImplicitAnyIndexErrors": false,
"target": "es6",
"target": "es2017",
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"resolveJsonModule": true,
Expand Down
5 changes: 1 addition & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ __metadata:
"@yarnpkg/plugin-essentials": ^2.0.0-rc.23
"@yarnpkg/shell": ^2.0.0-rc.10
clipanion: ^2.1.5
tslib: ^1.11.0
typescript: ^3.8.2
languageName: unknown
linkType: soft
Expand All @@ -328,7 +327,6 @@ __metadata:
"@yarnpkg/fslib": ^2.0.0-rc.16
"@yarnpkg/plugin-essentials": ^2.0.0-rc.23
detect-indent: ^6.0.0
tslib: ^1.11.0
typescript: ^3.8.2
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -8190,7 +8188,6 @@ [email protected]:
prettier: ^1.19.1
tmp-promise: ^2.0.2
ts-jest: 25.2.0
tslib: ^1.11.0
typescript: ^3.8.2
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -9358,7 +9355,7 @@ [email protected]:
languageName: node
linkType: hard

"tslib@npm:^1.11.0, tslib@npm:^1.8.1, tslib@npm:^1.9.0":
"tslib@npm:^1.8.1, tslib@npm:^1.9.0":
version: 1.11.0
resolution: "tslib@npm:1.11.0"
checksum: 2/fa014c310808080e07b14d33aa52a3c8c8038f25fd7164a8e7d038fd6f2ca767b5a9305c77147d7d59ccd93bdf7a461a3c1d7ae53dfaca43501a2623834def97
Expand Down

0 comments on commit 311f290

Please sign in to comment.