|
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 transpile:stream-node", |
| 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 && check-export-map",
|
44 | 44 | "transpile": "microbundle src/index.js -f es,cjs,umd",
|
45 | 45 | "transpile:stream": "microbundle src/stream.js -o dist/stream/index.js -f es,cjs,umd",
|
46 | 46 | "transpile:stream-node": "microbundle src/stream-node.js -o dist/stream/node/index.js -f es,cjs,umd --target node",
|
47 | 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",
|
| 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",
|
50 | 51 | "test:mocha:compat": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/compat/*.test.js' 'test/compat/*.test.jsx'",
|
|
135 | 136 | "benchmarkjs-pretty": "^2.0.1",
|
136 | 137 | "chai": "^4.2.0",
|
137 | 138 | "check-export-map": "^1.3.1",
|
| 139 | + "copyfiles": "^2.4.1", |
138 | 140 | "eslint": "^7.16.0",
|
139 | 141 | "eslint-config-developit": "^1.2.0",
|
140 | 142 | "husky": "^4.3.6",
|
|
0 commit comments