WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 6c59602

Browse files
authored
fix(test-server): make msw a production dependency (#9999)
## Background We introduced a new package for the test server in #8588. The test server always depended on `msw`, but we didn't add it as production dependency because before we created a dedicated package for it, it was part of provider-utils. Making `msw` a production dependency would have meant that installing `ai` would install `msw` without ever needing it. ## Summary `msw` will now automatically installed when installing `@ai-sdk/test-server`. It's already fixed it in the `main` branch via #9988 ## Manual Verification I'll try after the release but I'm sure enough this works as designed. ## Related Issues #8588, #9988
1 parent c89bc39 commit 6c59602

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

packages/test-server/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@
3737
"require": "./dist/with-vitest.js"
3838
}
3939
},
40+
"dependencies": {
41+
"msw": "^2.7.0"
42+
},
4043
"devDependencies": {
4144
"@types/node": "20.17.24",
4245
"@vercel/ai-tsconfig": "workspace:*",
4346
"tsup": "^8",
44-
"msw": "^2.7.0",
4547
"typescript": "5.8.3"
4648
},
4749
"engines": {

packages/test-server/tsconfig.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
"build",
1414
"node_modules",
1515
"tsup.config.ts"
16-
],
17-
"references": [
18-
{
19-
"path": "../provider"
20-
}
2116
]
2217
}
2318

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)