Skip to content

chore: Update dependencies#414

Merged
Patrick Lafrance (patricklafrance) merged 2 commits into
mainfrom
chore/update-dependencies-566765
Apr 1, 2026
Merged

chore: Update dependencies#414
Patrick Lafrance (patricklafrance) merged 2 commits into
mainfrom
chore/update-dependencies-566765

Conversation

@patricklafrance

Copy link
Copy Markdown
Member

No description provided.

- Remove deprecated moduleResolution "Node" (node10) from browserslist-config and stylelint-configs
- Add explicit "types" for node and jest where needed (TS6 no longer auto-discovers @types)
- Add ignoreDeprecations for tsup-lib (tsup internally sets deprecated baseUrl)
- Update @typescript/native-preview, turbo, and other dependencies

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 1, 2026 02:08
@pkg-pr-new

pkg-pr-new Bot commented Apr 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

@workleap/browserslist-config

pnpm add https://pkg.pr.new/@workleap/browserslist-config@414

@workleap/eslint-configs

pnpm add https://pkg.pr.new/@workleap/eslint-configs@414

@workleap/postcss-configs

pnpm add https://pkg.pr.new/@workleap/postcss-configs@414

@workleap/rsbuild-configs

pnpm add https://pkg.pr.new/@workleap/rsbuild-configs@414

@workleap/rslib-configs

pnpm add https://pkg.pr.new/@workleap/rslib-configs@414

@workleap/stylelint-configs

pnpm add https://pkg.pr.new/@workleap/stylelint-configs@414

@workleap/swc-configs

pnpm add https://pkg.pr.new/@workleap/swc-configs@414

@workleap/tsup-configs

pnpm add https://pkg.pr.new/@workleap/tsup-configs@414

@workleap/typescript-configs

pnpm add https://pkg.pr.new/@workleap/typescript-configs@414

@workleap/webpack-configs

pnpm add https://pkg.pr.new/@workleap/webpack-configs@414

commit: 0fb258f

@patricklafrance Patrick Lafrance (patricklafrance) merged commit 1113edf into main Apr 1, 2026
9 of 10 checks passed
@patricklafrance Patrick Lafrance (patricklafrance) deleted the chore/update-dependencies-566765 branch April 1, 2026 02:12
@github-actions github-actions Bot mentioned this pull request Apr 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the workspace’s toolchain dependencies (notably TypeScript native preview, Turbo, and Vite-related packages) and adjusts TypeScript project settings across packages/samples to keep builds/typechecking working with newer versions.

Changes:

  • Bump @typescript/native-preview across the workspace and refresh the pnpm-lock.yaml.
  • Update select tooling dependencies (e.g., turbo, @vitejs/plugin-react, netlify-cli) used by samples and configs packages.
  • Standardize TS configs by adding explicit compilerOptions.types (mostly node) and normalizing rootDir paths in build tsconfigs.

Reviewed changes

