File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- const esbuild = require ( 'esbuild' ) ;
1
+ import * as esbuild from 'esbuild' ;
2
2
3
3
async function go ( ) {
4
4
const args = process . argv . slice ( 2 ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " twelf-wasm" ,
3
+ "type" : " module" ,
3
4
"exports" : {
4
5
"require" : " ./lib/encoding.cjs" ,
5
- "import" : " ./lib/encoding.mjs "
6
+ "import" : " ./lib/encoding.js "
6
7
},
7
8
"types" : " lib/encoding.d.ts" ,
8
9
"version" : " 0.1.7" ,
25
26
"scripts" : {
26
27
"test" : " jest" ,
27
28
"test-watch" : " jest --watch" ,
28
- "build-lib" : " tsc --project tsconfig.lib.json && mv ./lib/encoding.js ./lib/encoding.mjs && node build-lib.js"
29
+ "build-lib" : " tsc --project tsconfig.lib.json && node build-lib.js"
29
30
},
30
31
"devDependencies" : {
31
32
"@codemirror/language" : " ^6.10.1" ,
42
43
"files" : [
43
44
" package.json" ,
44
45
" README.md" ,
45
- " lib/encoding.mjs " ,
46
+ " lib/encoding.js " ,
46
47
" lib/encoding.cjs" ,
47
48
" lib/encoding.cjs.map" ,
48
49
" lib/encoding.d.ts"
You can’t perform that action at this time.
0 commit comments