Skip to content

Commit 038b267

Browse files
chore: add watch to html and react packages
1 parent 4ba4d98 commit 038b267

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/html/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"sideEffects": false,
1111
"repository": "https://github.com/cloudinary/frontend-frameworks",
1212
"scripts": {
13+
"watch": "onchange 'src/**/*.*' -- npm run build",
1314
"build": "tsc && npm run prepare-build && rollup -c",
1415
"postbuild": "cp index.esm.* ./dist && cp index.umd.* ./dist",
1516
"prepare-build": "cp package.json ./dist",
@@ -26,6 +27,7 @@
2627
"core-js": "^3.23.5",
2728
"jest": "^29.3.1",
2829
"jest-environment-jsdom": "^29.3.1",
30+
"onchange": "7.1.0",
2931
"rollup": "^2.52.2",
3032
"rollup-plugin-peer-deps-external": "^2.2.4",
3133
"rollup-plugin-typescript2": "^0.34.1",

packages/react/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"node": ">=10"
1414
},
1515
"scripts": {
16+
"watch": "onchange 'src/*.*' -- npm run build",
1617
"build": "npm run build --prefix ../html && tsc && rollup -c && cp package.json ./dist",
1718
"test": "jest --config jest.config.json",
1819
"test-coverage": "jest --coverage"
@@ -57,6 +58,7 @@
5758
"eslint-plugin-react": "^7.17.0",
5859
"eslint-plugin-standard": "^4.0.1",
5960
"gh-pages": "^2.2.0",
61+
"onchange": "7.1.0",
6062
"npm-run-all": "^4.1.5",
6163
"prettier": "^2.0.4",
6264
"react": "^16.13.1",

0 commit comments

Comments
 (0)