@platformatic/generators
Advanced tools
Comparing version 1.13.3 to 1.13.4
@@ -96,4 +96,6 @@ 'use strict' | ||
} | ||
const oldConfig = this.config | ||
this.config = { | ||
...this.getDefaultConfig(), | ||
...oldConfig, | ||
...config | ||
@@ -100,0 +102,0 @@ } |
{ | ||
"name": "@platformatic/generators", | ||
"version": "1.13.3", | ||
"version": "1.13.4", | ||
"description": "Main classes and utils for generators.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -146,2 +146,29 @@ 'use strict' | ||
}) | ||
// update only some fields | ||
bg.setConfig({ | ||
hostname: '123.123.123.123', | ||
port: 3000 | ||
}) | ||
bg.setConfig({ | ||
port: 1234 | ||
}) | ||
assert.deepEqual(bg.config, { | ||
port: 1234, | ||
hostname: '123.123.123.123', | ||
plugin: false, | ||
typescript: false, | ||
initGitRepository: false, | ||
staticWorkspaceGitHubActions: false, | ||
dynamicWorkspaceGitHubActions: false, | ||
env: {}, | ||
dependencies: {}, | ||
devDependencies: {}, | ||
isRuntimeContext: false, | ||
serviceName: '', | ||
envPrefix: '', | ||
tests: false | ||
}) | ||
}) | ||
@@ -148,0 +175,0 @@ |
62674
1655