From 038b267a7bea65e04bbc2d0595ba40034b1c7216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Philipczyk?= Date: Mon, 18 Sep 2023 08:01:13 +0200 Subject: [PATCH] chore: add watch to html and react packages --- packages/html/package.json | 2 ++ packages/react/package.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/html/package.json b/packages/html/package.json index d5b49dee..77c7fbe3 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -10,6 +10,7 @@ "sideEffects": false, "repository": "https://github.com/cloudinary/frontend-frameworks", "scripts": { + "watch": "onchange 'src/**/*.*' -- npm run build", "build": "tsc && npm run prepare-build && rollup -c", "postbuild": "cp index.esm.* ./dist && cp index.umd.* ./dist", "prepare-build": "cp package.json ./dist", @@ -26,6 +27,7 @@ "core-js": "^3.23.5", "jest": "^29.3.1", "jest-environment-jsdom": "^29.3.1", + "onchange": "7.1.0", "rollup": "^2.52.2", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-typescript2": "^0.34.1", diff --git a/packages/react/package.json b/packages/react/package.json index 53938290..589f66a7 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -13,6 +13,7 @@ "node": ">=10" }, "scripts": { + "watch": "onchange 'src/*.*' -- npm run build", "build": "npm run build --prefix ../html && tsc && rollup -c && cp package.json ./dist", "test": "jest --config jest.config.json", "test-coverage": "jest --coverage" @@ -57,6 +58,7 @@ "eslint-plugin-react": "^7.17.0", "eslint-plugin-standard": "^4.0.1", "gh-pages": "^2.2.0", + "onchange": "7.1.0", "npm-run-all": "^4.1.5", "prettier": "^2.0.4", "react": "^16.13.1",