easyeda 0.0.127 → 0.0.129

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/lib/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  fetchEasyEDAComponent,
18
18
  maybeNumber,
19
19
  normalizeManufacturerPartNumber
20
- } from "../chunk-CROLWOEW.js";
20
+ } from "../chunk-YCCBLZAH.js";
21
21
  export {
22
22
  BBoxSchema,
23
23
  DataStrSchema,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "easyeda",
3
3
  "type": "module",
4
- "version": "0.0.127",
4
+ "version": "0.0.129",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
@@ -12,13 +12,19 @@
12
12
  "scripts": {
13
13
  "test": "bun test",
14
14
  "cli": "bun cli/main.ts",
15
- "build": "tsup lib/index.ts cli/main.ts --format esm --dts --sourcemap",
15
+ "build": "bun build:node && bun build:web",
16
+ "build:node": "tsup lib/index.ts cli/main.ts --platform node --format esm --dts --sourcemap",
17
+ "build:web": "tsup lib/websafe/index.ts --platform browser --format esm --dts --sourcemap -d dist/browser",
16
18
  "aider": "aider",
17
19
  "format:check": "biome format .",
18
20
  "format": "biome format . --write",
19
21
  "add-test-for-part": "bun run scripts/add-test-for-part.ts"
20
22
  },
21
23
  "main": "./dist/lib/index.js",
24
+ "exports": {
25
+ ".": "./dist/lib/index.js",
26
+ "./browser": "./dist/browser/index.js"
27
+ },
22
28
  "bin": {
23
29
  "easyeda-converter": "./dist/cli/main.js",
24
30
  "easyeda": "./dist/cli/main.js"
@@ -26,11 +32,11 @@
26
32
  "devDependencies": {
27
33
  "@biomejs/biome": "^1.9.4",
28
34
  "@tscircuit/log-soup": "1.0.2",
29
- "@tscircuit/props": "^0.0.164",
35
+ "@tscircuit/props": "^0.0.165",
30
36
  "@tscircuit/soup-util": "^0.0.41",
31
37
  "@types/bun": "latest",
32
38
  "bun-match-svg": "^0.0.6",
33
- "circuit-json": "^0.0.92",
39
+ "circuit-json": "^0.0.153",
34
40
  "circuit-to-svg": "^0.0.56",
35
41
  "tsup": "^8.4.0"
36
42
  },