File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ import * as fs from 'node:fs' ;
2
+
3
+ var data = fs . readFileSync ( 'package.json' , 'utf-8' ) ;
4
+ var newValue = data . replace ( '"main": "./pack/src/extension.cjs"' , '"main": "./pack/src/extension.js"' ) ;
5
+ fs . writeFileSync ( 'package.json' , newValue , 'utf-8' ) ;
6
+
7
+ console . log ( 'Bad magic' ) ;
Original file line number Diff line number Diff line change 544
544
" src-webview" ,
545
545
" pack"
546
546
],
547
- "main" : " ./pack/src/extension.js " ,
547
+ "main" : " ./pack/src/extension.cjs " ,
548
548
"dependencies" : {
549
549
"langium" : " ^3.0.0" ,
550
550
"langium-sprotty" : " ^3.0.0" ,
586
586
"lint" : " eslint ." ,
587
587
"build" : " yarn run langium:generate && tsc -b src src-diagram-snippets src-language-server src-webview src-context-table && node esbuild.mjs" ,
588
588
"watch" : " webpack --watch" ,
589
- "package" : " vsce package --yarn -o pasta.vsix" ,
589
+ "package" : " node build-util/prepare-extension-config.js && vsce package --yarn -o pasta.vsix" ,
590
590
"predistribute" : " yarn run package" ,
591
591
"distribute" : " yarn run distribute:vsce && yarn run distribute:ovsx" ,
592
592
"distribute:vsce" : " vsce publish --yarn --packagePath pasta.vsix" ,
You can’t perform that action at this time.
0 commit comments