-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://docs.npmjs.com/cli/v9/using-npm/workspaces?v=true - [x] install - [x] install pkgname -w `<workspace-pacakge-name>` - [x] install pkgname -w `<workspace-path>` - [x] install `package-a` on `package-b` - [x] install `pacakge-a` on root - [x] install `package` on all workspaces ``` # Install `lodash` on `package-a` npm install lodash --workspace package-a # Install `tap` on `package-b` as a dev dependency npm install tap --workspace package-b --save-dev # Install `package-a` on `package-b` npm install package-a --workspace package-b # Install `eslint` in all packages npm install eslint --workspaces ``` - [x] work with demo https://github.com/ruanmartinelli/npm-workspaces-demo - [x] update - [x] update -w a - [x] postinstall
- Loading branch information
Showing
24 changed files
with
552 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
const debug = require('util').debuglog('npminstall:link'); | ||
const utils = require('./utils'); | ||
const path = require('path'); | ||
const { | ||
getAliasPackageName, | ||
} = require('./alias'); | ||
const utils = require('./utils'); | ||
const { getAliasPackageName } = require('./alias'); | ||
|
||
module.exports = async (parentDir, pkg, realDir, alias) => { | ||
// parentDir: node_modules/.store/[email protected]/node_modules/utility | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.