Skip to content

Commit b90c44b

Browse files
committed
fix folks getting broken links by keeping mjs dist files around
1 parent 066f0f3 commit b90c44b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44
"description": "The Tagged Template syntax for Virtual DOM. Only browser-compatible syntax.",
55
"main": "dist/htm.js",
66
"umd:main": "dist/htm.umd.js",
7-
"module": "dist/htm.mjs",
7+
"module": "dist/htm.module.js",
88
"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",
1010
"build:main": "microbundle src/index.mjs -f es,umd --no-sourcemap --target web && microbundle src/cjs.mjs -f iife --no-sourcemap --target web",
1111
"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",
1212
"build:preact": "cd src/integrations/preact && npm run build",
1313
"build:react": "cd src/integrations/react && npm run build",
1414
"build:babel": "cd packages/babel-plugin-htm && npm run build",
1515
"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",
1617
"test": "eslint src/**/*.mjs test/**/*.mjs && npm run build && jest test",
1718
"test:perf": "v8 test/__perftest.mjs",
1819
"release": "npm t && git commit -am \"$npm_package_version\" && git tag $npm_package_version && git push && git push --tags && npm publish"

src/integrations/preact/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"build": "npm run -s build:main && npm run -s build:standalone && npm run -s build:static",
99
"build:main": "microbundle index.mjs -o ../../../preact/index.js --external preact,htm --no-sourcemap --target web",
1010
"build:static": "cp index.d.ts package.json ../../../preact/",
11-
"build:standalone": "microbundle standalone.mjs -o ../../../preact/standalone.js -f es,umd --no-sourcemap --target web && cp ../../../preact/standalone.module.js ../../../preact/standalone.mjs"
11+
"build:standalone": "microbundle standalone.mjs -o ../../../preact/standalone.js -f es,umd --no-sourcemap --target web"
1212
}
1313
}

0 commit comments

Comments
 (0)