Skip to content
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

pnpm i -S a-module-already-in-dev-deps should show message that it wasn't moved to dependencies #926

Closed
vjpr opened this issue Oct 29, 2017 · 4 comments · Fixed by #7319 or #7348
Closed

Comments

@vjpr
Copy link
Contributor

vjpr commented Oct 29, 2017

I think this is good behaviour, but there should be message warning the user that it was already in devDeps and was not moved, and they should do it manually.

pnpm version: 1.18.1

pnpm i -D lodash@1
pnpm i -S lodash@latest

Still in dev deps.

Should warn user it was not moved.

Additional information:

  • node -v prints: 8.8.1
  • Windows, OS X, or Linux?: macOS
@vjpr vjpr changed the title pnpm i -S a-module-already-in-dev-deps doesn't move to dependencies pnpm i -S a-module-already-in-dev-deps should show message that it wasn't moved to dependencies Oct 29, 2017
@zkochan
Copy link
Member

zkochan commented Nov 1, 2017

This doesn't work because to move lodash to prod dependencies, you have to use the -P/--save-prod flag.

I am not against a warning though.

Also, I noticed that summary is not printed when dependency is moved from one type to other. It should print something like this:

devDependencies:
- lodash 1.0.0

dependencies
+ lodash 1.0.0

zkochan added a commit to pnpm/logger that referenced this issue Nov 3, 2017
zkochan added a commit to pnpm/supi that referenced this issue Nov 3, 2017
zkochan added a commit to pnpm/supi that referenced this issue Nov 3, 2017
zkochan added a commit that referenced this issue Nov 3, 2017
zkochan added a commit that referenced this issue Nov 3, 2017
zkochan added a commit that referenced this issue Nov 3, 2017
zkochan added a commit that referenced this issue Nov 4, 2017
zkochan added a commit that referenced this issue Nov 4, 2017
@yaodingyd
Copy link
Member

I think this issue is already resolved.

@DanielRuf
Copy link
Contributor

I think this issue is already resolved.

There is still no message:

grafik

@Yanzi-dev
Copy link
Contributor

Yanzi-dev commented Nov 14, 2023

Hello, I started working on it.

This is what i get
image

Working on fixing tests right now.

zkochan pushed a commit that referenced this issue Nov 20, 2023
zkochan added a commit that referenced this issue Dec 27, 2023
close #926

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
gluxon pushed a commit to gluxon/pnpm that referenced this issue Dec 27, 2023
)

close pnpm#926

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants