Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

[FEATURE] Running scripts in workspaces #5

Closed
gustavo-iha opened this issue Oct 22, 2020 · 2 comments
Closed

[FEATURE] Running scripts in workspaces #5

gustavo-iha opened this issue Oct 22, 2020 · 2 comments

Comments

@gustavo-iha
Copy link

gustavo-iha commented Oct 22, 2020

What / Why

I'd love to able to run scripts from a workspace package.json using the same code files as the root package.json.

When

Whenever I run npm run <script>

Where

  • npm public registry

How

Current Behavior

When I have a folder such as:
root
├── src/
├── workspace/
------├── package.json
├── package.json

I need to replicate src/ folder into workspace/ to be able to run scripts in workspace/package.json.

Expected Behavior

Running any script from the root folder using commands such as npm workspace <workspace-name> run <script> would be awesome!!

Who

  • n/a

References

  • n/a
@virtuoushub
Copy link

@gustavo-iha FWIW, there is an open ticket for this at npm/cli#1904

@ruyadorno
Copy link

Thanks @gustavo-iha, discussion about these new features is being held over at our RFC repo: npm/rfcs#117

Feel free to leave comments there instead 😊

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

No branches or pull requests

3 participants