Skip to content

Commit

Permalink
docs(workspace): remove package
Browse files Browse the repository at this point in the history
  • Loading branch information
rochejul committed Aug 15, 2024
1 parent fdf2806 commit 350157b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ If this package needs ` jest`, ensure in the ` vscode.settings.json` to update t
"jest.virtualFolders": [{ "name": "core", "rootPath": "packages/core" }]
```

### Remove package

if you need to remove package, here the process:

- First, remove the folder, e.g. `rm -rf packages/b`
- Second, cleanup if needed vscode files
- Next, run `npm install`
- Then update the ` package-lock.json` file to remove your package

For the last, it seems there is [an issue](https://github.com/npm/cli/issues/5463) when we remove a package and the lock seems to be cleaned. There is a pending [PR](https://github.com/npm/cli/pull/5478) but notyet approved.

### Add a dependency between packages

If you need to add a common dependency, please on the root of the project:
Expand Down

0 comments on commit 350157b

Please sign in to comment.