File tree Expand file tree Collapse file tree 6 files changed +408
-22
lines changed
babel-plugin-react-compiler Expand file tree Collapse file tree 6 files changed +408
-22
lines changed Original file line number Diff line number Diff line change 3030 "concurrently" : " ^7.4.0" ,
3131 "esbuild" : " ^0.24.2" ,
3232 "folder-hash" : " ^4.0.4" ,
33+ "npm-dts" : " ^1.3.13" ,
3334 "object-assign" : " ^4.1.1" ,
3435 "ora" : " 5.4.1" ,
3536 "prettier" : " ^3.3.3" ,
3637 "prettier-plugin-hermes-parser" : " ^0.26.0" ,
3738 "prompt-promise" : " ^1.0.3" ,
39+ "rimraf" : " ^5.0.10" ,
3840 "typescript" : " ^5.4.3" ,
3941 "wait-on" : " ^7.2.0" ,
4042 "yargs" : " ^17.7.2"
4143 },
44+ "resolutions" : {
45+ "rimraf" : " 5.0.10"
46+ },
4247 "packageManager" :
" [email protected] " 4348}
Original file line number Diff line number Diff line change 5050 "pretty-format" : " ^24" ,
5151 "react" : " 0.0.0-experimental-4beb1fd8-20241118" ,
5252 "react-dom" : " 0.0.0-experimental-4beb1fd8-20241118" ,
53- "rimraf" : " ^3.0.2" ,
5453 "ts-jest" : " ^29.1.1" ,
5554 "ts-node" : " ^10.9.2" ,
5655 "zod" : " ^3.22.4" ,
Original file line number Diff line number Diff line change 44 "description" : " Runtime for React Compiler" ,
55 "license" : " MIT" ,
66 "main" : " dist/index.js" ,
7+ "typings" : " dist/index.d.ts" ,
78 "files" : [
89 " dist" ,
910 " src"
Original file line number Diff line number Diff line change 1010const esbuild = require ( 'esbuild' ) ;
1111const yargs = require ( 'yargs' ) ;
1212const path = require ( 'path' ) ;
13+ const { Generator} = require ( 'npm-dts' ) ;
1314
1415const argv = yargs ( process . argv . slice ( 2 ) )
1516 . options ( 'p' , {
@@ -61,6 +62,10 @@ async function main() {
6162 minify : false ,
6263 ...config ,
6364 } ) ;
65+ await new Generator ( {
66+ entry : 'src/index.ts' ,
67+ output : 'dist/index.d.ts' ,
68+ } ) . generate ( ) ;
6469 }
6570}
6671
Original file line number Diff line number Diff line change 5151 "@types/node" : " ^18.7.18" ,
5252 "@typescript-eslint/eslint-plugin" : " ^7.4.0" ,
5353 "@typescript-eslint/parser" : " ^7.4.0" ,
54- "object-assign" : " ^4.1.1" ,
55- "rimraf" : " ^3.0.2"
54+ "object-assign" : " ^4.1.1"
5655 },
5756 "resolutions" : {
5857 "./**/@babel/parser" : " 7.7.4" ,
You can’t perform that action at this time.
0 commit comments