File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 44 "description" : " The unofficial editor-js component for React on client" ,
55 "main" : " ./dist/core.cjs.js" ,
66 "module" : " ./dist/core.js" ,
7- "types" : " ./dist/core/src/ index.d.ts" ,
7+ "types" : " ./dist/index.d.ts" ,
88 "repository" : {
99 "type" : " git" ,
1010 "url" : " https://github.com/Jungwoo-An/react-editor-js.git"
Original file line number Diff line number Diff line change 44 "description" : " The unofficial editor-js component for React" ,
55 "main" : " ./dist/react-editor-js.cjs.js" ,
66 "module" : " ./dist/react-editor-js.js" ,
7- "types" : " ./dist/react-editor-js/src/ index.d.ts" ,
7+ "types" : " ./dist/index.d.ts" ,
88 "repository" : {
99 "type" : " git" ,
1010 "url" : " https://github.com/Jungwoo-An/react-editor-js.git"
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ function createRollupConfig({ basePath }) {
1919 plugins : [
2020 typescript ( {
2121 tsconfig : path . join ( basePath , 'tsconfig.json' ) ,
22+ cwd : basePath ,
23+ clean : true ,
2224 } ) ,
2325 resolve ( {
2426 extensions : [ '.ts' , '.js' ] ,
@@ -37,8 +39,14 @@ function createRollupConfig({ basePath }) {
3739}
3840
3941export default [
40- createRollupConfig ( { basePath : './packages/@react-editor-js/core' } ) ,
41- createRollupConfig ( { basePath : './packages/@react-editor-js/client' } ) ,
42- createRollupConfig ( { basePath : './packages/@react-editor-js/server' } ) ,
43- createRollupConfig ( { basePath : './packages/react-editor-js' } ) ,
42+ createRollupConfig ( {
43+ basePath : path . resolve ( './packages/@react-editor-js/core' ) ,
44+ } ) ,
45+ createRollupConfig ( {
46+ basePath : path . resolve ( './packages/@react-editor-js/client' ) ,
47+ } ) ,
48+ createRollupConfig ( {
49+ basePath : path . resolve ( './packages/@react-editor-js/server' ) ,
50+ } ) ,
51+ createRollupConfig ( { basePath : path . resolve ( './packages/react-editor-js' ) } ) ,
4452]
You can’t perform that action at this time.
0 commit comments