|
3 | 3 | "version": "1.0.1", |
4 | 4 | "description": "The Tagged Template syntax for Virtual DOM. Only browser-compatible syntax.", |
5 | 5 | "main": "dist/htm.js", |
6 | | - "umd:main": "dist/htm.js", |
| 6 | + "umd:main": "dist/htm.umd.js", |
7 | 7 | "module": "dist/htm.mjs", |
8 | 8 | "scripts": { |
9 | 9 | "build": "npm run -s build:main && npm run -s build:preact && npm run -s build:babel", |
10 | | - "build:main": "microbundle src/index.mjs -f es,umd --no-sourcemap --target web", |
11 | | - "build:preact": "microbundle src/integrations/preact/index.mjs -o preact/index.js -f es,umd --external preact,htm --no-sourcemap --target web && cp src/integrations/preact/{index.d.ts,package.json} preact/ && npm run -s build:preact:standalone", |
| 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 | + "build:preact": "microbundle src/integrations/preact/index.mjs -o preact/index.js -f es,umd --external preact,htm --no-sourcemap --target web && npm run -s copy:preact:static && npm run -s build:preact:standalone", |
| 12 | + "copy:preact:static": "cp src/integrations/preact/index.d.ts src/integrations/preact/package.json preact/", |
12 | 13 | "build:preact:standalone": "microbundle src/integrations/preact/standalone.mjs -o preact/standalone.js -f es,umd --no-sourcemap --target web", |
13 | 14 | "build:babel": "cd packages/babel-plugin-htm && npm run build", |
14 | 15 | "test": "eslint src/**/*.mjs test && npm run build && jest test", |
|
53 | 54 | "eslint": "^5.2.0", |
54 | 55 | "eslint-config-developit": "^1.1.1", |
55 | 56 | "jest": "^23.4.2", |
56 | | - "microbundle": "^0.7.0", |
| 57 | + "microbundle": "^0.8.3", |
57 | 58 | "preact": "^8.2.9" |
58 | 59 | }, |
59 | 60 | "dependencies": {} |
|
0 commit comments