Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```