diff --git a/.gitignore b/.gitignore index 20a8c000e..613e240f2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,9 @@ node_modules/ # generated mapping files *.js.map +# generated type definitions +*.d.ts + # Dashboard webpack nodecg-io-core/dashboard/dist !nodecg-io-core/dashboard/webpack.config.js diff --git a/.vscode/settings.json b/.vscode/settings.json index 903271679..0a5633abd 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,8 +1,9 @@ { - // Hides js and js map files in the explorer windows of vs code + // Hides js, js map and ts definition files, that are generated by the build process, in the explorer windows of vs code "vscode.tsc.compiler.alertTSConfigChanges": "never", "files.exclude": { "**/*.js": { "when": "$(basename).ts" }, - "**/*.js.map": true + "**/*.js.map": true, + "**/*.d.ts": { "when": "$(basename).ts" } } } diff --git a/nodecg-io-ahk/package.json b/nodecg-io-ahk/package.json index fed020019..b1fd5e93e 100644 --- a/nodecg-io-ahk/package.json +++ b/nodecg-io-ahk/package.json @@ -7,12 +7,18 @@ "name": "derNiklaas", "url": "https://github.com/derNiklaas" }, - "main": "extension", + "main": "extension/index", "repository": { "type": "git", "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-ahk" }, + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-android/package.json b/nodecg-io-android/package.json index c3158fd67..028e72024 100644 --- a/nodecg-io-android/package.json +++ b/nodecg-io-android/package.json @@ -7,17 +7,23 @@ "name": "noeppi_noeppi", "url": "https://github.com/noeppi-noeppi" }, + "main": "extension/index", "repository": { "type": "git", "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-android" }, + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], "scripts": { "build": "tsc -b", "watch": "tsc -b -w", "clean": "tsc -b --clean" }, - "main": "extension", "keywords": [ "nodecg-io", "nodecg-bundle" diff --git a/nodecg-io-core/.npmignore b/nodecg-io-core/.npmignore deleted file mode 100644 index 2bb1f2c4e..000000000 --- a/nodecg-io-core/.npmignore +++ /dev/null @@ -1 +0,0 @@ -dashboard diff --git a/nodecg-io-core/index.ts b/nodecg-io-core/index.ts index 796624c77..d4006674e 100644 --- a/nodecg-io-core/index.ts +++ b/nodecg-io-core/index.ts @@ -4,5 +4,5 @@ // You can obviously still provide the full path if you wish. export type { ObjectMap, Service, ServiceDependency, ServiceInstance } from "./extension/types"; export * from "./extension/utils/result"; -export { ServiceBundle } from "./extension/serviceBundle"; -export { requireService, ServiceProvider } from "./extension/serviceProvider"; +export * from "./extension/serviceBundle"; +export * from "./extension/serviceProvider"; diff --git a/nodecg-io-core/package.json b/nodecg-io-core/package.json index beb7665a5..e5ab5ec65 100644 --- a/nodecg-io-core/package.json +++ b/nodecg-io-core/package.json @@ -12,6 +12,15 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-core" }, + "files": [ + "extension/**/*.js", + "extension/**/*.js.map", + "extension/**/*.d.ts", + "index.js", + "index.js.map", + "index.d.ts", + "*.json" + ], "scripts": { "build": "tsc -b", "watch": "tsc -b -w", @@ -42,6 +51,7 @@ }, "dependencies": { "ajv": "^7.2.1", - "crypto-js": "^4.0.0" + "crypto-js": "^4.0.0", + "tslib": "^2.1.0" } } diff --git a/nodecg-io-curseforge/package.json b/nodecg-io-curseforge/package.json index 48d652bf4..abac53500 100644 --- a/nodecg-io-curseforge/package.json +++ b/nodecg-io-curseforge/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-curseforge" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-debug/package.json b/nodecg-io-debug/package.json index 53ee2e3af..4686537eb 100644 --- a/nodecg-io-debug/package.json +++ b/nodecg-io-debug/package.json @@ -12,7 +12,14 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-debug" }, - "main": "extension", + "files": [ + "dashboard", + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-discord/package.json b/nodecg-io-discord/package.json index 0718c2350..91c869cbc 100644 --- a/nodecg-io-discord/package.json +++ b/nodecg-io-discord/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-discord" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-gsheets/package.json b/nodecg-io-gsheets/package.json index 61f2f7f5a..5f4e81da2 100644 --- a/nodecg-io-gsheets/package.json +++ b/nodecg-io-gsheets/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-gsheets" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-intellij/package.json b/nodecg-io-intellij/package.json index 825566184..465e1fcde 100644 --- a/nodecg-io-intellij/package.json +++ b/nodecg-io-intellij/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-intellij" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-irc/package.json b/nodecg-io-irc/package.json index 22ead7db7..66f24a4a4 100644 --- a/nodecg-io-irc/package.json +++ b/nodecg-io-irc/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-irc" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-midi-input/package.json b/nodecg-io-midi-input/package.json index 0d86fd086..14eb159aa 100644 --- a/nodecg-io-midi-input/package.json +++ b/nodecg-io-midi-input/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-midi-input" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-midi-output/package.json b/nodecg-io-midi-output/package.json index 78de3a170..6cc816bc2 100644 --- a/nodecg-io-midi-output/package.json +++ b/nodecg-io-midi-output/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-midi-output" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-nanoleaf/package.json b/nodecg-io-nanoleaf/package.json index b62679b38..9763bd452 100644 --- a/nodecg-io-nanoleaf/package.json +++ b/nodecg-io-nanoleaf/package.json @@ -12,6 +12,12 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-nanoleaf" }, + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], "scripts": { "build": "tsc -b", "watch": "tsc -b -w", @@ -30,11 +36,11 @@ "license": "MIT", "devDependencies": { "@types/node": "^14.14.33", - "@types/node-fetch": "^2.5.8", "nodecg": "^1.8.1", "typescript": "^4.2.3" }, "dependencies": { + "@types/node-fetch": "^2.5.8", "node-fetch": "^2.6.1", "nodecg-io-core": "^0.2.0" } diff --git a/nodecg-io-obs/package.json b/nodecg-io-obs/package.json index 565b6877e..e7e7aa3bb 100644 --- a/nodecg-io-obs/package.json +++ b/nodecg-io-obs/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-obs" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-philipshue/package.json b/nodecg-io-philipshue/package.json index f6d9e3ac7..eeb766825 100644 --- a/nodecg-io-philipshue/package.json +++ b/nodecg-io-philipshue/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-philipshue" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-rcon/package.json b/nodecg-io-rcon/package.json index 84c8556b7..8694477cd 100644 --- a/nodecg-io-rcon/package.json +++ b/nodecg-io-rcon/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-rcon" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-reddit/package.json b/nodecg-io-reddit/package.json index 1fa85e28c..f4b07ba35 100644 --- a/nodecg-io-reddit/package.json +++ b/nodecg-io-reddit/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-reddit" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-sacn-receiver/package.json b/nodecg-io-sacn-receiver/package.json index 8f5baf79f..090613974 100644 --- a/nodecg-io-sacn-receiver/package.json +++ b/nodecg-io-sacn-receiver/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-sacn-receiver" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-sacn-sender/package.json b/nodecg-io-sacn-sender/package.json index bd1d7a7c3..dcaba6e1f 100644 --- a/nodecg-io-sacn-sender/package.json +++ b/nodecg-io-sacn-sender/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-sacn-sender" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-serial/package.json b/nodecg-io-serial/package.json index b257bdd9b..c8df67c2b 100644 --- a/nodecg-io-serial/package.json +++ b/nodecg-io-serial/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-serial" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-slack/package.json b/nodecg-io-slack/package.json index e3d19c2a9..8705dba99 100644 --- a/nodecg-io-slack/package.json +++ b/nodecg-io-slack/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-slack" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-spotify/package.json b/nodecg-io-spotify/package.json index 2399bfbe5..ff34b11b6 100644 --- a/nodecg-io-spotify/package.json +++ b/nodecg-io-spotify/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-spotify" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-streamdeck/package.json b/nodecg-io-streamdeck/package.json index add02bebd..35400c878 100644 --- a/nodecg-io-streamdeck/package.json +++ b/nodecg-io-streamdeck/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-streamdeck" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-streamelements/package.json b/nodecg-io-streamelements/package.json index be7a6dea9..f6e239aef 100644 --- a/nodecg-io-streamelements/package.json +++ b/nodecg-io-streamelements/package.json @@ -17,7 +17,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-streamelements" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-telegram/package.json b/nodecg-io-telegram/package.json index 2f78f2049..5cfc8cde1 100644 --- a/nodecg-io-telegram/package.json +++ b/nodecg-io-telegram/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-telegram" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-template/package.json b/nodecg-io-template/package.json index f190320e1..e6caa2ffd 100644 --- a/nodecg-io-template/package.json +++ b/nodecg-io-template/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-template" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-tiane/extension/index.ts b/nodecg-io-tiane/extension/index.ts index b428e358d..4f5dddc0d 100644 --- a/nodecg-io-tiane/extension/index.ts +++ b/nodecg-io-tiane/extension/index.ts @@ -1,6 +1,6 @@ import { NodeCG } from "nodecg/types/server"; import { Result, emptySuccess, success, ServiceBundle } from "nodecg-io-core"; -import { Tiane, connectTiane } from "./tiane"; +import { Tiane } from "./tiane"; interface TianeServiceConfig { address: string; @@ -14,13 +14,13 @@ module.exports = (nodecg: NodeCG) => { class TianeService extends ServiceBundle { async validateConfig(config: TianeServiceConfig): Promise> { - (await connectTiane(config.address)).close(); + (await Tiane.connect(config.address)).close(); return emptySuccess(); } async createClient(config: TianeServiceConfig): Promise> { this.nodecg.log.info("Connecting to TIANE..."); - const client = await connectTiane(config.address); + const client = await Tiane.connect(config.address); this.nodecg.log.info("Successfully connected to TIANE."); return success(client); diff --git a/nodecg-io-tiane/extension/tiane.ts b/nodecg-io-tiane/extension/tiane.ts index 339e59a45..38b1fda42 100644 --- a/nodecg-io-tiane/extension/tiane.ts +++ b/nodecg-io-tiane/extension/tiane.ts @@ -1,26 +1,10 @@ import * as WebSocket from "ws"; import { EventEmitter } from "events"; -export async function connectTiane(address: string): Promise { - if (!address.includes("://")) { - address = "ws://" + address; - } - const websocket = new WebSocket(address); - await new Promise((resolve, reject) => { - websocket.once("error", reject); - websocket.on("open", () => { - websocket.off("error", reject); - resolve(undefined); - }); - }); - - return new Tiane(websocket); -} - export class Tiane extends EventEmitter { private readonly websocket: WebSocket; - constructor(websocket: WebSocket) { + private constructor(websocket: WebSocket) { super(); this.websocket = websocket; @@ -43,6 +27,22 @@ export class Tiane extends EventEmitter { }; } + static async connect(address: string): Promise { + if (!address.includes("://")) { + address = "ws://" + address; + } + const websocket = new WebSocket(address); + await new Promise((resolve, reject) => { + websocket.once("error", reject); + websocket.on("open", () => { + websocket.off("error", reject); + resolve(undefined); + }); + }); + + return new Tiane(websocket); + } + close(): void { this.websocket.close(); } diff --git a/nodecg-io-tiane/package.json b/nodecg-io-tiane/package.json index 33c2ee40d..1c69b03d0 100644 --- a/nodecg-io-tiane/package.json +++ b/nodecg-io-tiane/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-tiane" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-twitch-addons/package.json b/nodecg-io-twitch-addons/package.json index 87b3b3b19..f5221c961 100644 --- a/nodecg-io-twitch-addons/package.json +++ b/nodecg-io-twitch-addons/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-twitch-addons" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-twitch-api/package.json b/nodecg-io-twitch-api/package.json index f1afa818a..bac91b33d 100644 --- a/nodecg-io-twitch-api/package.json +++ b/nodecg-io-twitch-api/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-twitch-api" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-twitch-chat/package.json b/nodecg-io-twitch-chat/package.json index 7db76d578..d3a27d7af 100644 --- a/nodecg-io-twitch-chat/package.json +++ b/nodecg-io-twitch-chat/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-twitch-chat" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-twitch-pubsub/package.json b/nodecg-io-twitch-pubsub/package.json index 75757e25c..753ac4e89 100644 --- a/nodecg-io-twitch-pubsub/package.json +++ b/nodecg-io-twitch-pubsub/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-twitch-pubsub" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-twitter/package.json b/nodecg-io-twitter/package.json index 9a8d8456a..f9621fde5 100644 --- a/nodecg-io-twitter/package.json +++ b/nodecg-io-twitter/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-twitter" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-websocket-client/package.json b/nodecg-io-websocket-client/package.json index 7a4d213de..3a7e13f0e 100644 --- a/nodecg-io-websocket-client/package.json +++ b/nodecg-io-websocket-client/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-websocket-client" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-websocket-server/package.json b/nodecg-io-websocket-server/package.json index d52d26e60..372e6422c 100644 --- a/nodecg-io-websocket-server/package.json +++ b/nodecg-io-websocket-server/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-websocket-server" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-xdotool/package.json b/nodecg-io-xdotool/package.json index 9307dc7fc..ea86885fa 100644 --- a/nodecg-io-xdotool/package.json +++ b/nodecg-io-xdotool/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-xdotool" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/nodecg-io-youtube/package.json b/nodecg-io-youtube/package.json index 00c6215fb..a6cebea81 100644 --- a/nodecg-io-youtube/package.json +++ b/nodecg-io-youtube/package.json @@ -12,7 +12,13 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "nodecg-io-youtube" }, - "main": "extension", + "files": [ + "**/*.js", + "**/*.js.map", + "**/*.d.ts", + "*.json" + ], + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w", diff --git a/package-lock.json b/package-lock.json index 25dec3e43..7058b9fe3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,6 +43,7 @@ "socket.io-client": "^2.3.1", "spotify-web-api-node": "^5.0.2", "ts-loader": "^8.0.18", + "tslib": "^2.1.0", "twitch": "^4.5.0", "twitch-auth": "^4.5.0", "twitch-chat-client": "^4.5.0", @@ -450,11 +451,6 @@ "tslib": "^2.1.0" } }, - "node_modules/@d-fischer/cache-decorators/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/@d-fischer/connection": { "version": "6.4.2", "resolved": "https://registry.npmjs.org/@d-fischer/connection/-/connection-6.4.2.tgz", @@ -473,11 +469,6 @@ "url": "https://github.com/sponsors/d-fischer" } }, - "node_modules/@d-fischer/connection/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/@d-fischer/cross-fetch": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@d-fischer/cross-fetch/-/cross-fetch-4.0.2.tgz", @@ -516,11 +507,6 @@ "tslib": "^2.0.3" } }, - "node_modules/@d-fischer/logger/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/@d-fischer/promise.allsettled": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@d-fischer/promise.allsettled/-/promise.allsettled-2.0.1.tgz", @@ -565,11 +551,6 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.5.tgz", "integrity": "sha512-5Oy7tYZnu3a4pnJ//d4yVvOImExl4Vtwf0D40iKUlU+XlUsyV9iyFWyCFlwy489b72FMAik/EFwRkNLjjOdSPg==" }, - "node_modules/@d-fischer/rate-limiter/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/@d-fischer/shared-utils": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@d-fischer/shared-utils/-/shared-utils-3.0.1.tgz", @@ -582,11 +563,6 @@ "url": "https://github.com/sponsors/d-fischer" } }, - "node_modules/@d-fischer/shared-utils/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/@d-fischer/typed-event-emitter": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/@d-fischer/typed-event-emitter/-/typed-event-emitter-3.2.2.tgz", @@ -599,11 +575,6 @@ "url": "https://github.com/sponsors/d-fischer" } }, - "node_modules/@d-fischer/typed-event-emitter/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/@dabh/diagnostics": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.2.tgz", @@ -5766,6 +5737,11 @@ "node": ">=6.0" } }, + "node_modules/chrome-trace-event/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, "node_modules/ci-info": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", @@ -11019,11 +10995,6 @@ "url": "https://github.com/sponsors/d-fischer" } }, - "node_modules/ircv3/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/is-accessor-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", @@ -11665,11 +11636,6 @@ "tslib": "^2.0.0" } }, - "node_modules/json-ptr/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", @@ -15710,6 +15676,12 @@ "npm": ">=2.0.0" } }, + "node_modules/rxjs/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, "node_modules/sacn": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/sacn/-/sacn-3.2.1.tgz", @@ -17561,9 +17533,9 @@ } }, "node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" }, "node_modules/tsutils": { "version": "3.21.0", @@ -17580,6 +17552,12 @@ "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" } }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -17641,11 +17619,6 @@ "url": "https://github.com/sponsors/d-fischer" } }, - "node_modules/twitch-api-call/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/twitch-auth": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/twitch-auth/-/twitch-auth-4.5.0.tgz", @@ -17662,11 +17635,6 @@ "url": "https://github.com/sponsors/d-fischer" } }, - "node_modules/twitch-auth/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/twitch-chat-client": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/twitch-chat-client/-/twitch-chat-client-4.5.0.tgz", @@ -17690,11 +17658,6 @@ "twitch": "^4.4.0" } }, - "node_modules/twitch-chat-client/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/twitch-common": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/twitch-common/-/twitch-common-4.5.0.tgz", @@ -17708,11 +17671,6 @@ "url": "https://github.com/sponsors/d-fischer" } }, - "node_modules/twitch-common/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/twitch-pubsub-client": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/twitch-pubsub-client/-/twitch-pubsub-client-4.5.0.tgz", @@ -17733,16 +17691,6 @@ "twitch": "^4.4.0" } }, - "node_modules/twitch-pubsub-client/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, - "node_modules/twitch/node_modules/tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - }, "node_modules/twitter": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/twitter/-/twitter-1.7.1.tgz", @@ -19462,13 +19410,6 @@ "@d-fischer/shared-utils": "^3.0.1", "@types/node": "^14.14.22", "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "@d-fischer/connection": { @@ -19484,13 +19425,6 @@ "@types/ws": "^7.2.7", "tslib": "^2.0.3", "ws": "^7.4.2" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "@d-fischer/cross-fetch": { @@ -19524,13 +19458,6 @@ "requires": { "detect-node": "^2.0.4", "tslib": "^2.0.3" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "@d-fischer/promise.allsettled": { @@ -19564,11 +19491,6 @@ "version": "12.20.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.5.tgz", "integrity": "sha512-5Oy7tYZnu3a4pnJ//d4yVvOImExl4Vtwf0D40iKUlU+XlUsyV9iyFWyCFlwy489b72FMAik/EFwRkNLjjOdSPg==" - }, - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" } } }, @@ -19579,13 +19501,6 @@ "requires": { "@types/node": "^14.11.2", "tslib": "^2.0.3" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "@d-fischer/typed-event-emitter": { @@ -19595,13 +19510,6 @@ "requires": { "@types/node": "^14.11.2", "tslib": "^2.0.3" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "@dabh/diagnostics": { @@ -23979,6 +23887,13 @@ "integrity": "sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ==", "requires": { "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } } }, "ci-info": { @@ -28247,13 +28162,6 @@ "@types/node": "^14.14.19", "klona": "^2.0.4", "tslib": "^2.0.3" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "is-accessor-descriptor": { @@ -28717,13 +28625,6 @@ "integrity": "sha512-tFH40YQ+lG7mgYYM1kGZOhQngO4SbOEHZJlA4W+NtetWZ20EUU3BPU+30uWRKumuAJoSo5eqrsXD2h72ioS8ew==", "requires": { "tslib": "^2.0.0" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "json-schema": { @@ -31946,6 +31847,14 @@ "dev": true, "requires": { "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } } }, "sacn": { @@ -33427,9 +33336,9 @@ } }, "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" }, "tsutils": { "version": "3.21.0", @@ -33438,6 +33347,14 @@ "dev": true, "requires": { "tslib": "^1.8.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } } }, "tunnel-agent": { @@ -33473,13 +33390,6 @@ "twitch-api-call": "^4.5.0", "twitch-auth": "^4.5.0", "twitch-common": "^4.5.0" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "twitch-api-call": { @@ -33493,13 +33403,6 @@ "node-fetch": "^2.6.1", "tslib": "^2.0.3", "twitch-common": "^4.5.0" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "twitch-auth": { @@ -33513,13 +33416,6 @@ "tslib": "^2.0.3", "twitch-api-call": "^4.5.0", "twitch-common": "^4.5.0" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "twitch-chat-client": { @@ -33537,13 +33433,6 @@ "tslib": "^2.0.3", "twitch-auth": "^4.5.0", "twitch-common": "^4.5.0" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "twitch-common": { @@ -33554,13 +33443,6 @@ "@d-fischer/logger": "^3.1.0", "@d-fischer/shared-utils": "^3.0.1", "tslib": "^2.0.3" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "twitch-pubsub-client": { @@ -33575,13 +33457,6 @@ "tslib": "^2.0.3", "twitch-auth": "^4.5.0", "twitch-common": "^4.5.0" - }, - "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } } }, "twitter": { diff --git a/tsconfig.common.json b/tsconfig.common.json index 10c73d117..b36118bf4 100644 --- a/tsconfig.common.json +++ b/tsconfig.common.json @@ -4,6 +4,7 @@ "target": "es2017", "importHelpers": true, "sourceMap": true, + "declaration": true, // Module resolution "moduleResolution": "node", diff --git a/utils/nodecg-io-twitch-auth/package.json b/utils/nodecg-io-twitch-auth/package.json index 169e3fd3d..b5dc99a90 100644 --- a/utils/nodecg-io-twitch-auth/package.json +++ b/utils/nodecg-io-twitch-auth/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/codeoverflow-org/nodecg-io.git", "directory": "utils/nodecg-io-twitch-chat" }, - "main": "extension", + "main": "extension/index", "scripts": { "build": "tsc -b", "watch": "tsc -b -w",