Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed bun.lockb
Binary file not shown.
5 changes: 4 additions & 1 deletion bunfig.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[test]
preload = ["./tests/fixtures/preload.ts"]
preload = ["./tests/fixtures/preload.ts"]

[install.lockfile]
save=false
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"start": "bun run storybook",
"dev:old": "bunx --bun vite",
"build": "tsup ./src/index.tsx --platform neutral --format esm --dts",
"build": "tsup-node",
"prepublish": "npm run build",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
Expand All @@ -30,11 +30,7 @@
"@jscad/regl-renderer": "^2.6.12",
"@jscad/stl-serializer": "^2.1.20",
"@react-three/drei": "^9.121.4",
"@react-three/fiber": "^8.17.14",
"@tscircuit/core": "^0.0.454",
"@tscircuit/props": "^0.0.252",
"@tscircuit/soup-util": "^0.0.41",
"jscad-electronics": "^0.0.29",
"jscad-fiber": "^0.0.79",
"jscad-planner": "^0.0.13",
"manifold-3d": "^3.1.0",
Expand All @@ -43,9 +39,13 @@
"react-use-gesture": "^9.1.3"
},
"peerDependencies": {
"three": "*"
"three": "*",
"react": "*",
"react-dom": "*"
},
"devDependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@biomejs/biome": "^1.9.4",
"@chromatic-com/storybook": "^1.9.0",
"@jscad/modeling": "^2.12.5",
Expand All @@ -64,15 +64,18 @@
"@types/three": "^0.165.0",
"@vitejs/plugin-react": "^4.3.4",
"bun-match-svg": "^0.0.9",
"bun-types": "1.2.1",
"circuit-json": "^0.0.190",
"bun-types": "^1.2.1",
"circuit-to-svg": "^0.0.130",
"debug": "^4.4.0",
"jscad-electronics": "^0.0.31",
"jscad-fiber": "^0.0.81",
"jscad-planner": "^0.0.13",
"jsdom": "^26.0.0",
"semver": "^7.7.0",
"storybook": "^8.5.2",
"strip-ansi": "^7.1.0",
"tsup": "^8.3.6",
"tscircuit": "^0.0.539",
"tsup": "^8.5.0",
"typescript": "^5.7.3",
"vite": "^5.4.14",
"vite-tsconfig-paths": "^4.3.2"
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"skipLibCheck": true,
"target": "es2022",
"baseUrl": ".",
"paths": {
"src/*": ["./src/*"]
},
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
Expand Down
18 changes: 18 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineConfig } from "tsup"

export default defineConfig({
entry: ["./src/index.tsx"],
platform: "neutral",
format: ["esm"],
dts: true,
noExternal: [
"@jscad/modeling",
"@jscad/regl-renderer",
"@jscad/stl-serializer",
"@jscad/array-utils",
"@react-three/drei",
"@react-three/fiber",
"react-use-gesture",
"react-reconciler",
],
})
Loading