@matthesketh/utopia-cli 0.7.3 → 0.7.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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +3 -3
  3. package/package.json +8 -8
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matt Hesketh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { existsSync } from "fs";
5
5
  import { resolve } from "path";
6
6
  import { createInterface } from "readline";
7
7
  import { createRequire } from "module";
8
- import { execSync } from "child_process";
8
+ import { execFileSync } from "child_process";
9
9
  import {
10
10
  createServer,
11
11
  build as viteBuild,
@@ -227,7 +227,7 @@ function findClaude() {
227
227
  ];
228
228
  for (const bin of candidates) {
229
229
  try {
230
- execSync(`${bin} --version`, { stdio: "ignore" });
230
+ execFileSync(bin, ["--version"], { stdio: "ignore" });
231
231
  return bin;
232
232
  } catch {
233
233
  }
@@ -243,7 +243,7 @@ function mcpInstall() {
243
243
  process.exit(1);
244
244
  }
245
245
  try {
246
- execSync(`${claude} mcp add utopia-content -s project -- npx utopia mcp serve`, {
246
+ execFileSync(claude, ["mcp", "add", "utopia-content", "-s", "project", "--", "npx", "utopia", "mcp", "serve"], {
247
247
  stdio: "inherit",
248
248
  cwd: process.cwd()
249
249
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matthesketh/utopia-cli",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "CLI for the UtopiaJS framework",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,13 +30,9 @@
30
30
  "files": [
31
31
  "dist"
32
32
  ],
33
- "scripts": {
34
- "build": "tsup src/index.ts --format esm",
35
- "dev": "tsup src/index.ts --format esm --watch"
36
- },
37
33
  "dependencies": {
38
- "@matthesketh/utopia-vite-plugin": "^0.7.x",
39
- "@matthesketh/utopia-test": "^0.7.x"
34
+ "@matthesketh/utopia-vite-plugin": "0.7.2",
35
+ "@matthesketh/utopia-test": "0.7.0"
40
36
  },
41
37
  "peerDependencies": {
42
38
  "vite": "^6.0.0 || ^7.0.0",
@@ -44,5 +40,9 @@
44
40
  },
45
41
  "devDependencies": {
46
42
  "vite": "^7.3.1"
43
+ },
44
+ "scripts": {
45
+ "build": "tsup src/index.ts --format esm",
46
+ "dev": "tsup src/index.ts --format esm --watch"
47
47
  }
48
- }
48
+ }