Skip to content

Commit 84baec4

Browse files
committed
fixed fingerprinting default
we'd decided that we want defaults to be defined only within the library, not within the CLI script - yet the use of minimist's `boolean` configuration resulted in implicit defaults anyway, so we can't use that
1 parent 4c3f045 commit 84baec4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

bin/faucet

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ let argv = parseArgs(process.argv.slice(2), {
2626
c: "config",
2727
w: "watch",
2828
h: "help"
29-
},
30-
boolean: ["watch", "fingerprint", "compact"]
29+
}
3130
});
3231

3332
if(argv.help) {
@@ -36,12 +35,13 @@ if(argv.help) {
3635
}
3736

3837
let rootDir = process.cwd();
39-
let config = argv.config;
40-
let options = {
41-
watch: argv.watch,
42-
fingerprint: argv.fingerprint,
43-
compact: argv.compact
44-
};
38+
let options = ["watch", "fingerprint", "compact"].reduce((memo, option) => {
39+
let value = argv[option];
40+
if(value !== undefined) {
41+
memo[option] = value;
42+
}
43+
return memo;
44+
}, {});
4545

4646
if(options.watch) {
4747
console.error(`monitoring file system at ${rootDir}`);
@@ -52,4 +52,4 @@ if(options.watch) {
5252
}
5353
}
5454

55-
start(rootDir, config, options);
55+
start(rootDir, argv.config, options);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "faucet-pipeline",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"description": "front-end asset pipeline",
55
"author": "FND",
66
"contributors": [

0 commit comments

Comments
 (0)