File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 55 "additionalEntryPoints" : [
66 {
77 "modulePath" : " react" ,
8- "filePath" : " <projectFolder>/dist/src/ react/index.d.ts"
8+ "filePath" : " <projectFolder>/dist/react/index.d.ts"
99 }
1010 ],
1111 "bundledPackages" : [" next" ]
Original file line number Diff line number Diff line change 8989 "react" : " 19.1.1" ,
9090 "react-dom" : " 19.1.1" ,
9191 "rollup" : " 2.79.2" ,
92+ "rollup-plugin-copy" : " 3.5.0" ,
9293 "rollup-plugin-replace" : " 2.2.0" ,
9394 "rollup-plugin-typescript2" : " 0.36.0" ,
9495 "typescript" : " 5.5.4"
Original file line number Diff line number Diff line change 1616 */
1717
1818import json from '@rollup/plugin-json' ;
19+ import copy from 'rollup-plugin-copy' ;
1920import typescriptPlugin from 'rollup-plugin-typescript2' ;
2021import typescript from 'typescript' ;
2122import pkg from './package.json' ;
@@ -87,7 +88,15 @@ const reactBuilds = [
8788 typescript,
8889 tsconfig : 'tsconfig.react.json'
8990 } ) ,
90- json ( )
91+ json ( ) ,
92+ copy ( {
93+ targets : [
94+ {
95+ src : 'dist/src/react/index.d.ts' ,
96+ dest : 'dist/react'
97+ }
98+ ]
99+ } )
91100 ] ,
92101 external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) )
93102 } ,
You can’t perform that action at this time.
0 commit comments