Output ESM

This commit is contained in:
Anton Liaposhchenko 2024-12-31 16:04:41 +02:00
parent 072585dd02
commit 7a4eb468d6

View File

@ -33,7 +33,7 @@
"build:cjs": "rimraf dist/cjs && tsc --project src/main --module commonjs --outDir dist/cjs",
"build:test": "rimraf dist && tsc --project src/test --outDir dist",
"build:types": "rimraf dist/types && tsc --project src/main --declaration true --emitDeclarationOnly true --outDir dist/types",
"bundle": "esbuild src/main/lib.ts --bundle --minify --metafile=dist/meta.json --outfile=dist/lib.min.js",
"bundle": "esbuild src/main/lib.ts --bundle --minify --metafile=dist/meta.json --format=esm --outfile=dist/lib.min.js",
"bundle:types": "npx dts-bundle-generator --external-inlines source-map --external-inlines twig-lexer -o dist/lib.min.d.ts src/main/lib.ts"
},
"dependencies": {