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 30
30
"concurrently" : " ^7.4.0" ,
31
31
"esbuild" : " ^0.24.2" ,
32
32
"folder-hash" : " ^4.0.4" ,
33
+ "npm-dts" : " ^1.3.13" ,
33
34
"object-assign" : " ^4.1.1" ,
34
35
"ora" : " 5.4.1" ,
35
36
"prettier" : " ^3.3.3" ,
36
37
"prettier-plugin-hermes-parser" : " ^0.26.0" ,
37
38
"prompt-promise" : " ^1.0.3" ,
39
+ "rimraf" : " ^5.0.10" ,
38
40
"typescript" : " ^5.4.3" ,
39
41
"wait-on" : " ^7.2.0" ,
40
42
"yargs" : " ^17.7.2"
41
43
},
44
+ "resolutions" : {
45
+ "rimraf" : " 5.0.10"
46
+ },
42
47
"packageManager" : " yarn@1.22.22"
43
48
}
Original file line number Diff line number Diff line change 50
50
"pretty-format" : " ^24" ,
51
51
"react" : " 0.0.0-experimental-4beb1fd8-20241118" ,
52
52
"react-dom" : " 0.0.0-experimental-4beb1fd8-20241118" ,
53
- "rimraf" : " ^3.0.2" ,
54
53
"ts-jest" : " ^29.1.1" ,
55
54
"ts-node" : " ^10.9.2" ,
56
55
"zod" : " ^3.22.4" ,
Original file line number Diff line number Diff line change 4
4
"description" : " Runtime for React Compiler" ,
5
5
"license" : " MIT" ,
6
6
"main" : " dist/index.js" ,
7
+ "typings" : " dist/index.d.ts" ,
7
8
"files" : [
8
9
" dist" ,
9
10
" src"
Original file line number Diff line number Diff line change 10
10
const esbuild = require ( 'esbuild' ) ;
11
11
const yargs = require ( 'yargs' ) ;
12
12
const path = require ( 'path' ) ;
13
+ const { Generator} = require ( 'npm-dts' ) ;
13
14
14
15
const argv = yargs ( process . argv . slice ( 2 ) )
15
16
. options ( 'p' , {
@@ -61,6 +62,10 @@ async function main() {
61
62
minify : false ,
62
63
...config ,
63
64
} ) ;
65
+ await new Generator ( {
66
+ entry : 'src/index.ts' ,
67
+ output : 'dist/index.d.ts' ,
68
+ } ) . generate ( ) ;
64
69
}
65
70
}
66
71
Original file line number Diff line number Diff line change 51
51
"@types/node" : " ^18.7.18" ,
52
52
"@typescript-eslint/eslint-plugin" : " ^7.4.0" ,
53
53
"@typescript-eslint/parser" : " ^7.4.0" ,
54
- "object-assign" : " ^4.1.1" ,
55
- "rimraf" : " ^3.0.2"
54
+ "object-assign" : " ^4.1.1"
56
55
},
57
56
"resolutions" : {
58
57
"./**/@babel/parser" : " 7.7.4" ,
You can’t perform that action at this time.
0 commit comments