|
7 | 7 | "umd:main": "dist/index.umd.js", |
8 | 8 | "module": "dist/index.module.js", |
9 | 9 | "jsnext:main": "dist/index.module.js", |
10 | | - "types": "src/index.d.ts", |
| 10 | + "types": "dist/index.d.ts", |
11 | 11 | "exports": { |
12 | 12 | ".": { |
13 | | - "types": "./src/index.d.ts", |
| 13 | + "types": "./dist/index.d.ts", |
14 | 14 | "browser": "./dist/index.module.js", |
15 | 15 | "umd": "./dist/index.umd.js", |
16 | 16 | "import": "./dist/index.mjs", |
17 | 17 | "require": "./dist/index.js" |
18 | 18 | }, |
19 | 19 | "./jsx": { |
20 | | - "types": "./jsx.d.ts", |
21 | | - "browser": "./dist/jsx.module.js", |
22 | | - "umd": "./dist/jsx.umd.js", |
23 | | - "import": "./dist/jsx.mjs", |
24 | | - "require": "./dist/jsx.js" |
| 20 | + "types": "./dist/jsx.d.ts", |
| 21 | + "browser": "./dist/jsx/index.module.js", |
| 22 | + "umd": "./dist/jsx/index.umd.js", |
| 23 | + "import": "./dist/jsx/index.mjs", |
| 24 | + "require": "./dist/jsx/index.js" |
25 | 25 | }, |
26 | 26 | "./stream": { |
27 | 27 | "types": "./dist/stream.d.ts", |
28 | | - "browser": "./dist/stream.module.js", |
29 | | - "import": "./dist/stream.mjs", |
30 | | - "require": "./dist/stream.js" |
| 28 | + "browser": "./dist/stream/index.module.js", |
| 29 | + "import": "./dist/stream/index.mjs", |
| 30 | + "require": "./dist/stream/index.js" |
31 | 31 | }, |
32 | 32 | "./stream-node": { |
33 | 33 | "types": "./dist/stream-node.d.ts", |
34 | | - "import": "./dist/stream-node.mjs", |
35 | | - "require": "./dist/stream-node.js" |
| 34 | + "import": "./dist/stream/node/index.mjs", |
| 35 | + "require": "./dist/stream/node/index.js" |
36 | 36 | }, |
37 | 37 | "./package.json": "./package.json" |
38 | 38 | }, |
39 | 39 | "scripts": { |
40 | 40 | "bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js", |
41 | 41 | "bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.modern.js", |
42 | | - "build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s transpile:stream && npm run -s copy-typescript-definition", |
| 42 | + "build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s transpile:stream && npm run -s transpile:stream-node && npm run -s copy-typescript-definition", |
43 | 43 | "postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js && node ./config/node-verify-exports.js", |
44 | | - "transpile": "microbundle src/index.js -f es,cjs,umd --target web --external preact", |
45 | | - "transpile:stream": "microbundle src/stream.js -o dist/stream.js -f es,cjs,umd --external preact && microbundle src/stream-node.js -o dist/stream-node.js -f es,cjs,umd --target node --external preact", |
46 | | - "transpile:jsx": "microbundle src/jsx.js -o dist/jsx.js --target web --external preact && microbundle dist/jsx.js -o dist/jsx.js -f cjs --external preact", |
| 44 | + "transpile": "microbundle src/index.js -f es,cjs,umd", |
| 45 | + "transpile:stream": "microbundle src/stream.js -o dist/stream/index.js -f es,cjs,umd", |
| 46 | + "transpile:stream-node": "microbundle src/stream-node.js -o dist/stream/node/index.js -f es,cjs,umd --target node", |
| 47 | + "transpile:jsx": "microbundle src/jsx.js -o dist/jsx/index.js -f es,cjs,umd && microbundle dist/jsx/index.js -o dist/jsx/index.js -f cjs", |
47 | 48 | "copy-typescript-definition": "copyfiles -f src/*.d.ts dist", |
48 | 49 | "test": "eslint src test && tsc && npm run test:mocha && npm run test:mocha:compat && npm run test:mocha:debug && npm run bench", |
49 | 50 | "test:mocha": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js test/*.test.jsx", |
|
143 | 144 | "baseline-rts": "npm:preact-render-to-string@latest", |
144 | 145 | "preact": "^10.13.0", |
145 | 146 | "prettier": "^2.2.1", |
| 147 | + "pretty-format": "^3.8.0", |
146 | 148 | "sinon": "^9.2.2", |
147 | 149 | "sinon-chai": "^3.5.0", |
148 | 150 | "typescript": "^5.0.0", |
149 | 151 | "web-streams-polyfill": "^3.2.1" |
150 | 152 | }, |
151 | | - "dependencies": { |
152 | | - "pretty-format": "^3.8.0" |
153 | | - }, |
154 | 153 | "prettier": { |
155 | 154 | "singleQuote": true, |
156 | 155 | "trailingComma": "none", |
|
0 commit comments