Skip to content

Commit

Permalink
Added update-dh-packages to all js plugins (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Feb 28, 2024
1 parent 6493594 commit 993dcaf
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
3 changes: 2 additions & 1 deletion plugins/auth-keycloak/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"homepage": "https://github.com/deephaven/deephaven-js-plugins",
"scripts": {
"start": "vite build --watch",
"build": "vite build"
"build": "vite build",
"update-dh-packages": "node ../../../../tools/update-dh-packages.mjs"
},
"devDependencies": {
"@types/plotly.js": "^2.12.18",
Expand Down
3 changes: 2 additions & 1 deletion plugins/dashboard-object-viewer/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
],
"scripts": {
"start": "vite build --watch",
"build": "vite build"
"build": "vite build",
"update-dh-packages": "node ../../../../tools/update-dh-packages.mjs"
},
"dependencies": {
"@deephaven/components": "^0.40.0",
Expand Down
3 changes: 2 additions & 1 deletion plugins/example-theme/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"start": "npm run build -- -w"
"start": "npm run build -- -w",
"update-dh-packages": "node ../../../../tools/update-dh-packages.mjs"
},
"devDependencies": {
"@deephaven/plugin": "^0.58.0",
Expand Down
3 changes: 2 additions & 1 deletion plugins/matplotlib/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"homepage": "https://github.com/deephaven/web-client-ui",
"scripts": {
"start": "vite build --watch",
"build": "vite build"
"build": "vite build",
"update-dh-packages": "node ../../../../tools/update-dh-packages.mjs"
},
"devDependencies": {
"@types/react": "^17.0.2",
Expand Down
3 changes: 2 additions & 1 deletion plugins/plotly-express/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"homepage": "https://github.com/deephaven/deephaven-js-plugins",
"scripts": {
"start": "vite build --watch",
"build": "tsc && vite build"
"build": "tsc && vite build",
"update-dh-packages": "node ../../../../tools/update-dh-packages.mjs"
},
"devDependencies": {
"@deephaven/jsapi-types": "0.64.0",
Expand Down
3 changes: 2 additions & 1 deletion plugins/plotly/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"homepage": "https://github.com/deephaven/deephaven-js-plugins",
"scripts": {
"start": "vite build --watch",
"build": "vite build"
"build": "vite build",
"update-dh-packages": "node ../../../../tools/update-dh-packages.mjs"
},
"devDependencies": {
"@types/react": "^17.0.2",
Expand Down
7 changes: 7 additions & 0 deletions tools/update-dh-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ const dhPackageNames = [
),
];

if (dhPackageNames.length === 0) {
console.log(
'No @deephaven packages found in dependencies or devDependencies.'
);
process.exit(0);
}

console.log('Updating packages:', dhPackageNames);

const cmd = `npm i --save ${dhPackageNames
Expand Down

0 comments on commit 993dcaf

Please sign in to comment.