Skip to content

Commit 0e42329

Browse files
authored
fix: Change typing file path (#175)
1 parent e461f97 commit 0e42329

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

packages/@react-editor-js/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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"

packages/react-editor-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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"

rollup.config.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff 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

3941
export 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
]

0 commit comments

Comments
 (0)