@jlcpcb/cli 0.3.1 → 0.3.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @jlcpcb/cli
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Move bundled `@jlcpcb/core` workspace links out of runtime dependencies so npm can install published CLI and MCP packages.
8
+
3
9
  ## 0.3.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlcpcb/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "CLI for JLC/EasyEDA component sourcing and KiCad library management",
@@ -43,13 +43,13 @@
43
43
  "commander": "^12.0.0",
44
44
  "ink": "6.6.0",
45
45
  "ink-select-input": "6.2.0",
46
- "@jlcpcb/core": "workspace:*",
47
46
  "open": "11.0.0",
48
47
  "react": "^19.0.0",
49
48
  "react-devtools-core": "7.0.1",
50
49
  "string-width": "^8.2.0"
51
50
  },
52
51
  "devDependencies": {
52
+ "@jlcpcb/core": "workspace:*",
53
53
  "@types/node": "^20.0.0",
54
54
  "@types/react": "19.2.7"
55
55
  }
@@ -0,0 +1,25 @@
1
+ import { readFile } from "node:fs/promises";
2
+
3
+ import { describe, expect, it } from "bun:test";
4
+
5
+ type PackageJson = {
6
+ dependencies?: Record<string, string>;
7
+ };
8
+
9
+ async function readPackageJson(): Promise<PackageJson> {
10
+ const packageJsonPath = new URL("../package.json", import.meta.url);
11
+ const packageJson = await readFile(packageJsonPath, "utf8");
12
+ return JSON.parse(packageJson) as PackageJson;
13
+ }
14
+
15
+ describe("package metadata", () => {
16
+ it("does not publish workspace protocol runtime dependencies", async () => {
17
+ const packageJson = await readPackageJson();
18
+ const workspaceDependencies = Object.entries(packageJson.dependencies ?? {})
19
+ .filter(([, version]) => version.startsWith("workspace:"))
20
+ .map(([name]) => name);
21
+
22
+ expect(workspaceDependencies).toEqual([]);
23
+ expect(packageJson.dependencies?.["@jlcpcb/core"]).toBeUndefined();
24
+ });
25
+ });