-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: not override rslib's rsbuild version when test plugins #10
Conversation
@@ -74,6 +74,10 @@ export async function test(options: RunOptions) { | |||
await $`pnpm exec playwright install --with-deps` | |||
} | |||
}, | |||
overrides: { | |||
// not override rslib's rsbuild version | |||
'@rslib/core>@rsbuild/core': 'latest', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep the original version instead of using latest
? Using latest
can break Rslib in some cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to configure it here to keep the original version. Do you have any ideas? Don't want to write pnpmfile file which will complicate this matter. 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
const rslibPkg = require('@rslib/core/package.json');
rslibPkg.dependencies['@rsbuild/core'] || 'latest'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rslib version needs to be obtained after install, or determined based on lock. But plugin build is during install (prepare stage).
not override rslib's rsbuild version when test plugins.
web-infra-dev/rslib#633