@divriots/jampack 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +2 -2
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -5,14 +5,14 @@ import default_options from './config-default.js';
|
|
|
5
5
|
import fast_options_override from './config-fast.js';
|
|
6
6
|
const options = default_options;
|
|
7
7
|
export function fast() {
|
|
8
|
-
deepmerge(options, fast_options_override);
|
|
8
|
+
Object.assign(options, deepmerge(options, fast_options_override));
|
|
9
9
|
}
|
|
10
10
|
export async function loadConfig() {
|
|
11
11
|
const proload = await load('jampack', { mustExist: false });
|
|
12
12
|
if (proload) {
|
|
13
13
|
console.log('Overriding default config with:');
|
|
14
14
|
console.log(JSON.stringify(proload.value, null, 2));
|
|
15
|
-
deepmerge(options, proload.value);
|
|
15
|
+
Object.assign(options, deepmerge(options, proload.value));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
export default options;
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,11 @@ program
|
|
|
41
41
|
.action(async (dir, options) => {
|
|
42
42
|
$state.dir = dir;
|
|
43
43
|
$state.args = options;
|
|
44
|
+
if (options) {
|
|
45
|
+
console.log('Options:');
|
|
46
|
+
console.log(options);
|
|
47
|
+
console.log('');
|
|
48
|
+
}
|
|
44
49
|
// Override default config with config file
|
|
45
50
|
await loadConfig();
|
|
46
51
|
// Override config with fast options if set
|