Skip to content

Commit

Permalink
chore: add relative patch and watch to html and react playgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelphilipczyk-cloudinary committed Sep 18, 2023
1 parent 4ba4d98 commit 0e322ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion playground/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"vite": "^4.0.0"
},
"dependencies": {
"@cloudinary/html": "1.11.2",
"@cloudinary/html": "file:../../packages/html",
"@cloudinary/url-gen": "^1.8.7"
}
}
2 changes: 1 addition & 1 deletion playground/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@cloudinary/react": "1.11.2",
"@cloudinary/react": "file:../../packages/react/dist",
"@cloudinary/url-gen": "^1.10.0",
"react": "^16.0.0",
"react-dom": "^16.0.0"
Expand Down

0 comments on commit 0e322ab

Please sign in to comment.