Skip to content

chore(deps): update dependencies - #13070

Merged
alumni merged 1 commit into
masterfrom
chore/update-dependencies
Nov 23, 2026
Merged

alumni merged 1 commit into
masterfrom
chore/update-dependencies

Conversation

@alumni

@alumni alumni commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Description of change

Unify common workspace dependencies. The website (docs) is now a monorepo package.

Update all dependencies.

Extend the range of accepted peers: oracledb ^26, ioredis ^6, better-sqlite3 ^13, @google-cloud/spanner ^9.

Stop publishing v0.3.x nightlies. Since there's barely any development on the v0 branch, if there's any release needed it will be done manually (and most likely it won't be a nightly).

While we still compile the main TypeORM package for Node 20, we'll move the tests to use Node 22. Most of the development tooling already dropped support for Node 20, so if we want to use modern tooling, we need to switch to Node 22 for development.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links a relevant issue using a closing keyword:
    Fixes #NNNN, Closes #NNNN, or Resolves #NNNN
  • There are new or updated tests validating the change (tests/**.test.ts)
  • Documentation has been updated to reflect this change (docs/docs/**.md)

@pkg-pr-new

pkg-pr-new Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
  • typeorm-sql-js-example

    npm i https://pkg.pr.new/@typeorm/codemod@13070
    
    npm i https://pkg.pr.new/@typeorm/legacy-naming-strategies@13070
    
    npm i https://pkg.pr.new/typeorm@13070
    

commit: 9666a1a

@alumni
alumni force-pushed the chore/update-dependencies branch from 7519d83 to 457b1c0 Compare November 16, 2026 23:57
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Deploying typeorm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9666a1a
Status: ✅  Deploy successful!
Preview URL: https://f6dff5fb.typeorm.pages.dev
Branch Preview URL: https://chore-update-dependencies.typeorm.pages.dev

View logs

@alumni
alumni force-pushed the chore/update-dependencies branch 5 times, most recently from 3e5fe62 to 53b81b8 Compare November 17, 2026 09:38
@alumni
alumni marked this pull request as ready for review November 17, 2026 11:18
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (12) 📘 Rule violations (1) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. The v0 branch stops receiving nightly releases 🐞 Bug ≡ Correctness
Description
The schedule case now emits a publish matrix containing only master, removing the v0 entry and
its nightly tag. Every scheduled run uses that matrix, so it no longer creates a job to check out
or publish the v0 branch, despite the workflow’s stated publishing strategy.
Code

.github/workflows/publish-package.yml[63]

+              echo 'matrix=[{"ref":"master","tag":"dev","node":"26"}]' >> $GITHUB_OUTPUT
Evidence
The workflow documents a scheduled v0 nightly release, but the changed schedule matrix contains only
master. The publish job takes its matrix directly from that output.

.github/workflows/publish-package.yml[3-12]
.github/workflows/publish-package.yml[52-64]
.github/workflows/publish-package.yml[85-90]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Scheduled runs no longer publish the v0 branch under the nightly tag.
## Fix Focus Areas
- .github/workflows/publish-package.yml[62-64]
## Recommended Fix
Restore the v0 entry with its nightly tag and Node version in the schedule matrix, alongside the master entry.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. TypeORM no longer compiles ✓ Resolved
Description
In createDatabaseConnection, the options destructuring contains a bare = null, instead of
nativeBinding = null,, making it invalid TypeScript and leaving the nativeBinding passed to `new
this.sqlite(...) undeclared. pnpm run compile` fails before the connection code runs, blocking the
TypeORM package build, packaging, CI test jobs, and publish workflows.

3. Node 20 contributors cannot install 🐞 Bug ≡ Correctness
Description
packages/typeorm now installs [email protected], which requires Node 22 or newer, while the
workspace enforces dependency engine requirements. A contributor using Node 20, which TypeORM still
lists as supported, cannot install the workspace dependencies to build or test the project.
Code

packages/typeorm/package.json[114]

+    "better-sqlite3": "^13.2.0",
Evidence
The lockfile records Node >=22 for the newly selected direct dependency; the workspace enables
strict engine checks, but TypeORM's published engine range still includes Node 20.

packages/typeorm/package.json[114-114]
pnpm-lock.yaml[3548-3551]
pnpm-workspace.yaml[15-15]
packages/typeorm/package.json[202-205]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new development dependency resolves to a release requiring Node 22, although the TypeORM package still supports Node 20 and the workspace enforces dependency engines.
## Fix Focus Areas
- packages/typeorm/package.json[114-114]
- pnpm-workspace.yaml[15-15]
## Recommended Fix
Use a Node 20-compatible better-sqlite3 version for the shared development install, or explicitly revise Node support and its associated workflows if dropping Node 20 is intended.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View action required (3)
4. Naming-strategy previews publish no package 🐞 Bug ≡ Correctness
Description
The new legacy-package build step writes PACKAGES through GITHUB_ENV, but the publish step reads
${{ env.PACKAGES }}, which does not acquire values written through GITHUB_ENV. When that build
succeeds, the publish command receives no package path from it; the new step also replaces rather
than preserves paths exported by earlier build steps.
Code

.github/workflows/preview.yml[77]

+          echo "PACKAGES=${{ env.PACKAGES }} ./packages/legacy-naming-strategies" >> "$GITHUB_ENV"
Evidence
The TypeORM and codemod steps export paths through GITHUB_ENV, the new legacy step attempts to read
the expression context and exports its own path, and the final command uses that expression context
instead of the runner environment.

.github/workflows/preview.yml[58-81]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new preview build exports its package path at runner runtime, but expression-based references do not read that exported value, so publishing receives no path for the legacy package.
## Fix Focus Areas
- .github/workflows/preview.yml[69-81]
## Recommended Fix
Append package paths using the shell's `$PACKAGES` value in build steps, then pass the accumulated shell environment variable to the publish command rather than using `${{ env.PACKAGES }}`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


5. Generated projects lose TypeScript tools 🐞 Bug ≡ Correctness
Description
copyPackageFile reads only TypeORM’s package-local manifest, so moving ts-node, typescript,
and @types/node solely to the workspace root leaves all three out of its packaged
devDependencies. When typeorm init reads that packaged manifest, it omits those dependencies
from new projects even though their generated start scripts invoke ts-node.
Code

packages/typeorm/package.json[L142-143]

-    "ts-node": "^10.9.2",
-    "typescript": "^5.9.3",
Evidence
The packaging function filters dependencies from TypeORM’s own manifest, not the workspace root. The
init command then copies those packaged values into a generated project and writes a script that
requires ts-node.

packages/typeorm/gulpfile.ts[99-106]
packages/typeorm/src/commands/InitCommand.ts[716-728]
packages/typeorm/src/commands/InitCommand.ts[779-785]
package.json[28-30]
package.json[44-46]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Moving TypeScript tooling dependencies out of TypeORM’s local manifest removes the versions used when packaging TypeORM and scaffolding new projects.
## Fix Focus Areas
- packages/typeorm/package.json[106-113]
- packages/typeorm/package.json[142-144]
- packages/typeorm/gulpfile.ts[99-106]
## Recommended Fix
Keep `@types/node`, `ts-node`, and `typescript` in TypeORM’s package-local devDependencies so the packaging step retains their versions for `typeorm init`. Verify that the packaged manifest and a generated project both contain all three dependencies.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. Node 20 Spanner tests use an unsupported client 🐞 Bug ≡ Correctness
Description
Updating @google-cloud/spanner to 9.1.0 selects a package whose recorded engine requirement is
Node 22 or newer. The Spanner job still runs for the Node 20 Linux matrix leg and loads that client
during its test suite, while the workspace's fixed nodeVersion checks installation against Node 22
rather than that job's runtime.
Code

packages/typeorm/package.json[101]

+    "@google-cloud/spanner": "^9.1.0",
Evidence
The lockfile states Spanner 9.1.0's Node requirement; the workflow runs the same Spanner suite under
both matrix versions, and TypeORM loads the client by name.

pnpm-lock.yaml[1757-1764]
.github/workflows/tests.yml[132-141]
.github/workflows/tests-linux.yml[282-311]
packages/typeorm/src/platform/PlatformTools.ts[47-51]
pnpm-workspace.yaml[14-17]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Node 20 Spanner test job executes a client version that declares Node 22 as its minimum runtime.
## Fix Focus Areas
- packages/typeorm/package.json[100-103]
- .github/workflows/tests.yml[132-141]
- pnpm-workspace.yaml[14-17]
## Recommended Fix
Use a Node 20-compatible Spanner client for the Node 20 test leg, or explicitly change the supported-runtime and test strategy so no Node 20 job loads version 9.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

7. Every CI job now installs the docs site's dependencies 🐞 Bug ➹ Performance
Description
Adding docs to packages in pnpm-workspace.yaml and removing the --ignore-workspace option
from the shared setup-node action means every pnpm install --frozen-lockfile at the repo root
also installs the whole Docusaurus/React dependency tree. Every test, lint, build, codemod, sonar
and publish job that uses setup-node (each driver job in the Linux matrix, run once per Node
version) now downloads and links that unrelated tree. The docs build in turn installs the full
TypeORM driver devDependencies, which makes CI slower and adds packages that can break installs for
jobs that never touch the docs.
Code

pnpm-workspace.yaml[R1-4]

packages:
+    - "docs"
- "packages/*"
- "playground"
Evidence
The removed workspace comment says docs was kept out on purpose because it has a "large, unrelated
dependency tree". setup-node now runs a plain pnpm install --frozen-lockfile, which installs
every workspace project. The test and build jobs call ./.github/actions/setup-node without
filters, so all of them pay for the docs tree.

.github/actions/setup-node/action.yml[17-30]
.github/workflows/tests.yml[85-105]
pnpm-workspace.yaml[1-17]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Now that `docs` is a workspace member, every root `pnpm install` in CI installs the Docusaurus tree, and the docs build installs every TypeORM driver.
## Fix Focus Areas
- pnpm-workspace.yaml[1-4]
- .github/actions/setup-node/action.yml[27-29]
- .github/actions/build-docs/action.yml[7-9]
## Recommended Fix
Add an optional `filter` input to `setup-node` and pass it through to `pnpm install --frozen-lockfile --filter <pkg>...`. Use `--filter @typeorm/docs...` in build-docs, and exclude docs (`--filter '!@typeorm/docs'`) in the test, lint and build jobs. The other option is to take docs back out of the workspace.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


8. Docs lockfile changes skip the docs build and deploy ✓ Resolved
Description
Because docs is now in the root workspace, its resolved dependencies live only in the root
pnpm-lock.yaml, and docs/pnpm-lock.yaml is deleted. The docs path filter in tests.yml
(docs/**/*) and the deploy-docs-cloudflare-pages.yml push paths (docs/**) still don't watch
pnpm-lock.yaml or pnpm-workspace.yaml. So a lockfile-only update, such as a transitive bump, a
dedupe or a minimumReleaseAge-driven re-resolve, changes what the docs build installs without
running the docs build check or redeploying the site.

9. Native-binding test may point at a missing file 🐞 Bug ≡ Correctness
Description
pathToBetterSqliteNode joins ../prebuilds/-.node to require.resolve("better-sqlite3"), an
entry-file path, producing lib/prebuilds/... rather than a path rooted at the package directory.
If the installed binary is not at that computed path, the value passed as nativeBinding points to
a nonexistent file when the test opens a connection, affecting sqlite CI jobs that run the test.
Code

packages/typeorm/test/functional/driver/better-sqlite3/better-sqlite3-native-binding.test.ts[R13-14]

+    require.resolve("better-sqlite3"),
+    `../prebuilds/${process.platform}-${process.arch}.node`,
Evidence
The changed expression uses the resolved module entry as the first argument to join, so
../prebuilds resolves from the entry file's directory; the result is passed directly as
nativeBinding when test connections are created. The lockfile lists node-addon-api for
better-sqlite3 13.2.0, and the workspace allows its install build, suggesting that the binary may
instead be under build/Release; the installed copy must be checked to confirm its location.

pnpm-lock.yaml[14074-14076]
pnpm-workspace.yaml[5-8]
packages/typeorm/test/functional/driver/better-sqlite3/better-sqlite3-native-binding.test.ts[12-27]
packages/typeorm/src/driver/better-sqlite3/BetterSqlite3Driver.ts[143-149]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The native-binding test constructs a binary path from the better-sqlite3 JavaScript entry file rather than the package directory. This produces a `lib/prebuilds` path that may not contain the installed better-sqlite3 13 binary.
## Fix Focus Areas
- packages/typeorm/test/functional/driver/better-sqlite3/better-sqlite3-native-binding.test.ts[12-15]
## Recommended Fix
Resolve the package directory, for example with `dirname(require.resolve("better-sqlite3/package.json"))`, then join it with the binary's actual location in an installed better-sqlite3 13 copy, whether `build/Release/better_sqlite3.node` or a shipped `prebuilds` path. Verify that the resulting file exists and run the native-binding test.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View review recommended (7)
10. Manual v0 publishes run with no dist-tag or Node version ✓ Resolved
Description
The workflow_dispatch branch of the publish matrix no longer has the else arm that set
TAG="nightly" and NODE="20", but the target input still offers v0. Choosing v0 builds the
matrix entry {"ref":"v0","tag":"","node":""}. The job then runs pnpm view typeorm@"" (which
looks up latest), falls back to Node 26 for a branch built for Node 20, and runs `pnpm publish
--tag ""`, so the publish either fails or goes out under the wrong dist-tag.

11. CI no longer tests the oldest supported Node version 🐞 Bug ☼ Reliability
Description
The Linux test matrix changes from [20, 26] to [22, 26], so no CI job runs on Node 20 anymore.
packages/typeorm, codemod and legacy-naming-strategies still declare Node 20 support
(^20.19.0 || ... / >=20), so Node 20 regressions, including from the driver majors this PR
bumps, can ship without any CI signal.
Code

.github/workflows/tests.yml[138]

+        node-version: [22, 26]
Evidence
The typeorm package manifest still lists Node 20 in its engines field, and so do the codemod and
legacy-naming-strategies manifests. The only Linux test matrix now runs Node 22 and 26.

packages/typeorm/package.json[199-201]
packages/codemod/package.json[37-39]
.github/workflows/tests.yml[135-141]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The CI matrix dropped Node 20, but the published packages still declare Node 20 support in their engines fields.
## Fix Focus Areas
- .github/workflows/tests.yml[138-138]
- packages/typeorm/package.json[199-201]
## Recommended Fix
Either add 20 back to the matrix (e.g. `[20, 22, 26]`), or deliberately drop Node 20 by updating the engines fields, the `@tsconfig/node20` and `@types/node` baselines, and the docs.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


12. Widened peer ranges ship without any docs update 📘 Rule violation ⚙ Maintainability
Description
The peerDependencies of typeorm now accept new major versions: @google-cloud/spanner gains
^9.0.0, better-sqlite3 gains ^13.0.0, ioredis gains ^6.0.0, and oracledb gains
^26.0.0. Users choosing driver versions for their projects are affected by these ranges, yet the
PR changes no file under docs/, and the PR description leaves the documentation checkbox
unchecked. Users who read the docs will not learn that these driver majors are now supported, and
the engines removal in the root and package manifests is not documented either.
Code

packages/typeorm/package.json[R136-139]

+    "@google-cloud/spanner": "^8.0.0 || ^9.0.0",
"@sap/hana-client": "^2.14.22",
-    "better-sqlite3": "^12.0.0",
-    "ioredis": "^5.0.4",
+    "better-sqlite3": "^12.0.0 || ^13.0.0",
+    "ioredis": "^5.0.4 || ^6.0.0",
Evidence
The peerDependencies diff widens supported driver versions, which is a user-facing change in what
the published package accepts. The PR file list contains no docs file, and the PR description's
documentation checkbox is unchecked, so the docs-update rule's failure criteria are met.

Rule 2: Docs updated for user-facing changes
packages/typeorm/package.json[136-139]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
Issue description
The `typeorm` package now declares peer ranges that accept `@google-cloud/spanner` ^9, `better-sqlite3` ^13, `ioredis` ^6, and `oracledb` ^26, and the root and package manifests no longer declare `engines`. None of these user-facing changes are reflected in the docs.
Fix Focus Areas
- packages/typeorm/package.json[136-139]
- package.json[27-56]
Recommended Fix
Update the relevant documentation under `docs/docs/**` to list the supported driver versions and the Node.js requirement, or confirm in the PR that no doc change is needed. Then tick the documentation item in the PR checklist.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


13. Node 20 contributors inherit an unsupported hook 🐞 Bug ☼ Reliability
Description
The root lint-staged upgrade resolves to version 17.6.0, whose recorded minimum Node version is
22.22.1. The repository still advertises Node 20 support, but its pre-commit hook invokes that
version on every commit without a runtime-version guard.
Code

package.json[37]

+    "lint-staged": "^17.6.0",
Evidence
The root manifest allows Node 20, the lockfile records the upgraded tool's higher engine floor, and
the checked-in hook executes it directly.

package.json[37-51]
pnpm-lock.yaml[5589-5594]
.husky/pre-commit[1-2]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The pre-commit hook runs a lint-staged version that does not support the repository's advertised Node 20 runtime.
## Fix Focus Areas
- package.json[37-37]
- package.json[48-51]
- .husky/pre-commit[1-2]
## Recommended Fix
Pin a lint-staged release that supports Node 20, or update the repository's supported Node versions and contributor hook environment together.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


14. Engine checks are pinned to Node 22 while CI tests Node 20 🐞 Bug ☼ Reliability
Description
The new nodeVersion: 22.23.5 setting makes pnpm check dependency engines against Node 22.23.5
instead of the Node version that is actually running, so engineStrict: true never checks anything
against Node 20. A dependency bump that drops Node 20 support (exactly what the tedious override
is guarding against) will install without complaint and then fail at runtime in the Node 20 test
matrix or for users on Node 20.
Code

pnpm-workspace.yaml[R15-17]

+engineStrict: true
+minimumReleaseAge: 4320 # 3 days
+nodeVersion: 22.23.5
Evidence
The root engines allow ^20.19.0, and tests.yml runs the matrix node-version: [20, 26]. The
tedious override comment says Node 20 support matters. But nodeVersion tells pnpm to treat the
runtime as 22.23.5 when it checks engines, so packages that need Node >=22 are accepted.

package.json[48-51]
.github/workflows/tests.yml[136-141]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`nodeVersion: 22.23.5` makes pnpm check engines against Node 22, so `engineStrict` cannot catch dependencies that drop Node 20, even though Node 20 is still supported and tested.
## Fix Focus Areas
- pnpm-workspace.yaml[15-17]
## Recommended Fix
Remove `nodeVersion`, or set it to the lowest supported version (e.g. `20.19.0`), so engine checks match the oldest Node the project supports.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


15. Preview releases never start for naming-strategy changes 🐞 Bug ≡ Correctness
Description
The preview workflow’s on.pull_request.paths lists typeorm and codemod paths but omits
packages/legacy-naming-strategies/**, even though the workflow has a filter and build step for
that package. A PR changing only the legacy-naming-strategies package never starts the workflow, so
it cannot reach change detection or the new build and publish steps.
Code

.github/workflows/preview.yml[R43-45]

+            legacy-naming-strategies:
+              - *ci
+              - packages/legacy-naming-strategies/**
Evidence
The workflow trigger paths at lines 4–15 exclude the legacy-naming-strategies package. Its added
change filter and build step run only after the workflow starts, so a legacy-only PR cannot reach
them.

.github/workflows/preview.yml[3-15]
.github/workflows/preview.yml[4-14]
.github/workflows/preview.yml[43-46]
.github/workflows/preview.yml[72-81]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The preview workflow does not start for PRs that change only `packages/legacy-naming-strategies`, leaving its new change filter and build/publish steps unreachable for those PRs.
## Fix Focus Areas
- .github/workflows/preview.yml[3-15]
- .github/workflows/preview.yml[43-46]
## Recommended Fix
Add `packages/legacy-naming-strategies/**` to the workflow-level `on.pull_request.paths` list so changes to its source, `package.json`, and `tsconfig*.json` can start the workflow and reach change detection.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


16. Naming-strategy preview build fails when core is unchanged 🐞 Bug ☼ Reliability
Description
The build legacy-naming-strategies step compiles imports from typeorm, but the step that
generates TypeORM’s build/package output runs only when the separate typeorm filter matches.
When a PR changes the legacy package without changing TypeORM, including alongside codemod changes,
the legacy step runs against a workspace link with no generated package and the preview job fails.
Code

.github/workflows/preview.yml[R73-78]

+      - name: build legacy-naming-strategies
+        if: contains(needs.detect-changes.outputs.changes, 'legacy-naming-strategies')
+        run: |
+          pnpm run build
+          echo "PACKAGES=${{ env.PACKAGES }} ./packages/legacy-naming-strategies" >> "$GITHUB_ENV"
+        working-directory: packages/legacy-naming-strategies
Evidence
TypeORM sets publishConfig.directory to build/package, which is where the legacy package’s
typeorm imports resolve through its workspace link. The regular test workflow explicitly downloads
that generated build for the legacy package, while the preview workflow gates TypeORM packaging and
the legacy build on independent filters; codemod changes can trigger the workflow without causing
the TypeORM packaging step to run.

packages/typeorm/package.json[200-205]
packages/legacy-naming-strategies/src/naming-strategy-v03.ts[1-5]
.github/workflows/tests.yml[175-185]
.github/workflows/preview.yml[57-62]
.github/workflows/preview.yml[4-14]
.github/workflows/preview.yml[53-78]
packages/legacy-naming-strategies/src/legacy-oracle-naming-strategy.ts[1-2]
packages/typeorm/package.json[11-32]
.github/workflows/tests.yml[171-184]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The legacy-naming-strategies preview build requires TypeORM’s generated `build/package` output, but its change filter can match when the TypeORM packaging step does not.
## Fix Focus Areas
- .github/workflows/preview.yml[53-58]
- .github/workflows/preview.yml[72-78]
## Recommended Fix
Ensure TypeORM packaging runs before the legacy build whenever the legacy-naming-strategies filter matches. Either run `pnpm --filter typeorm run package` in the legacy step when the TypeORM filter did not match, or extend the TypeORM build step’s condition to include the legacy filter, while preserving the intended package list for preview publication.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

  • Author self-review: I have reviewed the code review findings, and addressed the relevant ones.

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@alumni
alumni force-pushed the chore/update-dependencies branch from c96f5a9 to 9666a1a Compare November 23, 2026 10:39
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'typeorm-legacy-naming-strategies'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@sonarqubecloud

Copy link
Copy Markdown

@alumni
alumni merged commit 911177c into master Nov 23, 2026
51 checks passed
@alumni
alumni deleted the chore/update-dependencies branch November 23, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants