|
4 | 4 | "description": "The Tagged Template syntax for Virtual DOM. Only browser-compatible syntax.", |
5 | 5 | "main": "dist/htm.js", |
6 | 6 | "umd:main": "dist/htm.umd.js", |
7 | | - "module": "dist/htm.mjs", |
| 7 | + "module": "dist/htm.module.js", |
8 | 8 | "scripts": { |
9 | | - "build": "npm run -s build:main && npm run -s build:mini && npm run -s build:preact && npm run -s build:react && npm run -s build:babel && npm run -s build:babel-transform-jsx", |
| 9 | + "build": "npm run -s build:main && npm run -s build:mini && npm run -s build:preact && npm run -s build:react && npm run -s build:babel && npm run -s build:babel-transform-jsx && npm run -s build:mjsalias", |
10 | 10 | "build:main": "microbundle src/index.mjs -f es,umd --no-sourcemap --target web && microbundle src/cjs.mjs -f iife --no-sourcemap --target web", |
11 | 11 | "build:mini": "microbundle src/index.mjs -o ./mini/index.js -f es,umd --no-sourcemap --target web --alias ./constants.mjs=./constants-mini.mjs && microbundle src/cjs.mjs -o ./mini/index.js -f iife --no-sourcemap --target web --alias ./constants.mjs=./constants-mini.mjs", |
12 | 12 | "build:preact": "cd src/integrations/preact && npm run build", |
13 | 13 | "build:react": "cd src/integrations/react && npm run build", |
14 | 14 | "build:babel": "cd packages/babel-plugin-htm && npm run build", |
15 | 15 | "build:babel-transform-jsx": "cd packages/babel-plugin-transform-jsx-to-htm && npm run build", |
| 16 | + "build:mjsalias": "cp dist/htm.module.js dist/htm.mjs && cp mini/index.module.js mini/index.mjs && cp preact/index.module.js preact/index.mjs && cp preact/standalone.module.js preact/standalone.mjs && cp react/index.module.js react/index.mjs", |
16 | 17 | "test": "eslint src/**/*.mjs test/**/*.mjs && npm run build && jest test", |
17 | 18 | "test:perf": "v8 test/__perftest.mjs", |
18 | 19 | "release": "npm t && git commit -am \"$npm_package_version\" && git tag $npm_package_version && git push && git push --tags && npm publish" |
|
0 commit comments