From fdd3bc357c5f99650ede94c035558ebb388b6dc6 Mon Sep 17 00:00:00 2001 From: Bronley Plumb Date: Wed, 6 Apr 2022 13:24:51 -0400 Subject: [PATCH] Add the `require` entry to the bsconfig.schema.json --- bsconfig.schema.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bsconfig.schema.json b/bsconfig.schema.json index 41f659abe..d20d555c1 100644 --- a/bsconfig.schema.json +++ b/bsconfig.schema.json @@ -188,6 +188,18 @@ ] } }, + "require": { + "description": "A list of scripts or modules to pass to node's `require()` on startup. This is useful for doing things like ts-node registration", + "type": "array", + "items": { + "anyOf": [ + { + "type": "string", + "description": "a path to a node script or an npm module to load dynamically at startup." + } + ] + } + }, "autoImportComponentScript": { "description": "When enabled, every xml component will search for a .bs or .brs file with the same name in the same folder, and add it as a script import if found. Disabled by default", "type": "boolean",