Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
d2b24eb
docs: add dependency update plan
ChumpChief-bot Nov 7, 2026
0718c36
chore: update pnpm to 10.34.9
ChumpChief-bot Nov 7, 2026
c320c10
chore: update pnpm to 12.18.0 and nx to 24.0.5
ChumpChief-bot Nov 7, 2026
d640273
chore: require pnpm >=12 in engines
ChumpChief-bot Nov 7, 2026
20c1a35
chore: stop pinning pnpm majors in workflows
ChumpChief-bot Nov 7, 2026
94d042e
docs: update pnpm version in prerequisites
ChumpChief-bot Nov 7, 2026
1bdd430
chore: update to latest Node LTS (26)
ChumpChief-bot Nov 7, 2026
b5cf29e
docs: update dependency plan with toolchain progress
ChumpChief-bot Nov 7, 2026
477e709
chore: commit nx 24 normalization of nx.json
ChumpChief-bot Nov 7, 2026
bc12aac
deps: safe patches and minors — bump react 19.3, jest 30.5, webpack 5…
ChumpChief-bot Nov 7, 2026
f7ca975
docs: log Chunk 1 completion in dependency plan
ChumpChief-bot Nov 7, 2026
b98a678
deps: eslint 10 stack — eslint 10.14, @eslint/js 10.0.1, eslint-plugi…
ChumpChief-bot Nov 7, 2026
b6833ed
docs: log Chunk 2 completion in dependency plan
ChumpChief-bot Nov 7, 2026
6b88260
deps: webpack tooling majors — webpack-cli 7.3.1, webpack-dev-server …
ChumpChief-bot Nov 7, 2026
dc2a1c2
docs: log Chunk 3 completion in dependency plan
ChumpChief-bot Nov 7, 2026
6fab8c3
deps: changesets CLI major — @changesets/cli 3.0.3 (chunk 5/6)
ChumpChief-bot Nov 8, 2026
a50bd6b
docs: log Chunk 5 completion in dependency plan
ChumpChief-bot Nov 8, 2026
fe34033
docs: record Chunk 6 research (TS 7 side-by-side setup) in dependency…
ChumpChief-bot Nov 8, 2026
b44b03b
deps: typescript 5.8.3 → 6.0.3 (chunk 6/6) — TS 7 deferred
ChumpChief-bot Nov 8, 2026
2194964
docs: log Chunk 6 completion (typescript 6.0.3, TS 7 deferred) in dep…
ChumpChief-bot Nov 8, 2026
b4abc66
chore: remove obsolete interop-flags comment from tsconfig-shared
ChumpChief-bot Nov 8, 2026
cff2766
docs: add GitHub Actions update plan
ChumpChief-bot Nov 8, 2026
a6dbcc2
docs: bring pnpm/setup consideration into the actions plan as Chunk 6
ChumpChief-bot Nov 8, 2026
c4c9ed7
ci: bump actions/checkout v4 → v7 (chunk 1/6)
ChumpChief-bot Nov 8, 2026
3437698
docs: log Chunk 1 completion (actions/checkout v7) and record local-o…
ChumpChief-bot Nov 8, 2026
778dba8
ci: bump pnpm/action-setup v3 → v6 (chunk 2/6)
ChumpChief-bot Nov 8, 2026
d6f30b4
docs: log Chunk 2 completion (pnpm/action-setup v6) in actions plan
ChumpChief-bot Nov 8, 2026
7d4e25b
ci: bump actions/setup-node v4 → v7 (chunk 3/6)
ChumpChief-bot Nov 8, 2026
2ff0a7c
docs: log Chunk 3 completion (actions/setup-node v7) in actions plan
ChumpChief-bot Nov 8, 2026
0a8bdab
ci: pin actions/create-github-app-token to v3.3.0 and adopt client-id…
ChumpChief-bot Nov 8, 2026
442d800
docs: log Chunk 4 completion (create-github-app-token pinned v3.3.0, …
ChumpChief-bot Nov 8, 2026
8b65f33
ci: bump actions/github-script v7 → v9 (chunk 5/6)
ChumpChief-bot Nov 8, 2026
f29c600
docs: log Chunk 5 completion (github-script v9) in actions plan
ChumpChief-bot Nov 8, 2026
9d9e832
ci: declare node 26 via devEngines and .node-version (chunk 6/6 prep)
ChumpChief-bot Nov 8, 2026
c7e3274
docs: record Chunk 6 decision (adopt pnpm/setup B') in actions plan
ChumpChief-bot Nov 8, 2026
9d847d0
ci: adopt pnpm/setup, replacing setup-node and pnpm/action-setup (chu…
ChumpChief-bot Nov 8, 2026
7cb7257
docs: log Chunk 6 completion (pnpm/setup) in actions plan
ChumpChief-bot Nov 8, 2026
aaac88f
ci: pin all GitHub Actions to exact version tags
ChumpChief-bot Nov 8, 2026
3f2d5b3
docs: log exact-version-tag pinning polish in actions plan
ChumpChief-bot Nov 8, 2026
7eb5cfb
docs: log branch review feedback triage in both plans
ChumpChief-bot Nov 8, 2026
6dbfde0
ci: ignore .changeset/README.md in release pre-check
ChumpChief-bot Nov 8, 2026
28ee4b0
chore: explain why react version is explicit, not detect
ChumpChief-bot Nov 8, 2026
b72356d
docs: note applied review-feedback fixes in deps plan
ChumpChief-bot Nov 8, 2026
e47e601
chore: remove dependency and actions update plans
ChumpChief-bot Nov 8, 2026
520e6a0
chore: restore original nx.json formatting
ChumpChief-bot Nov 8, 2026
97df975
deps: update to latest — transitive refresh within declared ranges (c…
ChumpChief-bot Nov 8, 2026
e1b6ac3
ci: pin Node runtime to exact 26.13.0 (chunk 8/8)
ChumpChief-bot Nov 8, 2026
a8adaa4
ci: consolidate runtime pin in .nvmrc, drop .node-version (chunk 9/9)
ChumpChief-bot Nov 8, 2026
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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@4.0.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [["!eslint-config-shared", "!tsconfig-shared"]],
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1

- name: Node setup
uses: actions/setup-node@v4
- name: pnpm and Node setup
uses: pnpm/setup@v3.1.2
with:
node-version: 22

- name: pnpm setup
uses: pnpm/action-setup@v3
with:
version: 10
install: false

- name: Install dependencies
run: |
Expand Down
33 changes: 12 additions & 21 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,20 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1
with:
ref: ${{ inputs.releaseTag }}
- name: Node setup
uses: actions/setup-node@v4
- name: pnpm and Node setup
uses: pnpm/setup@v3.1.2
with:
node-version: 22
- name: pnpm setup
uses: pnpm/action-setup@v3
with:
version: 10
install: false
- name: Install dependencies
run: |
pnpm i
# We don't need to run CI prior to computing dist tags, we'll do that in the publish step
- name: Compute dist tags
id: compute_dist_tags
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
script: |
const fs = require("fs");
Expand Down Expand Up @@ -119,18 +115,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1
with:
ref: ${{ inputs.releaseTag }}
- name: Node setup
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org/"
- name: pnpm setup
uses: pnpm/action-setup@v3
- name: pnpm and Node setup
uses: pnpm/setup@v3.1.2
with:
version: 9
install: false
# We need to install and run CI to generate the content that will go into the package.
# Doesn't hurt to have an extra layer of validation before publishing too.
- name: Install dependencies
Expand All @@ -142,7 +133,7 @@ jobs:
pnpm run ci
- name: Publish to NPM${{ inputs.dryRun && ' (dry run)' || '' }}
id: publish_to_npm
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
with:
Expand All @@ -160,7 +151,7 @@ jobs:
}
- name: Add latest tags${{ inputs.dryRun && ' (dry run)' || '' }}
id: add_latest_tags
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
with:
Expand Down Expand Up @@ -194,7 +185,7 @@ jobs:
steps:
- name: Update Github release
id: update_github_release
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
script: |
const dryRun = ${{ inputs.dryRun }} === true;
Expand Down
58 changes: 27 additions & 31 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
steps:
- name: Generate app token
id: generate_app_token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
client-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.CHUMPCHIEF_RELEASE_BOT_APP_PRIVATE_KEY }}
- name: Lock branch
id: lock_branch
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
github-token: ${{ steps.generate_app_token.outputs.token }}
result-encoding: string
Expand All @@ -63,27 +63,23 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node setup
uses: actions/setup-node@v4
uses: actions/checkout@v7.0.1
- name: pnpm and Node setup
uses: pnpm/setup@v3.1.2
with:
node-version: 22
- name: pnpm setup
uses: pnpm/action-setup@v3
with:
version: 10
install: false
- name: Install dependencies
run: |
pnpm i
- name: Generate app token
id: generate_app_token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
client-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.CHUMPCHIEF_RELEASE_BOT_APP_PRIVATE_KEY }}
- name: Create bump branch
id: create_bump_branch
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
github-token: ${{ steps.generate_app_token.outputs.token }}
script: |
Expand All @@ -100,17 +96,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1
- name: Generate app token
id: generate_app_token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
client-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.CHUMPCHIEF_RELEASE_BOT_APP_PRIVATE_KEY }}
# TODO: Use fewer external scripts to avoid requiring checkout?
- name: Create bump PR
id: create_bump_pr
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
github-token: ${{ steps.generate_app_token.outputs.token }}
script: |
Expand All @@ -126,11 +122,11 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1
# TODO: Also wait for CI of the merged PR to finish successfully?
- name: Wait for PR merge
id: wait_for_pr_merge
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
script: |
const script = require(".github/workflows/scripts/waitForPRMerge.cjs");
Expand All @@ -144,12 +140,12 @@ jobs:
steps:
- name: Generate app token
id: generate_app_token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
client-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.CHUMPCHIEF_RELEASE_BOT_APP_PRIVATE_KEY }}
- name: Unlock branch
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
github-token: ${{ steps.generate_app_token.outputs.token }}
script: |
Expand All @@ -165,18 +161,18 @@ jobs:
tagInfo: ${{ steps.create_tag.outputs.result }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1
with:
ref: ${{ needs.wait_for_pr_merge.outputs.mergeInfo.mergeCommitSha }}
- name: Generate app token
id: generate_app_token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
client-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.CHUMPCHIEF_RELEASE_BOT_APP_PRIVATE_KEY }}
- name: Create tag
id: create_tag
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
github-token: ${{ steps.generate_app_token.outputs.token }}
script: |
Expand All @@ -189,17 +185,17 @@ jobs:
needs: [create_bump_branch, create_tag]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1
with:
ref: ${{ needs.create_tag.outputs.tagInfo.tagName }}
- name: Generate app token
id: generate_app_token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
client-id: ${{ vars.CHUMPCHIEF_RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.CHUMPCHIEF_RELEASE_BOT_APP_PRIVATE_KEY }}
- name: Create release
uses: actions/github-script@v7
uses: actions/github-script@v9.0.0
with:
github-token: ${{ steps.generate_app_token.outputs.token }}
script: |
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/scripts/createBumpBranch.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ module.exports = async ({github, context, core, exec}, dryRun) => {
const baseBranchName = context.ref.replace("refs/heads/", "");
const bumpBranchName = `bump/${ baseBranchName }${ dryRun ? "-DO_NOT_MERGE" : "" }`;

// Fail early, before creating the bump branch, if there is nothing to release.
// (changesets v3: `changeset version` exits 1 when no changesets are pending, but
// exit 1 is also used for all other failures, so check for changeset files up front
// instead of trying to interpret the exit code.)
const { stdout: changesetFiles } = await exec.getCommandOutput("git", ["ls-files", "--", ".changeset/"]);
// (Exclude README.md: `changeset init` in a derived repo tracks
// .changeset/README.md, which is not a changeset.)
const hasChangesets = changesetFiles.split("\n").some((line) => {
const name = line.trim();
return name.endsWith(".md") && !name.endsWith("README.md");
});
if (!hasChangesets) {
throw new Error(`No unreleased changesets on ${ baseBranchName }; nothing to release. Add changesets and re-run this workflow.`);
}

// Check if the bump branch already exists
const branchExists = (await exec.exec("git show-ref", ["--quiet", `refs/heads/${ bumpBranchName }`], { ignoreReturnCode: true })) === 0;
// TODO: Maybe don't permit proceeding if the branch exists? Definitely not in dry-run mode.
Expand All @@ -20,7 +35,8 @@ module.exports = async ({github, context, core, exec}, dryRun) => {
}

console.log("Bumping the version...");
// TODO: Some reasonable behavior if there are no new changesets, exit safely and quietly?
// Note: the no-changesets case is handled by the pre-check above; any failure here
// is a real error and should fail the job (changesets v3 exits 1 in both cases).
await exec.exec("pnpm changeset version");

// Commmit changes
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
26.13.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ This repo is meant to be used as a template for typescript monorepo projects. I

This repo has the following prerequisites:

* The latest LTS version of Node (currently 22) is installed.
* The latest LTS version of Node (currently 26) is installed.
* If you are using nvm, you can run `nvm install` or `nvm use` to install or use the correct version, respectively.
* The latest version of `pnpm` (currently 10) is globally installed.
* The latest version of `pnpm` (currently 12) is globally installed.
* Corepack is also currently an option, but note it is [planned to be removed from the default Node installation](https://github.com/nodejs/TSC/pull/1697#issuecomment-2737093616).

Run `pnpm i` from the project root to install dependencies.
Expand Down
9 changes: 5 additions & 4 deletions build/eslint-config-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"license": "Unlicense",
"type": "module",
"devDependencies": {
"@eslint/js": "^9.31.0",
"@stylistic/eslint-plugin": "^5.2.0",
"eslint-plugin-perfectionist": "^4.15.0",
"@eslint/js": "^10.0.1",
"@stylistic/eslint-plugin": "^5.10.0",
"eslint": "^10.14.0",
"eslint-plugin-perfectionist": "^5.13.0",
"eslint-plugin-react": "^7.37.5",
"typescript-eslint": "^8.37.0"
"typescript-eslint": "^8.72.1"
}
}
8 changes: 7 additions & 1 deletion build/eslint-config-shared/react.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ export const reactConfigs = [
{
settings: {
react: {
version: "detect",
// Explicit version instead of "detect": the plugin's detect path calls
// context.getFilename(), which ESLint 10 removed (deprecated in 9,
// replaced by the context.filename property), so rule loading crashes
// with "contextOrFilename.getFilename is not a function" (upstream:
// jsx-eslint/eslint-plugin-react#3970). Bump this in lockstep with the
// react major version.
version: "19.x",
},
},
},
Expand Down
2 changes: 0 additions & 2 deletions build/tsconfig-shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@
/* Interop Constraints */
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
"allowSyntheticDefaultImports": false, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": false, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */

Expand Down
28 changes: 14 additions & 14 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint": "eslint",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests built/.*.test.js",
"webpack": "webpack",
"start": "webpack-dev-server"
"start": "webpack serve"
},
"keywords": [],
"author": "Matt Rakow",
Expand All @@ -17,22 +17,22 @@
"dependencies": {
"@chumpchief/package1": "workspace:*",
"@chumpchief/package2": "workspace:*",
"react": "^19.1.0",
"react-dom": "^19.1.0"
"react": "^19.3.1",
"react-dom": "^19.3.1"
},
"devDependencies": {
"@jest/globals": "^30.0.4",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"eslint": "^9.31.0",
"@jest/globals": "^30.5.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"eslint": "^10.14.0",
"eslint-config-shared": "workspace:*",
"html-webpack-plugin": "^5.6.3",
"jest": "^30.0.4",
"ts-loader": "^9.5.2",
"html-webpack-plugin": "^5.6.8",
"jest": "^30.5.2",
"ts-loader": "^9.6.2",
"tsconfig-shared": "workspace:*",
"typescript": "^5.8.3",
"webpack": "^5.100.0",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.2"
"typescript": "^6.0.3",
"webpack": "^5.112.2",
"webpack-cli": "^7.3.1",
"webpack-dev-server": "^6.1.0"
}
}
3 changes: 2 additions & 1 deletion examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "tsconfig-shared/tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx",
"outDir": "./built"
"outDir": "./built",
"rootDir": "./src"
}
}
Loading
Loading