Skip to content

Commit 525f524

Browse files
authored
fix(expect): unbundle @types/chai (#7937)
1 parent 708cc94 commit 525f524

File tree

7 files changed

+15
-72
lines changed

7 files changed

+15
-72
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
]
8484
},
8585
"patchedDependencies": {
86-
"@types/chai@5.0.1": "patches/@types__chai@5.0.1.patch",
8786
"@sinonjs/fake-timers@14.0.0": "patches/@sinonjs__fake-timers@14.0.0.patch",
8887
"cac@6.7.14": "patches/cac@6.7.14.patch",
8988
"@types/sinonjs__fake-timers@8.1.5": "patches/@types__sinonjs__fake-timers@8.1.5.patch",

packages/expect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
"dev": "rollup -c --watch"
3535
},
3636
"dependencies": {
37+
"@types/chai": "catalog:",
3738
"@vitest/spy": "workspace:*",
3839
"@vitest/utils": "workspace:*",
3940
"chai": "catalog:",
4041
"tinyrainbow": "catalog:"
4142
},
4243
"devDependencies": {
43-
"@types/chai": "5.0.1",
4444
"@vitest/runner": "workspace:*",
4545
"rollup-plugin-copy": "^3.5.0"
4646
}

packages/expect/rollup.config.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { builtinModules, createRequire } from 'node:module'
22
import { defineConfig } from 'rollup'
3-
import copy from 'rollup-plugin-copy'
43
import oxc from 'unplugin-oxc/rollup'
54
import { createDtsUtils } from '../../scripts/build-utils.js'
65

@@ -21,15 +20,6 @@ const plugins = [
2120
oxc({
2221
transform: { target: 'node14' },
2322
}),
24-
copy({
25-
targets: [
26-
{
27-
src: 'node_modules/@types/chai/index.d.ts',
28-
dest: 'dist',
29-
rename: 'chai.d.cts',
30-
},
31-
],
32-
}),
3323
]
3424

3525
export default defineConfig([

packages/vitest/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
}
155155
},
156156
"dependencies": {
157+
"@types/chai": "catalog:",
157158
"@vitest/expect": "workspace:*",
158159
"@vitest/mocker": "workspace:*",
159160
"@vitest/pretty-format": "workspace:^",

patches/@types__chai@5.0.1.patch

Lines changed: 0 additions & 51 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ catalog:
99
'@iconify-json/carbon': ^1.2.8
1010
'@iconify-json/logos': ^1.2.4
1111
'@jridgewell/trace-mapping': ^0.3.25
12+
'@types/chai': ^5.2.2
1213
'@types/debug': ^4.1.12
1314
'@types/estree': ^1.0.7
1415
'@types/istanbul-lib-coverage': ^2.0.6

0 commit comments

Comments
 (0)