Skip to content

Commit

Permalink
(fix) bundle-size: reuse ts helper functions from tslib instead of in…
Browse files Browse the repository at this point in the history
…lining

Signed-off-by: Alexander Kozinko <xcariba@gmail.com>
  • Loading branch information
xcariba committed Feb 8, 2024
1 parent 3e7f6ee commit b0ffcd8
Show file tree
Hide file tree
Showing 48 changed files with 83 additions and 36 deletions.
1 change: 1 addition & 0 deletions configs/base.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"strictNullChecks": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"importHelpers": true,
"downlevelIteration": true,
"resolveJsonModule": true,
"module": "CommonJS",
Expand Down
3 changes: 2 additions & 1 deletion packages/bulk-edit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/filesystem": "1.46.0",
"@theia/monaco": "1.46.0",
"@theia/monaco-editor-core": "1.72.3",
"@theia/workspace": "1.46.0"
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/callhierarchy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/editor": "1.46.0",
"ts-md5": "^1.2.2"
"ts-md5": "^1.2.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"@theia/core": "1.46.0",
"@theia/monaco": "1.46.0",
"@theia/monaco-editor-core": "1.72.3",
"anser": "^2.0.1"
"anser": "^2.0.1",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"safer-buffer": "^2.1.2",
"socket.io": "^4.5.3",
"socket.io-client": "^4.5.3",
"tslib": "^2.6.2",
"uuid": "^8.3.2",
"vscode-languageserver-protocol": "^3.17.2",
"vscode-uri": "^2.1.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"@vscode/debugprotocol": "^1.51.0",
"fast-deep-equal": "^3.1.3",
"jsonc-parser": "^2.2.0",
"p-debounce": "^2.1.0"
"p-debounce": "^2.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/editor-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/editor": "1.46.0",
"@theia/navigator": "1.46.0"
"@theia/navigator": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Theia - Editor Extension",
"dependencies": {
"@theia/core": "1.46.0",
"@theia/variable-resolver": "1.46.0"
"@theia/variable-resolver": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/external-terminal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/editor": "1.46.0",
"@theia/workspace": "1.46.0"
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/file-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/filesystem": "1.46.0",
"@theia/process": "1.46.0",
"@theia/workspace": "1.46.0",
"@vscode/ripgrep": "^1.14.2"
"@vscode/ripgrep": "^1.14.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/filesystem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"stat-mode": "^1.0.0",
"tar-fs": "^1.16.2",
"trash": "^7.2.0",
"tslib": "^2.6.2",
"uuid": "^8.0.0",
"vscode-languageserver-textdocument": "^1.0.1"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/filesystem": "1.46.0",
"@theia/keymaps": "1.46.0",
"@theia/preview": "1.46.0",
"@theia/workspace": "1.46.0"
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"node-ssh": "^12.0.1",
"octicons": "^7.1.0",
"p-queue": "^2.4.2",
"ts-md5": "^1.2.2"
"ts-md5": "^1.2.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/keymaps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/monaco-editor-core": "1.72.3",
"@theia/preferences": "1.46.0",
"@theia/userstorage": "1.46.0",
"jsonc-parser": "^2.2.0"
"jsonc-parser": "^2.2.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@theia/ext-scripts": "1.46.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/markers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/filesystem": "1.46.0",
"@theia/workspace": "1.46.0"
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/memory-inspector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"@theia/core": "1.46.0",
"@theia/debug": "1.46.0",
"@vscode/debugprotocol": "^1.51.0",
"long": "^4.0.0"
"long": "^4.0.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/long": "^4.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"react-perfect-scrollbar": "^1.5.3",
"ts-md5": "^1.2.2"
"ts-md5": "^1.2.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Theia - Metrics Extension",
"dependencies": {
"@theia/core": "1.46.0",
"prom-client": "^10.2.0"
"prom-client": "^10.2.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/mini-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@types/mime-types": "^2.1.0",
"mime-types": "^2.1.18",
"pdfobject": "^2.0.201604172",
"tslib": "^2.6.2",
"uuid": "^8.0.0",
"vhost": "^3.0.2"
},
Expand Down
1 change: 1 addition & 0 deletions packages/monaco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"fast-plist": "^0.1.2",
"idb": "^4.0.5",
"jsonc-parser": "^2.2.0",
"tslib": "^2.6.2",
"vscode-oniguruma": "1.6.1",
"vscode-textmate": "^9.0.0"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/navigator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"@theia/core": "1.46.0",
"@theia/filesystem": "1.46.0",
"@theia/workspace": "1.46.0",
"minimatch": "^5.1.0"
"minimatch": "^5.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/notebook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@theia/editor": "1.46.0",
"@theia/filesystem": "1.46.0",
"@theia/monaco": "1.46.0",
"tslib": "^2.6.2",
"uuid": "^8.3.2"
},
"publishConfig": {
Expand Down
3 changes: 2 additions & 1 deletion packages/outline-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.46.0",
"description": "Theia - Outline View Extension",
"dependencies": {
"@theia/core": "1.46.0"
"@theia/core": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/monaco": "1.46.0",
"@theia/monaco-editor-core": "1.72.3",
"@types/p-queue": "^2.3.1",
"p-queue": "^2.4.2"
"p-queue": "^2.4.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"@theia/output": "1.46.0",
"@theia/plugin-ext": "1.46.0",
"@theia/workspace": "1.46.0",
"ps-tree": "^1.2.0"
"ps-tree": "^1.2.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-ext-headless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/plugin-ext": "1.46.0",
"@theia/terminal": "1.46.0"
"@theia/terminal": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-ext-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"@theia/userstorage": "1.46.0",
"@theia/workspace": "1.46.0",
"decompress": "^4.2.1",
"filenamify": "^4.1.0"
"filenamify": "^4.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-ext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"mime": "^2.4.4",
"ps-tree": "^1.2.0",
"semver": "^7.5.4",
"tslib": "^2.6.2",
"uuid": "^8.0.0",
"vhost": "^3.0.2",
"vscode-textmate": "^9.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"@theia/metrics": "1.46.0",
"@theia/monaco-editor-core": "1.72.3",
"@theia/plugin": "1.46.0",
"@theia/plugin-ext": "1.46.0"
"@theia/plugin-ext": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/preferences/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"async-mutex": "^0.3.1",
"fast-deep-equal": "^3.1.3",
"jsonc-parser": "^2.2.0",
"p-debounce": "^2.1.0"
"p-debounce": "^2.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"@types/highlight.js": "^10.1.0",
"@types/markdown-it-anchor": "^4.0.1",
"highlight.js": "10.4.1",
"markdown-it-anchor": "~5.0.0"
"markdown-it-anchor": "~5.0.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"node-pty": "0.11.0-beta17",
"string-argv": "^0.1.1"
"string-argv": "^0.1.1",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/property-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Theia - Property View Extension",
"dependencies": {
"@theia/core": "1.46.0",
"@theia/filesystem": "1.46.0"
"@theia/filesystem": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"ssh2-sftp-client": "^9.1.0",
"socket.io": "^4.5.3",
"socket.io-client": "^4.5.3",
"tslib": "^2.6.2",
"uuid": "^8.0.0"
},
"publishConfig": {
Expand Down
3 changes: 2 additions & 1 deletion packages/scm-extra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"@theia/editor": "1.46.0",
"@theia/filesystem": "1.46.0",
"@theia/navigator": "1.46.0",
"@theia/scm": "1.46.0"
"@theia/scm": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/scm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"diff": "^3.4.0",
"p-debounce": "^2.1.0",
"react-autosize-textarea": "^7.0.0",
"ts-md5": "^1.2.2"
"ts-md5": "^1.2.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/search-in-workspace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"@theia/workspace": "1.46.0",
"@vscode/ripgrep": "^1.14.2",
"minimatch": "^5.1.0",
"react-autosize-textarea": "^7.0.0"
"react-autosize-textarea": "^7.0.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/secondary-window/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.46.0",
"description": "Theia - Secondary Window Extension",
"dependencies": {
"@theia/core": "1.46.0"
"@theia/core": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/task/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"@theia/workspace": "1.46.0",
"async-mutex": "^0.3.1",
"jsonc-parser": "^2.2.0",
"p-debounce": "^2.1.0"
"p-debounce": "^2.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/terminal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@theia/process": "1.46.0",
"@theia/variable-resolver": "1.46.0",
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2",
"xterm": "^4.16.0",
"xterm-addon-fit": "^0.5.0",
"xterm-addon-search": "^0.8.2"
Expand Down
3 changes: 2 additions & 1 deletion packages/timeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Theia - Timeline Extension",
"dependencies": {
"@theia/core": "1.46.0",
"@theia/navigator": "1.46.0"
"@theia/navigator": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit b0ffcd8

Please sign in to comment.