Skip to content

Commit 14822aa

Browse files
committed
External typescript libs
1 parent a111708 commit 14822aa

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

.vscodeignore

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ vti
1111
dist-test/
1212
server/dist-test/
1313

14+
server/node_modules/typescript/lib/tsc.js
15+
server/node_modules/typescript/lib/tsserver.js
16+
server/node_modules/typescript/lib/tsserverlibrary.js
17+
server/node_modules/typescript/lib/typescriptServices.js
18+
1419
.**
1520

1621
**/*.map

build/rollup-plugins.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ function bundleVlsWithEsbuild() {
105105
/**
106106
* prettier-tslint need it.
107107
*/
108-
'tslint'
108+
'tslint',
109+
/**
110+
* tslint need it.
111+
*/
112+
'typescript'
109113
],
110114
format: 'cjs',
111115
tsconfig: getServerPath('tsconfig.json'),

server/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"eslint": "^7.13.0",
2626
"eslint-plugin-vue": "^7.1.0",
2727
"prettier": "^2.1.2",
28-
"tslint": "5.18.0"
28+
"tslint": "5.18.0",
29+
"typescript": "^4.0.5"
30+
},
31+
"resolutions": {
32+
"typescript": "^4.0.5"
2933
},
3034
"devDependencies": {
3135
"@prettier/plugin-pug": "^1.10.1",
@@ -61,7 +65,6 @@
6165
"source-map-support": "^0.5.19",
6266
"stylus": "^0.54.8",
6367
"stylus-supremacy": "^2.14.5",
64-
"typescript": "^4.0.5",
6568
"vscode-css-languageservice": "4.3.5",
6669
"vscode-emmet-helper": "^2.0.9",
6770
"vscode-languageserver": "7.0.0-next.7",

server/rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = [
5656
generateTypingsVls(),
5757
bundleVlsWithEsbuild(),
5858
copySnippets(),
59-
copyTSDefaultLibs(),
59+
// copyTSDefaultLibs(),
6060
linkVlsInCLI(),
6161
...createPlugins(getVLSPath('tsconfig.json'))
6262
]

server/yarn.lock

+1-5
Original file line numberDiff line numberDiff line change
@@ -4523,11 +4523,7 @@ typedarray@^0.0.6:
45234523
version "0.0.6"
45244524
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
45254525

4526-
typescript@^3.6.3, typescript@^3.9.3:
4527-
version "3.9.7"
4528-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
4529-
4530-
typescript@^4.0.5:
4526+
typescript@^3.6.3, typescript@^3.9.3, typescript@^4.0.5:
45314527
version "4.0.5"
45324528
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
45334529
integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==

0 commit comments

Comments
 (0)