We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f1836 commit 3716cf5Copy full SHA for 3716cf5
1 file changed
lib/node_modules/@stdlib/_tools/scripts/print_npm_install_deps
@@ -83,6 +83,17 @@ function main() {
83
tmp.push( k + '@"' + deps[ k ] + '"' );
84
}
85
86
+ // Get the list of optional dependencies:
87
+ deps = pkg.optionalDependencies;
88
+
89
+ // Extract external optional dependencies and their associated versions...
90
+ keys = objectKeys( deps );
91
+ for ( i = 0; i < keys.length; i++ ) {
92
+ k = keys[ i ];
93
+ if ( RE_STDLIB.test( k ) === false ) {
94
+ tmp.push( k + '@"' + deps[ k ] + '"' );
95
+ }
96
97
// Print the list of dependencies for installation:
98
console.log( tmp.join( ' ' ) ); // eslint-disable-line no-console
99
0 commit comments