Copilot reviewed 45 out of 47 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tsconfig.json Adds explicit Node typings at the repo root.
package.json Bumps @typescript/native-preview and turbo.
pnpm-lock.yaml Lockfile refresh reflecting dependency upgrades (Turbo/Vite/plugin-react/etc.).
.changeset/fast-cooks-hide.md Publishes patch bumps for multiple config packages due to dependency/tooling updates.
samples/webpack/tsup-lib/tsconfig.json Adds Node types and documents ignoreDeprecations.
samples/webpack/tsup-lib/package.json Bumps @typescript/native-preview.
samples/webpack/components/tsconfig.json Adds Node + Jest types for TS.
samples/webpack/components/package.json Bumps @typescript/native-preview.
samples/webpack/app/tsconfig.json Adds Node + Jest types for TS.
samples/webpack/app/package.json Bumps @typescript/native-preview.
samples/storybook/rslib/tsconfig.json Adds Node types for TS.
samples/storybook/rslib/package.json Bumps @typescript/native-preview.
samples/storybook/rsbuild/tsconfig.json Adds Node types for TS.
samples/storybook/rsbuild/package.json Bumps @typescript/native-preview.
samples/rsbuild/rslib-lib/tsconfig.json Adds Node types for TS.
samples/rsbuild/rslib-lib/tsconfig.build.json Normalizes rootDir to src.
samples/rsbuild/rslib-lib/package.json Bumps @typescript/native-preview.
samples/rsbuild/components/tsconfig.json Adds Node types for TS.
samples/rsbuild/components/package.json Bumps @typescript/native-preview and @vitejs/plugin-react.
samples/rsbuild/app/tsconfig.json Adds Node types for TS.
samples/rsbuild/app/package.json Bumps @typescript/native-preview, @vitejs/plugin-react, and netlify-cli.
packages/webpack-configs/tsconfig.json Adds Node types for TS.
packages/webpack-configs/package.json Bumps @typescript/native-preview.
packages/tsup-configs/tsconfig.json Adds Node types for TS.
packages/tsup-configs/tsconfig.build.json Normalizes rootDir to src.
packages/tsup-configs/package.json Bumps @typescript/native-preview.
packages/swc-configs/tsconfig.json Adds Node types for TS.
packages/swc-configs/tsconfig.build.json Normalizes rootDir to src.
packages/swc-configs/package.json Bumps @typescript/native-preview.
packages/stylelint-configs/tsconfig.json Replaces module settings with Node types (see PR comments re: CJS export =).
packages/stylelint-configs/tsconfig.build.json Normalizes rootDir to src.
packages/stylelint-configs/package.json Bumps @typescript/native-preview.
packages/rslib-configs/tsconfig.json Adds Node types for TS.
packages/rslib-configs/tsconfig.build.json Normalizes rootDir to src.
packages/rslib-configs/package.json Bumps @typescript/native-preview.
packages/rsbuild-configs/tsconfig.json Adds Node types for TS.
packages/rsbuild-configs/tsconfig.build.json Normalizes rootDir to src.
packages/rsbuild-configs/package.json Bumps @typescript/native-preview.
packages/postcss-configs/tsconfig.json Adds Node types for TS.
packages/postcss-configs/tsconfig.build.json Normalizes rootDir to src.
packages/postcss-configs/package.json Bumps @typescript/native-preview.
packages/eslint-configs/tsconfig.json Adds Node types for TS.
packages/eslint-configs/tsconfig.build.json Normalizes rootDir to src.
packages/eslint-configs/package.json Bumps @typescript/native-preview.
packages/browserslist-config/tsconfig.json Replaces module settings with Node types (see PR comments re: CJS export =).
packages/browserslist-config/tsconfig.build.json Normalizes rootDir to src.
packages/browserslist-config/package.json Bumps @typescript/native-preview.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -3,8 +3,7 @@
"compilerOptions": {
"incremental": true,
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

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

packages/stylelint-configs/src/index.ts uses export = ..., which requires a CommonJS module target for correct typechecking/IDE validation. This tsconfig now inherits module/moduleResolution from @workleap/typescript-configs (NodeNext), which is likely to produce diagnostics like “export assignment is not allowed in ECMAScript modules” and diverges from tsconfig.build.json (CommonJS). Consider re-adding compilerOptions.module and compilerOptions.moduleResolution here (or switching the source to ESM exports if the package is moving to ESM).

Suggested change
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
"module": "CommonJS",
"moduleResolution": "node",

Copilot uses AI. Check for mistakes.
@@ -3,8 +3,7 @@
"compilerOptions": {
"incremental": true,
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

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

packages/browserslist-config/src/index.ts uses export = ..., which is a CommonJS-style export. This tsconfig now inherits module/moduleResolution from @workleap/typescript-configs (NodeNext), which can break typechecking/IDE diagnostics and diverges from tsconfig.build.json (CommonJS). Re-add compilerOptions.module and compilerOptions.moduleResolution here (or update the source to ESM exports if intentional).

Suggested change
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
"module": "CommonJS",
"moduleResolution": "Node",

Copilot uses AI. Check for mistakes.
Comment on lines +4 to 6
// Required because tsup internally sets "baseUrl" during DTS generation, which is deprecated in TypeScript 7.0.
"ignoreDeprecations": "6.0",
"incremental": true,

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

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

The comment says the deprecation comes from TypeScript 7.0, but ignoreDeprecations is set to "6.0". Either adjust the comment to match the ignored deprecation version, or bump ignoreDeprecations to the version that actually introduced the warning so this remains accurate as dependencies change.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants