Skip to content

Commit 8ec4fa5

Browse files
committed
revert: Type compilation changes
1 parent a29228d commit 8ec4fa5

File tree

3 files changed

+227
-2
lines changed

3 files changed

+227
-2
lines changed

package-lock.json

Lines changed: 220 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@
3939
"scripts": {
4040
"bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js",
4141
"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",
4343
"postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js && node ./config/node-verify-exports.js && check-export-map",
4444
"transpile": "microbundle src/index.js -f es,cjs,umd",
4545
"transpile:stream": "microbundle src/stream.js -o dist/stream/index.js -f es,cjs,umd",
4646
"transpile:stream-node": "microbundle src/stream-node.js -o dist/stream/node/index.js -f es,cjs,umd --target node",
4747
"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",
4849
"test": "eslint src test && tsc && npm run test:mocha && npm run test:mocha:compat && npm run test:mocha:debug && npm run bench",
4950
"test:mocha": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js test/*.test.jsx",
5051
"test:mocha:compat": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/compat/*.test.js' 'test/compat/*.test.jsx'",
@@ -135,6 +136,7 @@
135136
"benchmarkjs-pretty": "^2.0.1",
136137
"chai": "^4.2.0",
137138
"check-export-map": "^1.3.1",
139+
"copyfiles": "^2.4.1",
138140
"eslint": "^7.16.0",
139141
"eslint-config-developit": "^1.2.0",
140142
"husky": "^4.3.6",

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
"types": [],
1818
"noEmit": true,
1919
"forceConsistentCasingInFileNames": true
20-
}
20+
},
21+
"files": [
22+
"src/index.d.ts"
23+
]
2124
}

0 commit comments

Comments
 (0)