File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
templates/cli/lib/commands Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ const pullFunctions = async ({ code, withVariables }) => {
88
88
if (!localFunction['path']) {
89
89
func['path'] = `functions/${func.name}`;
90
90
}
91
- if (!withVariables) {
92
- delete func['vars'];
93
- }
91
+ const holdingVars = func['vars'];
92
+ // We don't save var in to the config
93
+ delete func['vars'];
94
94
localConfig.addFunction(func);
95
95
96
96
if (!fs.existsSync(func['path'])) {
@@ -162,7 +162,7 @@ const pullFunctions = async ({ code, withVariables }) => {
162
162
} catch {
163
163
}
164
164
165
- fs.writeFileSync(envFileLocation, func['vars'] .map(r => `${r.key}=${r.value}\n`).join(''))
165
+ fs.writeFileSync(envFileLocation, holdingVars .map(r => `${r.key}=${r.value}\n`).join(''))
166
166
}
167
167
}
168
168
You can’t perform that action at this time.
0 commit comments