@elgato/cli 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import chalk6 from "chalk";
|
|
|
10
10
|
|
|
11
11
|
// src/validation/entry.ts
|
|
12
12
|
import chalk from "chalk";
|
|
13
|
-
import { EOL } from "os";
|
|
13
|
+
import { EOL } from "node:os";
|
|
14
14
|
var ValidationEntry = class {
|
|
15
15
|
/**
|
|
16
16
|
* Initializes a new instance of the {@link ValidationEntry} class.
|
|
@@ -295,10 +295,10 @@ var ValidationContext = class {
|
|
|
295
295
|
};
|
|
296
296
|
|
|
297
297
|
// src/validation/plugin/plugin.ts
|
|
298
|
-
import { basename, dirname, join, resolve } from "path";
|
|
298
|
+
import { basename, dirname, join, resolve } from "node:path";
|
|
299
299
|
|
|
300
300
|
// src/json/file-context.ts
|
|
301
|
-
import { existsSync, readFileSync } from "fs";
|
|
301
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
302
302
|
|
|
303
303
|
// src/json/map.ts
|
|
304
304
|
var JsonObjectMap = class {
|
|
@@ -648,6 +648,7 @@ function getComparison(comparison) {
|
|
|
648
648
|
|
|
649
649
|
// src/stream-deck.ts
|
|
650
650
|
import find from "find-process";
|
|
651
|
+
import { Registry } from "rage-edit";
|
|
651
652
|
function isPredefinedLayoutLike(value) {
|
|
652
653
|
return value.startsWith("$") === true && !value.endsWith(".json");
|
|
653
654
|
}
|
|
@@ -761,7 +762,7 @@ var layoutItemKeysAreUnique = rule(function(plugin) {
|
|
|
761
762
|
});
|
|
762
763
|
|
|
763
764
|
// src/validation/plugin/rules/layout-schema.ts
|
|
764
|
-
import { existsSync as existsSync2 } from "fs";
|
|
765
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
765
766
|
var layoutsExistAndSchemasAreValid = rule(function(plugin) {
|
|
766
767
|
plugin.manifest.layoutFiles.forEach(({ layout, location }) => {
|
|
767
768
|
if (!existsSync2(layout.path)) {
|
|
@@ -806,14 +807,14 @@ var categoryMatchesName = rule(function(plugin) {
|
|
|
806
807
|
});
|
|
807
808
|
|
|
808
809
|
// src/validation/plugin/rules/manifest-files-exist.ts
|
|
809
|
-
import { existsSync as existsSync4 } from "fs";
|
|
810
|
-
import { basename as basename3, extname, join as join3, resolve as resolve3 } from "path";
|
|
810
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
811
|
+
import { basename as basename3, extname, join as join3, resolve as resolve3 } from "node:path";
|
|
811
812
|
|
|
812
813
|
// src/system/fs.ts
|
|
813
814
|
import ignore from "ignore";
|
|
814
|
-
import { cpSync, createReadStream, existsSync as existsSync3, lstatSync, mkdirSync, readlinkSync, rmSync } from "fs";
|
|
815
|
-
import { basename as basename2, join as join2, resolve as resolve2 } from "path";
|
|
816
|
-
import { createInterface } from "readline";
|
|
815
|
+
import { cpSync, createReadStream, existsSync as existsSync3, lstatSync, mkdirSync, readlinkSync, rmSync } from "node:fs";
|
|
816
|
+
import { basename as basename2, join as join2, resolve as resolve2 } from "node:path";
|
|
817
|
+
import { createInterface } from "node:readline";
|
|
817
818
|
var streamDeckIgnoreFilename = ".sdignore";
|
|
818
819
|
var defaultIgnorePatterns = [streamDeckIgnoreFilename, ".git", "/.env*", "*.log", "*.js.map"];
|
|
819
820
|
async function getIgnores(path, defaultPatterns = defaultIgnorePatterns) {
|
|
@@ -908,7 +909,7 @@ var manifestFilesExist = rule(async function(plugin) {
|
|
|
908
909
|
});
|
|
909
910
|
|
|
910
911
|
// src/validation/plugin/rules/manifest-schema.ts
|
|
911
|
-
import { existsSync as existsSync5 } from "fs";
|
|
912
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
912
913
|
var manifestExistsAndSchemaIsValid = rule(function(plugin) {
|
|
913
914
|
if (!existsSync5(this.path)) {
|
|
914
915
|
return;
|
|
@@ -996,8 +997,8 @@ var manifestUuids = rule(async function(plugin) {
|
|
|
996
997
|
});
|
|
997
998
|
|
|
998
999
|
// src/validation/plugin/rules/path-input.ts
|
|
999
|
-
import { existsSync as existsSync6, lstatSync as lstatSync2 } from "fs";
|
|
1000
|
-
import { basename as basename4 } from "path";
|
|
1000
|
+
import { existsSync as existsSync6, lstatSync as lstatSync2 } from "node:fs";
|
|
1001
|
+
import { basename as basename4 } from "node:path";
|
|
1001
1002
|
var pathIsDirectoryAndUuid = rule(function(plugin) {
|
|
1002
1003
|
const name = basename4(this.path);
|
|
1003
1004
|
if (!existsSync6(this.path)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elgato/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Stream Deck CLI tool for building with Stream Deck.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"streamdeck": "bin/streamdeck.mjs",
|
|
@@ -52,44 +52,45 @@
|
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://github.com/elgatosf/cli#readme",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@elgato/schemas": "^0.4.
|
|
55
|
+
"@elgato/schemas": "^0.4.1",
|
|
56
56
|
"@humanwhocodes/momoa": "^3.0.0",
|
|
57
|
-
"@zip.js/zip.js": "^2.7.
|
|
58
|
-
"ajv": "^8.
|
|
59
|
-
"chalk": "^5.
|
|
60
|
-
"commander": "^
|
|
57
|
+
"@zip.js/zip.js": "^2.7.54",
|
|
58
|
+
"ajv": "^8.17.1",
|
|
59
|
+
"chalk": "^5.4.1",
|
|
60
|
+
"commander": "^13.0.0",
|
|
61
61
|
"ejs": "^3.1.10",
|
|
62
|
-
"find-process": "^1.4.
|
|
63
|
-
"ignore": "^
|
|
64
|
-
"inquirer": "^
|
|
62
|
+
"find-process": "^1.4.10",
|
|
63
|
+
"ignore": "^7.0.3",
|
|
64
|
+
"inquirer": "^12.3.2",
|
|
65
65
|
"is-interactive": "^2.0.0",
|
|
66
66
|
"lodash": "^4.17.21",
|
|
67
|
-
"log-symbols": "^
|
|
67
|
+
"log-symbols": "^7.0.0",
|
|
68
68
|
"rage-edit": "^1.2.0",
|
|
69
|
-
"semver": "^7.6.
|
|
70
|
-
"tar": "^7.
|
|
69
|
+
"semver": "^7.6.3",
|
|
70
|
+
"tar": "^7.4.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@elgato/prettier-config": "^0.2.
|
|
74
|
-
"@rollup/plugin-commonjs": "^
|
|
75
|
-
"@rollup/plugin-json": "^6.0
|
|
73
|
+
"@elgato/prettier-config": "^0.2.4",
|
|
74
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
75
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
76
76
|
"@rollup/plugin-node-resolve": "^15.2.2",
|
|
77
77
|
"@rollup/plugin-terser": "^0.4.4",
|
|
78
|
-
"@rollup/plugin-typescript": "^
|
|
79
|
-
"@tsconfig/node20": "^20.1.
|
|
80
|
-
"@types/ejs": "^3.1.
|
|
81
|
-
"@types/inquirer": "^9.0.
|
|
82
|
-
"@types/lodash": "^4.14
|
|
83
|
-
"@types/node": "^
|
|
84
|
-
"@
|
|
85
|
-
"@typescript-eslint/
|
|
86
|
-
"eslint": "^8.
|
|
87
|
-
"eslint
|
|
88
|
-
"eslint-
|
|
89
|
-
"eslint-plugin-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
78
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
79
|
+
"@tsconfig/node20": "^20.1.4",
|
|
80
|
+
"@types/ejs": "^3.1.5",
|
|
81
|
+
"@types/inquirer": "^9.0.7",
|
|
82
|
+
"@types/lodash": "^4.17.14",
|
|
83
|
+
"@types/node": "^22.10.7",
|
|
84
|
+
"@types/semver": "^7.5.8",
|
|
85
|
+
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
86
|
+
"@typescript-eslint/parser": "^8.20.0",
|
|
87
|
+
"eslint": "^8.57.1",
|
|
88
|
+
"eslint-config-prettier": "^10.0.1",
|
|
89
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
90
|
+
"eslint-plugin-prettier": "^5.2.2",
|
|
91
|
+
"rollup": "^4.30.1",
|
|
92
|
+
"tslib": "^2.8.1",
|
|
93
|
+
"tsup": "^8.3.5",
|
|
94
|
+
"typescript": "^5.7.3"
|
|
94
95
|
}
|
|
95
96
|
}
|