Descriptive config name
This commit is contained in:
parent
e37990afab
commit
e05a445544
3 changed files with 3 additions and 3 deletions
|
@ -35,6 +35,6 @@ Here's an example of it's contents:
|
||||||
"update": false,
|
"update": false,
|
||||||
"location": "NetScriptDefinitions.d.ts"
|
"location": "NetScriptDefinitions.d.ts"
|
||||||
},
|
},
|
||||||
"pushOnCon": false
|
"pushAllOnConnection": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -53,7 +53,7 @@ export let config = convict({
|
||||||
default: "./NetScriptDefinitions.d.ts"
|
default: "./NetScriptDefinitions.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pushOnCon: {
|
pushAllOnConnection: {
|
||||||
doc: 'Push all files when initial connection is made.',
|
doc: 'Push all files when initial connection is made.',
|
||||||
format: 'Boolean',
|
format: 'Boolean',
|
||||||
env: 'BB_CON_PUSH',
|
env: 'BB_CON_PUSH',
|
||||||
|
|
|
@ -23,7 +23,7 @@ export async function start() {
|
||||||
signal.emit(EventType.MessageSend, requestDefinitionFile());
|
signal.emit(EventType.MessageSend, requestDefinitionFile());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.get("pushOnCon")) {
|
if (config.get("pushAllOnConnection")) {
|
||||||
const extensions = config.get("allowedFiletypes");
|
const extensions = config.get("allowedFiletypes");
|
||||||
for (const path of watch.paths.keys()) {
|
for (const path of watch.paths.keys()) {
|
||||||
if (extensions.some(extension => path.endsWith(extension)))
|
if (extensions.some(extension => path.endsWith(extension)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue