Skip to content

Commit 117bcff

Browse files
committed
chore: add npm run watch to root and npm run watch:es to superdoc package
1 parent b5209c7 commit 117bcff

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"docs:build": "vuepress build docs",
3131
"pack": "npm run build:super-editor && npm --prefix ./packages/superdoc run pack",
3232
"prepare": "husky",
33-
"lint:staged": "lint-staged"
33+
"lint:staged": "lint-staged",
34+
"watch": "npm run watch:es --workspace=packages/superdoc"
3435
},
3536
"lint-staged": {
3637
"*.{js,jsx}": [

packages/superdoc/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"dev": "vite",
4343
"build": "cd ../super-editor && npm run build && cd ../superdoc && vite build && tsc && npm run build:umd",
4444
"build:es": "cd ../super-editor && npm run build && cd ../superdoc && vite build",
45+
"watch:es": "nodemon --watch src --watch ../super-editor/src --ext js,ts,vue --exec \"npm run build:es\" --delay 100ms",
4546
"build:umd": "vite build --config vite.config.umd.js",
4647
"release": "release-it --ci --increment=patch",
4748
"release:next": "release-it --config .release-it.next.json",
@@ -67,10 +68,11 @@
6768
"yjs": "13.6.19"
6869
},
6970
"devDependencies": {
70-
"@release-it/conventional-changelog": "^10.0.1",
7171
"@hocuspocus/provider": "^2.13.6",
72+
"@release-it/conventional-changelog": "^10.0.1",
7273
"@rollup/plugin-replace": "^6.0.2",
7374
"@vitejs/plugin-vue": "^5.2.1",
75+
"nodemon": "^3.1.10",
7476
"pdfjs-dist": "4.3.136",
7577
"postcss-nested": "^6.0.1",
7678
"postcss-nested-import": "^1.3.0",

0 commit comments

Comments
 (0)