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

[WORKSPACE] How to move my package.json/ lock deps to bit workspace ? #8815

Closed
MatthD opened this issue Apr 23, 2024 · 1 comment
Closed

Comments

@MatthD
Copy link

MatthD commented Apr 23, 2024

Description

I want to have bit managing my existing repo package.json dependencies so that I can remove then from my package.json (and benefit from workspace.json , dev deps detections ..)

Specifications

  • Bit version: 1.6.126
  • Node version: 20.11.0
  • npm / yarn version: 10.2.4
  • Platform: Mac0s 14.4.1

Context and additional information

Running bun install will trigger pnpm automatically and install the deps I have so that it's great, but it does not move them to the workspace file and I cannot get rid of package.json. and package.lock
But what I need is to move them to workspace.jsonc but with the specific version they have inside the package-lock.json

Should I manually copy them ? I mean doing that I will not benefit of the auto detection + I cann do it via a command but have >100 deps.

Maybe there is a way i did not found

@itaymendel
Copy link
Contributor

you can simply copy-paste the list of deps to workspace.jsonc.
you can even keep the deps in package.json, as when you run bit install, bit will read deps from package.json and add them to the list of deps to install (in case of conflict with workspace.jsonc, the version from workspace.jsonc wins)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants