Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Dependency health configurations #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/dependabot.yml
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find an example pnpm Dependabot setup, but this appears to be what we do in this situation, one set for each package. It's annoyingly long and verbose, but whattayagonnado 🤷🏻

Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
version: 2
updates:
# We need to point to each package.json, so this file will be a bit verbose

# Root package.json
- package-ecosystem: 'pnpm'
directory: '/'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

# Packages
- package-ecosystem: 'pnpm'
directory: '/packages/geometry'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

- package-ecosystem: 'pnpm'
directory: '/packages/scatterbrain'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Add the new packages!

schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

# Examples
- package-ecosystem: 'pnpm'
directory: '/apps/common'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Update to the examples directory, we're not doing the rename we had considered earlier.

schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

- package-ecosystem: 'pnpm'
directory: '/apps/layers'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

- package-ecosystem: 'pnpm'
directory: '/apps/omezarr-viewer'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

- package-ecosystem: 'pnpm'
directory: '/app/scatterplot'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
11 changes: 11 additions & 0 deletions docs/dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Dependencies

## Locked Dependencies
All dependencies in this project are locked to specific versions using the `.npmrc` file at the root of the project.

This is to ensure that the project is built and tested with the same versions of dependencies across different environments, and reduces the threat of security vulnerabilities from a more permissive versioning strategy.

## Dependabot
We run a monthly Dependabot to automatically open PRs to update our dependencies. These are controlled in the `.github/dependabot.yml` file. Because we have multiple packages within this monorepo, that file is somewhat verbose.

When adding a new package or example app, be sure to add a new section to `dependabot.yml`.
42 changes: 21 additions & 21 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,35 +34,35 @@
"dev": "vite"
},
"devDependencies": {
"@types/file-saver": "^2.0.7",
"@types/node": "^22.1.0",
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"typescript": "^5.3.3",
"vite": "^5.3.5"
"@types/file-saver": "2.0.7",
"@types/node": "22.1.0",
"@types/react": "18.3.0",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react-swc": "3.5.0",
"typescript": "5.3.3",
"vite": "5.3.5"
},
"dependencies": {
"@alleninstitute/vis-geometry": "workspace:*",
"@alleninstitute/vis-scatterbrain": "workspace:*",
"@alleninstitute/vis-dzi": "workspace:*",
"@alleninstitute/vis-omezarr": "workspace:*",
"@czi-sds/components": "^20.0.1",
"@emotion/css": "^11.11.2",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@czi-sds/components": "20.0.1",
"@emotion/css": "11.11.2",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
"@mui/base": "5.0.0-beta.40",
"@mui/icons-material": "^5.15.15",
"@mui/icons-material": "5.15.15",
"@mui/lab": "5.0.0-alpha.170",
"@mui/material": "^5.15.15",
"@types/lodash": "^4.14.202",
"file-saver": "^2.0.5",
"json5": "^2.2.3",
"kiwi-schema": "^0.5.0",
"lodash": "^4.17.21",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"regl": "^2.1.0",
"@mui/material": "5.15.15",
"@types/lodash": "4.14.202",
"file-saver": "2.0.5",
"json5": "2.2.3",
"kiwi-schema": "0.5.0",
"lodash": "4.17.21",
"react": "18.3.0",
"react-dom": "18.3.0",
"regl": "2.1.0",
"zarrita": "0.4.0-next.14"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"devDependencies": {
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"buffer": "^5.5.0||^6.0.0",
"buffer": "6.0.0",
"parcel": "2.12.0",
"prettier": "3.3.2",
"process": "^0.11.10",
"typescript": "^5.3.3"
"process": "0.11.10",
"typescript": "5.3.3"
},
"volta": {
"node": "22.11.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/dzi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
"registry": "https://npm.pkg.github.com/AllenInstitute"
},
"devDependencies": {
"@parcel/packager-ts": "^2.12.0",
"@parcel/transformer-typescript-types": "^2.12.0",
"@types/lodash": "^4.14.202",
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"@types/lodash": "4.14.202",
"parcel": "2.12.0",
"typescript": "^5.3.3",
"vitest": "^1.4.0"
"typescript": "5.3.3",
"vitest": "1.4.0"
},
"dependencies": {
"@alleninstitute/vis-geometry": "workspace:*",
"@alleninstitute/vis-scatterbrain": "workspace:*",
"lodash": "^4.17.21",
"regl": "^2.1.0"
"lodash": "4.17.21",
"regl": "2.1.0"
}
}
8 changes: 4 additions & 4 deletions packages/geometry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"registry": "https://npm.pkg.github.com/AllenInstitute"
},
"devDependencies": {
"@parcel/packager-ts": "^2.12.0",
"@parcel/transformer-typescript-types": "^2.12.0",
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"parcel": "2.12.0",
"typescript": "^5.3.3",
"vitest": "^1.4.0"
"typescript": "5.3.3",
"vitest": "1.4.0"
}
}
14 changes: 7 additions & 7 deletions packages/omezarr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
"registry": "https://npm.pkg.github.com/AllenInstitute"
},
"devDependencies": {
"@types/lodash": "^4.14.202",
"typescript": "^5.3.3",
"parcel": "2.12.0",
"@parcel/packager-ts": "^2.12.0",
"@parcel/transformer-typescript-types": "^2.12.0"
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"@types/lodash": "4.14.202",
"typescript": "5.3.3",
"parcel": "2.12.0"
},
"dependencies": {
"@alleninstitute/vis-geometry": "workspace:*",
"@alleninstitute/vis-scatterbrain": "workspace:*",
"lodash": "^4.17.21",
"regl": "^2.1.0",
"lodash": "4.17.21",
"regl": "2.1.0",
"zarrita": "0.4.0-next.14"
}
}
14 changes: 7 additions & 7 deletions packages/scatterbrain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@
"registry": "https://npm.pkg.github.com/AllenInstitute"
},
"devDependencies": {
"@parcel/packager-ts": "^2.12.0",
"@parcel/transformer-typescript-types": "^2.12.0",
"@types/lodash": "^4.14.202",
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"@types/lodash": "4.14.202",
"parcel": "2.12.0",
"typescript": "^5.3.3",
"vitest": "^1.4.0"
"typescript": "5.3.3",
"vitest": "1.4.0"
},
"dependencies": {
"@alleninstitute/vis-geometry": "workspace:*",
"lodash": "^4.17.21",
"regl": "^2.1.0"
"lodash": "4.17.21",
"regl": "2.1.0"
}
}
Loading
Loading