Commit 2ee7a3f 1 parent b1e76ed commit 2ee7a3f Copy full SHA for 2ee7a3f
File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 92
92
"@types/vscode" : " *" ,
93
93
"@typescript-eslint/eslint-plugin" : " ^4.26.0" ,
94
94
"@typescript-eslint/parser" : " ^4.26.1" ,
95
+ "esbuild" : " ^0.12.21" ,
95
96
"eslint" : " ^7.21.0" ,
96
97
"eslint-config-prettier" : " ^8.1.0" ,
97
98
"husky" : " ^7.0.0" ,
105
106
},
106
107
"scripts" : {
107
108
"prebuild" : " js-yaml syntaxes/nix.YAML-tmLanguage > syntaxes/nix.tmLanguage.json && js-yaml syntaxes/injection.yml > syntaxes/injection.json" ,
108
- "build" : " tsc -p ./" ,
109
- "watch" : " yarn build --watch" ,
109
+ "build-base" : " esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node" ,
110
+ "build" : " yarn run build-base -- --sourcemap --minify" ,
111
+ "watch" : " yarn run build-base -- --sourcemap --watch" ,
110
112
"postinstall" : " husky install" ,
111
113
"release" : " yarn install && yarn lint && yarn build && standard-version && git push --follow-tags && yarn run publish" ,
112
114
"package" : " vsce package" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"module" : "commonjs" ,
4
- "target" : "es6 " ,
4
+ "target" : "es2018 " ,
5
5
"outDir" : "dist" ,
6
6
"lib" : [
7
- "es6 "
7
+ "es2018 "
8
8
] ,
9
9
"sourceMap" : true ,
10
10
"rootDir" : "src" ,
Original file line number Diff line number Diff line change @@ -1083,6 +1083,11 @@ error-ex@^1.3.1:
1083
1083
dependencies :
1084
1084
is-arrayish "^0.2.1"
1085
1085
1086
+ esbuild@^0.12.21 :
1087
+ version "0.12.21"
1088
+ resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.21.tgz#7ff32a9ac73ce4310f9cb61ea4c3da9756570d46"
1089
+ integrity sha512-7hyXbU3g94aREufI/5nls7Xcc+RGQeZWZApm6hoBaFvt2BPtpT4TjFMQ9Tb1jU8XyBGz00ShmiyflCogphMHFQ==
1090
+
1086
1091
escalade@^3.1.1 :
1087
1092
version "3.1.1"
1088
1093
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
You can’t perform that action at this time.
0 commit comments