Skip to content
Merged
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
23 changes: 17 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,44 @@ updates:
- package-ecosystem: npm
directories: ["/", "/template"]
schedule:
interval: weekly
interval: monthly
cooldown:
default-days: 7
groups:
minor-and-patch:
patterns: ["*"]
npm-minor-and-patch:
update-types: ["minor", "patch"]
npm-major:
update-types: ["major"]
npm-security:
applies-to: security-updates
patterns: ["*"]
ignore:
- dependency-name: typescript
update-types:
- "version-update:semver-major"
- "version-update:semver-minor"
- dependency-name: "@types/node"
update-types: ["version-update:semver-major"]
- dependency-name: eslint
update-types: ["version-update:semver-major"]
- dependency-name: "@eslint/js"
update-types: ["version-update:semver-major"]

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: monthly
groups:
actions:
github-actions:
patterns: ["*"]

- package-ecosystem: docker-compose
directory: /template
schedule:
interval: weekly
interval: monthly
groups:
docker-compose:
patterns: ["*"]
ignore:
- dependency-name: postgres
update-types: ["version-update:semver-major"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,5 @@ CI runs the root preflight, installs the commit under test with npx exactly as a
Dependabot updates the npm packages at the root and in the template, the Postgres image in the template, and the actions in this repository's workflow. Three things are left to do by hand:

- Bump the `uses:` versions in `template/.github/workflows/ci.yml`, which Dependabot cannot see.
- Raise the major version of `@types/node` when its runtime moves: Node.js for most of the repository, and the Node.js inside Electron for the desktop app. Raise TypeScript's major and minor versions by hand as well.
- Raise the major version of `@types/node` when its runtime moves: Node.js for most of the repository, and the Node.js inside Electron for the desktop app. Raise TypeScript's major and minor versions, and the major versions of ESLint and `@eslint/js`, by hand as well.
- Run `npm dedupe` in `template/` after updating by hand. npm can otherwise install a second copy of a package that one already present would satisfy, as it does with Rolldown after a fresh resolution.
23 changes: 17 additions & 6 deletions template/.github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,26 @@ updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
interval: monthly
cooldown:
default-days: 7
groups:
minor-and-patch:
patterns: ["*"]
npm-minor-and-patch:
update-types: ["minor", "patch"]
npm-major:
update-types: ["major"]
npm-security:
applies-to: security-updates
patterns: ["*"]
ignore:
- dependency-name: typescript
update-types:
- "version-update:semver-major"
- "version-update:semver-minor"
- dependency-name: eslint
update-types: ["version-update:semver-major"]
- dependency-name: "@eslint/js"
update-types: ["version-update:semver-major"]
# desktop:start
- dependency-name: "@types/node"
update-types: ["version-update:semver-major"]
Expand All @@ -23,15 +31,18 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: monthly
groups:
actions:
github-actions:
patterns: ["*"]

- package-ecosystem: docker-compose
directory: /
schedule:
interval: weekly
interval: monthly
groups:
docker-compose:
patterns: ["*"]
ignore:
- dependency-name: postgres
update-types: ["version-update:semver-major"]
2 changes: 1 addition & 1 deletion template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ SITE_URL=https://example.com npm run build
- **One config for the repository.** ESLint, Prettier, and lint-staged are configured at the root and cover every workspace, so run them from the root. Vitest's root config lists the workspace projects, each of which keeps its own `vitest.config.ts`. Every config file is TypeScript: Node.js 26 loads them directly, and ESLint reads `eslint.config.ts` through `jiti`.
- **The editor agrees with preflight.** A passing `npm run preflight` should leave nothing underlined in VS Code. ESLint fails on deprecated APIs and lints Tailwind classes with `eslint-plugin-better-tailwindcss`, which makes the same checks as the Tailwind CSS IntelliSense extension, so `.vscode/settings.json` turns those three IntelliSense lints off. Prettier wraps long class lists, so the plugin's line-wrapping rule is the one rule switched off.
- **ShellCheck reads `.shellcheckrc`**, so a script checked on its own in the editor follows `scripts/lib.sh` just as `lint:shell` does.
- **`overrides` in `package.json`.** One entry points every `eslint` peer dependency at the root ESLint 10, because some plugins bundled with `eslint-config-next` still declare ESLint 9. The other lets `@esbuild-kit/core-utils`, a deprecated package that `drizzle-kit` lists but never loads, share the esbuild already installed instead of adding an old release with a known advisory.
- **`overrides` in `package.json`.** One entry points every `eslint` peer dependency at the root ESLint 10, because some plugins bundled with `eslint-config-next` still declare ESLint 9. Dependabot leaves major versions of ESLint and `@eslint/js` alone, so bump them by hand. The other lets `@esbuild-kit/core-utils`, a deprecated package that `drizzle-kit` lists but never loads, share the esbuild already installed instead of adding an old release with a known advisory.
- **`allowScripts` in `package.json`** is npm's install-script policy and names the packages whose install scripts may run. When `npm install` reports an unreviewed package, look at what its script does and approve it. `prune` drops the entries that an update has made unnecessary.

```sh
Expand Down