From e05a445544456a99b71c722c7a960f304028dc00 Mon Sep 17 00:00:00 2001 From: RyanHx Date: Sun, 28 Aug 2022 15:55:57 +0100 Subject: [PATCH] Descriptive config name --- README.md | 2 +- src/config.js | 2 +- src/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a561099..8c49b6f 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,6 @@ Here's an example of it's contents: "update": false, "location": "NetScriptDefinitions.d.ts" }, - "pushOnCon": false + "pushAllOnConnection": false } ``` diff --git a/src/config.js b/src/config.js index e24b4ef..10feace 100644 --- a/src/config.js +++ b/src/config.js @@ -53,7 +53,7 @@ export let config = convict({ default: "./NetScriptDefinitions.d.ts" } }, - pushOnCon: { + pushAllOnConnection: { doc: 'Push all files when initial connection is made.', format: 'Boolean', env: 'BB_CON_PUSH', diff --git a/src/index.js b/src/index.js index 19a2721..a014c85 100644 --- a/src/index.js +++ b/src/index.js @@ -23,7 +23,7 @@ export async function start() { signal.emit(EventType.MessageSend, requestDefinitionFile()); } - if (config.get("pushOnCon")) { + if (config.get("pushAllOnConnection")) { const extensions = config.get("allowedFiletypes"); for (const path of watch.paths.keys()) { if (extensions.some(extension => path.endsWith(extension)))