We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b77570 commit 270e1dcCopy full SHA for 270e1dc
packages/schematics/update/update/npm.ts
@@ -84,7 +84,9 @@ function readOptions(
84
85
// Substitute any environment variable references
86
for (const key in options) {
87
- options[key] = options[key].replace(/\$\{([^\}]+)\}/, (_, name) => process.env[name] || '');
+ if (typeof options[key] === 'string') {
88
+ options[key] = options[key].replace(/\$\{([^\}]+)\}/, (_, name) => process.env[name] || '');
89
+ }
90
}
91
92
return options;
0 commit comments