@@ -823,20 +823,6 @@ define('global', {
823
823
} ,
824
824
} )
825
825
826
- define ( 'global-style' , {
827
- default : false ,
828
- type : Boolean ,
829
- description : `
830
- Causes npm to install the package into your local \`node_modules\` folder
831
- with the same layout it uses with the global \`node_modules\` folder.
832
- Only your direct dependencies will show in \`node_modules\` and
833
- everything they depend on will be flattened in their \`node_modules\`
834
- folders. This obviously will eliminate some deduping. If used with
835
- \`legacy-bundling\`, \`legacy-bundling\` will be preferred.
836
- ` ,
837
- flatten,
838
- } )
839
-
840
826
// the globalconfig has its default defined outside of this module
841
827
define ( 'globalconfig' , {
842
828
type : path ,
@@ -1076,6 +1062,21 @@ define('install-links', {
1076
1062
flatten,
1077
1063
} )
1078
1064
1065
+ define ( 'install-strategy' , {
1066
+ default : 'hoisted' ,
1067
+ type : [ 'hoisted' , 'nested' , 'shallow' ] ,
1068
+ description : `
1069
+ Sets the strategy for installing packages in node_modules.
1070
+ hoisted (default): Install non-duplicated in top-level, and duplicated as
1071
+ necessary within directory structure.
1072
+ nested: (formerly --legacy-bundling) install in place, no hoisting.
1073
+ shallow (formerly --global-style) only install direct deps at top-level.
1074
+ linked: (coming soon) install in node_modules/.store, link in place,
1075
+ unhoisted.
1076
+ ` ,
1077
+ flatten,
1078
+ } )
1079
+
1079
1080
define ( 'json' , {
1080
1081
default : false ,
1081
1082
type : Boolean ,
@@ -1523,8 +1524,8 @@ define('prefix', {
1523
1524
short : 'C' ,
1524
1525
default : '' ,
1525
1526
defaultDescription : `
1526
- In global mode, the folder where the node executable is installed. In
1527
- local mode , the nearest parent folder containing either a package.json
1527
+ In global mode, the folder where the node executable is installed.
1528
+ Otherwise , the nearest parent folder containing either a package.json
1528
1529
file or a node_modules folder.
1529
1530
` ,
1530
1531
description : `
0 commit comments