@elgato/cli 0.1.0-beta.3 → 0.1.0-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elgato/cli",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0-beta.4",
4
4
  "description": "CLI tool for building with Stream Deck.",
5
5
  "bin": {
6
6
  "streamdeck": "bin/streamdeck.mjs",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "keywords": [
29
29
  "elgato",
30
- "stream-deck",
30
+ "stream deck",
31
31
  "plugin",
32
32
  "cli",
33
33
  "marketplace",
@@ -43,25 +43,25 @@
43
43
  },
44
44
  "homepage": "https://github.com/elgatosf/cli#readme",
45
45
  "devDependencies": {
46
- "@rollup/plugin-commonjs": "^25.0.4",
47
- "@rollup/plugin-json": "^6.0.0",
48
- "@rollup/plugin-node-resolve": "^15.2.1",
49
- "@rollup/plugin-terser": "^0.4.3",
50
- "@rollup/plugin-typescript": "^11.1.4",
46
+ "@rollup/plugin-commonjs": "^25.0.5",
47
+ "@rollup/plugin-json": "^6.0.1",
48
+ "@rollup/plugin-node-resolve": "^15.2.2",
49
+ "@rollup/plugin-terser": "^0.4.4",
50
+ "@rollup/plugin-typescript": "^11.1.5",
51
51
  "@trivago/prettier-plugin-sort-imports": "^4.2.0",
52
52
  "@tsconfig/node20": "^20.1.2",
53
53
  "@types/ejs": "^3.1.3",
54
54
  "@types/inquirer": "^9.0.3",
55
55
  "@types/lodash": "^4.14.199",
56
56
  "@types/node": "20.1.7",
57
- "@typescript-eslint/eslint-plugin": "^6.7.3",
58
- "@typescript-eslint/parser": "^6.7.3",
57
+ "@typescript-eslint/eslint-plugin": "^6.7.4",
58
+ "@typescript-eslint/parser": "^6.7.4",
59
59
  "ajv": "^8.12.0",
60
60
  "chalk": "^5.3.0",
61
61
  "commander": "^11.0.0",
62
62
  "dotenv": "^16.3.1",
63
63
  "ejs": "^3.1.9",
64
- "eslint": "^8.50.0",
64
+ "eslint": "^8.51.0",
65
65
  "eslint-config-prettier": "^9.0.0",
66
66
  "eslint-plugin-jsdoc": "^46.8.2",
67
67
  "eslint-plugin-prettier": "^5.0.0",
@@ -72,7 +72,7 @@
72
72
  "log-symbols": "^5.1.0",
73
73
  "prettier": "^3.0.3",
74
74
  "rage-edit": "^1.2.0",
75
- "rollup": "^3.29.4",
75
+ "rollup": "^4.0.2",
76
76
  "tslib": "^2.6.2",
77
77
  "typescript": "^5.2.2"
78
78
  }
@@ -26,7 +26,7 @@
26
26
  "Icon": "imgs/plugin/marketplace",
27
27
  "SDKVersion": 2,
28
28
  "Software": {
29
- "MinimumVersion": "6.3"
29
+ "MinimumVersion": "6.4"
30
30
  },
31
31
  "OS": [
32
32
  {
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "scripts": {
3
3
  "build": "rollup -c",
4
- "watch": "rollup -c -w"
4
+ "watch": "rollup -c -w --watch.onEnd=\"streamdeck restart <%- uuid %>\""
5
5
  },
6
+ "type": "module",
6
7
  "devDependencies": {
7
- "@rollup/plugin-commonjs": "^25.0.4",
8
- "@rollup/plugin-node-resolve": "^15.2.1",
9
- "@rollup/plugin-terser": "^0.4.3",
10
- "@rollup/plugin-typescript": "11.1.2",
8
+ "@elgato/cli": <%- JSON.stringify(npm.cli) %>,
9
+ "@rollup/plugin-commonjs": "^25.0.5",
10
+ "@rollup/plugin-node-resolve": "^15.2.2",
11
+ "@rollup/plugin-terser": "^0.4.4",
12
+ "@rollup/plugin-typescript": "^11.1.5",
11
13
  "@tsconfig/node20": "^20.1.2",
12
- "@types/node": "^20.5.6",
13
- "rollup": "^3.28.1",
14
+ "@types/node": "20.1.7",
15
+ "rollup": "^4.0.2",
14
16
  "tslib": "^2.6.2",
15
17
  "typescript": "^5.2.2"
16
18
  },
17
19
  "dependencies": {
18
- "@elgato/streamdeck": <%- JSON.stringify(streamDeckPackage) %>
20
+ "@elgato/streamdeck": <%- JSON.stringify(npm.streamDeck) %>
19
21
  }
20
22
  }
@@ -13,8 +13,7 @@ const isWatching = !!process.env.ROLLUP_WATCH;
13
13
  const config = {
14
14
  input: "src/plugin.ts",
15
15
  output: {
16
- dir: "<%- uuid %>.sdPlugin/bin",
17
- format: "cjs",
16
+ file: "<%- uuid %>.sdPlugin/bin/plugin.js",
18
17
  sourcemap: isWatching,
19
18
  sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {
20
19
  return url.pathToFileURL(path.resolve(path.dirname(sourcemapPath), relativeSourcePath)).href;
@@ -22,24 +21,21 @@ const config = {
22
21
  },
23
22
  plugins: [
24
23
  typescript({
25
- sourceMap: isWatching,
26
- inlineSources: isWatching,
27
24
  mapRoot: isWatching ? "./" : undefined
28
25
  }),
29
- commonjs({
30
- sourceMap: false
31
- }),
32
26
  nodeResolve({
33
27
  browser: false,
34
28
  exportConditions: ["node"],
35
29
  preferBuiltins: true
36
30
  }),
37
- !isWatching &&
38
- terser({
39
- format: {
40
- comments: false
41
- }
42
- })
31
+ commonjs(),
32
+ !isWatching && terser(),
33
+ {
34
+ name: "emit-module-package-file",
35
+ generateBundle() {
36
+ this.emitFile({ fileName: "package.json", source: `{ "type": "module" }`, type: "asset" });
37
+ }
38
+ }
43
39
  ]
44
40
  };
45
41
  <% if (isPreBuild) { %>
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "extends": "@tsconfig/node20/tsconfig.json",
3
3
  "compilerOptions": {
4
- "module": "ESNext",
5
- "moduleResolution": "Bundler",
6
- "outDir": "<%- uuid %>.sdPlugin/bin"
4
+ "customConditions": [
5
+ "node"
6
+ ],
7
+ "module": "ES2022",
8
+ "moduleResolution": "Bundler"
7
9
  },
8
10
  "include": [
9
11
  "src/**/*.ts"