Skip to content

fix: verify-deps-before-run after install --prod|--no-optional#9055

Merged
zkochan merged 11 commits intomainfrom
verify-deps-before-run-ignores-dep-filter-flags-9019
Feb 7, 2025
Merged

fix: verify-deps-before-run after install --prod|--no-optional#9055
zkochan merged 11 commits intomainfrom
verify-deps-before-run-ignores-dep-filter-flags-9019

Conversation

@KSXGitHub
Copy link
Contributor

@KSXGitHub KSXGitHub commented Feb 6, 2025

Fixes #9019

@KSXGitHub KSXGitHub changed the title fix: verify-deps-before-run after pnpm install --prod|--no-optional fix: verify-deps-before-run after install --prod|--no-optional Feb 6, 2025
@KSXGitHub KSXGitHub marked this pull request as ready for review February 7, 2025 10:08
@KSXGitHub KSXGitHub requested a review from zkochan as a code owner February 7, 2025 10:08
@KSXGitHub
Copy link
Contributor Author

I don't know how to mock prompt in the integration test, so there is only a test for verify-deps-before-run=install.

Comment on lines +49 to +50
expect(stdout.toString()).not.toContain('dependencies: skipped')
expect(stdout.toString()).toContain('devDependencies: skipped')
Copy link
Member

Choose a reason for hiding this comment

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

I would not rely on CLI output. Check if the dependencies exist in node_modules.

project.has, project.hasNot

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@KSXGitHub KSXGitHub requested a review from zkochan February 7, 2025 11:03
@zkochan zkochan merged commit 265946b into main Feb 7, 2025
16 checks passed
@zkochan zkochan deleted the verify-deps-before-run-ignores-dep-filter-flags-9019 branch February 7, 2025 11:37
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.

verify-deps-before-run=prompt doesn't remember pnpm install --production

2 participants