mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Remove rollup-typescript
It seems like just calling typescript directly is simpler and more reliable?
This commit is contained in:
parent
0a68dfb491
commit
9b8e3b80ee
3 changed files with 2 additions and 15 deletions
10
editors/code/package-lock.json
generated
10
editors/code/package-lock.json
generated
|
@ -61,16 +61,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@rollup/plugin-typescript": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-7lXKGY06aofrceVez/YnN2axttFdHSqlUBpCJ6ebzDfxwLDKMgSV5lD4ykBcdgE7aK3egxuLkD/HKyRB5L8Log==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@rollup/pluginutils": "^3.0.0",
|
|
||||||
"resolve": "^1.13.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@rollup/pluginutils": {
|
"@rollup/pluginutils": {
|
||||||
"version": "3.0.8",
|
"version": "3.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.0.8.tgz",
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"vscode": "^1.41.0"
|
"vscode": "^1.41.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"vscode:prepublish": "rollup -c",
|
"vscode:prepublish": "tsc -p ./ && rollup -c",
|
||||||
"package": "vsce package",
|
"package": "vsce package",
|
||||||
"watch": "tsc -watch -p ./",
|
"watch": "tsc -watch -p ./",
|
||||||
"fmt": "tsfmt -r && tslint -c tslint.json 'src/**/*.ts' --fix"
|
"fmt": "tsfmt -r && tslint -c tslint.json 'src/**/*.ts' --fix"
|
||||||
|
@ -30,7 +30,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-commonjs": "^11.0.2",
|
"@rollup/plugin-commonjs": "^11.0.2",
|
||||||
"@rollup/plugin-node-resolve": "^7.1.1",
|
"@rollup/plugin-node-resolve": "^7.1.1",
|
||||||
"@rollup/plugin-typescript": "^2.0.0",
|
|
||||||
"@types/node": "^12.12.25",
|
"@types/node": "^12.12.25",
|
||||||
"@types/vscode": "^1.41.0",
|
"@types/vscode": "^1.41.0",
|
||||||
"rollup": "^1.31.0",
|
"rollup": "^1.31.0",
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
import typescript from '@rollup/plugin-typescript';
|
|
||||||
import resolve from '@rollup/plugin-node-resolve';
|
import resolve from '@rollup/plugin-node-resolve';
|
||||||
import commonjs from '@rollup/plugin-commonjs';
|
import commonjs from '@rollup/plugin-commonjs';
|
||||||
import nodeBuiltins from 'builtin-modules';
|
import nodeBuiltins from 'builtin-modules';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: 'src/main.ts',
|
input: 'out/main.js',
|
||||||
plugins: [
|
plugins: [
|
||||||
typescript(),
|
|
||||||
resolve({
|
resolve({
|
||||||
preferBuiltins: true
|
preferBuiltins: true
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue