Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliviernt/npm-workspaces-bug-reproduction
Reproducing npm 7 workspace bug when run in docker container
https://github.com/oliviernt/npm-workspaces-bug-reproduction
Last synced: 13 days ago
JSON representation
Reproducing npm 7 workspace bug when run in docker container
- Host: GitHub
- URL: https://github.com/oliviernt/npm-workspaces-bug-reproduction
- Owner: oliviernt
- Created: 2021-03-30T12:31:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-30T12:44:12.000Z (almost 4 years ago)
- Last Synced: 2024-11-05T20:03:43.781Z (2 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NPM Workspaces Docker Bug Reproduction
I'm reproducing a bug I'm encountering where npm 7 workspaces doesn't work the same when run in the official docker node:15 container as when running it locally.
Using this project I get two different outputs when running `npm run hello --workspaces` locally or in a docker container.
# Local
```
$ npm run hello --workspaces> [email protected] hello
> echo "Hello from workspace-a"Hello from workspace-a
```# Docker
```
$ docker run -it -v "$PWD":/opt/workdir -w /opt/workdir node:15 npm run hello --workspaces> [email protected] hello
> echo "Hello from npm-workspaces-bug-reproduction"Hello from npm-workspaces-bug-reproduction
```