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 6ad47ad commit 2f179cbCopy full SHA for 2f179cb
packages/schematics/update/update/npm.ts
@@ -68,6 +68,11 @@ function readOptions(yarn = false): { [key: string]: string } {
68
}
69
70
71
+ // Substitute any environment variable references
72
+ for (const key in options) {
73
+ options[key] = options[key].replace(/\$\{([^\}]+)\}/, (_, name) => process.env[name] || '');
74
+ }
75
+
76
return options;
77
78
0 commit comments