Descriptive config name

This commit is contained in:
RyanHx 2022-08-28 15:55:57 +01:00
parent e37990afab
commit e05a445544
3 changed files with 3 additions and 3 deletions

View file

@ -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
} }
``` ```

View file

@ -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',

View file

@ -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)))