Skip to content

Commit 0e322ab

Browse files
chore: add relative patch and watch to html and react playgrounds
1 parent 4ba4d98 commit 0e322ab

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
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",

playground/html/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"vite": "^4.0.0"
1414
},
1515
"dependencies": {
16-
"@cloudinary/html": "1.11.2",
16+
"@cloudinary/html": "file:../../packages/html",
1717
"@cloudinary/url-gen": "^1.8.7"
1818
}
1919
}

playground/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"@cloudinary/react": "1.11.2",
12+
"@cloudinary/react": "file:../../packages/react/dist",
1313
"@cloudinary/url-gen": "^1.10.0",
1414
"react": "^16.0.0",
1515
"react-dom": "^16.0.0"

0 commit comments

Comments
 (0)