Skip to content

Commit

Permalink
♻️ Updating build and publish scripts for sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
srod committed Jan 6, 2025
1 parent 19d71c6 commit 0564a54
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
"license": "GNU GPL 3.0",
"scripts": {
"build:infra": "sst build --stage dev",
"build:components": "bun run --cwd sdk/components build",
"build:sdk-core": "bun run --cwd sdk/core build",
"build:sdk-react": "bun run --cwd sdk/react build",
"build:sdk-legacy": "bun run --cwd sdk/legacy build",
"build:sdk-all": "bun run build:sdk-core && bun run build:sdk-react && bun run build:sdk-legacy && bun run build:components",
"build:sdk": "for d in sdk/*; do bun run --cwd ${d} build; done",
"changeset": "changeset",
"changeset:release": "bun run build:sdk-all && changeset publish",
"changeset:release": "for d in sdk/*; do bun run --cwd ${d} publish; done",
"changeset:version": "changeset version && bun install --lockfile-only",
"clean": "rimraf **/.open-next/ **/.next/ .sst/dist/ .sst/artifacts/",
"deploy": "sst deploy --stage dev",
Expand Down
6 changes: 4 additions & 2 deletions sdk/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
"clean": "rimraf dist",
"build": "tsup",
"build:watch": "tsup --watch",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"prepublish": "bun run lint && bun run build",
"publish": "bun publish"
},
"dependencies": {
"preact": "^10.25.2",
Expand All @@ -59,4 +61,4 @@
"tsup": "^8.3.5",
"typescript": "^5"
}
}
}
6 changes: 4 additions & 2 deletions sdk/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@
"build": "tsup && bun run check-exports",
"build:watch": "tsup --watch",
"check-exports": "attw --pack --profile node16 .",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"prepublish": "bun run lint && bun run build",
"publish": "bun publish"
},
"peerDependencies": {
"viem": "^2.x"
Expand All @@ -92,4 +94,4 @@
"tsup": "^8.3.5",
"typescript": "^5"
}
}
}
6 changes: 4 additions & 2 deletions sdk/legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"format": "biome check --write .",
"clean": "rimraf dist",
"build": "tsup",
"build:watch": "tsup --watch"
"build:watch": "tsup --watch",
"prepublish": "bun run lint && bun run build",
"publish": "bun publish"
}
}
}
6 changes: 4 additions & 2 deletions sdk/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
"build": "tsup && bun run check-exports",
"build:watch": "tsup --watch",
"check-exports": "attw --pack .",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"prepublish": "bun run lint && bun run build",
"publish": "bun publish"
},
"dependencies": {
"@frak-labs/core-sdk": "workspace:*"
Expand All @@ -73,4 +75,4 @@
"tsup": "^8.3.5",
"typescript": "^5"
}
}
}

0 comments on commit 0564a54

Please sign in to comment.