Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Move common tsconfig configuration to a utility package #395

Merged
merged 4 commits into from
Jan 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .scripts/exec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ const colors = [
if (commands.length > 0) {
concurrently(commands, {
prefixColors: colors,
}).catch(() => {
console.log("At least one build task has failed")
process.exit(1);
});
}
2 changes: 1 addition & 1 deletion nodecg-io-core/dashboard/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"compilerOptions": {
"target": "ES2015",
"lib": ["ES2015", "dom"],
Expand Down
2 changes: 1 addition & 1 deletion nodecg-io-core/extension/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"compilerOptions": {
"noEmit": true,
"composite": false
Expand Down
2 changes: 1 addition & 1 deletion nodecg-io-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"exclude": ["dashboard", "extension/__tests__"],
"extends": "../tsconfig.common.json"
"extends": "nodecg-io-tsconfig"
}
8,377 changes: 1,900 additions & 6,477 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion samples/ahk-sendcommand/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/android/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/artnet-console/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/atem/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/curseforge/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/dbus-ratbagd/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/debug/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/discord-guild-chat/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/discord-rpc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
2 changes: 1 addition & 1 deletion samples/elgato-light/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
1 change: 1 addition & 0 deletions samples/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0",
"nodecg-io-github": "0.3.0"
}
}
2 changes: 1 addition & 1 deletion samples/github/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/gsheets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-googleapis": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/gsheets/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/intellij/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-intellij": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/intellij/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/irc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-irc": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/irc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/midi-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-midi-input": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/midi-input/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/midi-io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"nodecg-io-core": "^0.3.0",
"nodecg-io-midi-input": "^0.3.0",
"nodecg-io-midi-output": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/midi-io/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/midi-output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-midi-output": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/midi-output/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/mqtt-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-mqtt-client": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/mqtt-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/nanoleaf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-nanoleaf": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/nanoleaf/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/obs-scenelist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-obs": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/obs-scenelist/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/philipshue-lights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-philipshue": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/philipshue-lights/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/rcon-minecraft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-rcon": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/rcon-minecraft/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/reddit-msg-read/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-reddit": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/reddit-msg-read/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"compilerOptions": {
// reddit-ts, which is the underlying library of nodecg-io-reddit doesn't support compiling with
// this option. We need to disable it to make this sample bundle compile.
Expand Down
3 changes: 2 additions & 1 deletion samples/sacn-receiver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-sacn-receiver": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/sacn-receiver/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/sacn-sender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-sacn-sender": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/sacn-sender/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/serial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-serial": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/serial/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/shlink-list-short-urls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-shlink": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/shlink-list-short-urls/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/slack-post/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-slack": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion samples/slack-post/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.common.json",
"extends": "nodecg-io-tsconfig",
"references": [
{
"path": "../../nodecg-io-core"
Expand Down
3 changes: 2 additions & 1 deletion samples/spotify-current-song/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nodecg-types": "^1.8.3",
"nodecg-io-core": "^0.3.0",
"nodecg-io-spotify": "^0.3.0",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"nodecg-io-tsconfig": "^1.0.0"
}
}
Loading