Skip to content

DavidWells/npm-workspaces-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM workspaces example

Must have npm version 7.

Install

npm install

Running scripts

Running a script named "dev" in all workspaces located under apps/backend:

npm run dev -w apps/backend

Running a script named "dev" in all workspaces:

npm run dev --ws

Running a script named "dev" in a package named package-a

npm run dev -w package-a

Observations

npm run build --ws doesn't build packages in the correct order... For example app with dep package-a will build before package-a

Alt approaches

About

NPM workspaces example for monorepos

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published