- Remove private:true so package can be published to npm - Add files field to limit published files to dist/ - Move @acme/contracts to devDependencies (bundled by tsup) - Add @acme/renderer devDependency for turbo build ordering - Add bundle-client.mjs: copies renderer build into dist/client/ - Update resolveStaticDir to check dist/client/ first (npx scenario), then fall back to monorepo layout (../../renderer/dist) - Full build pipeline: contracts → renderer → server + bundle client Co-authored-by: Theo Browne <[email protected]>
33 lines
705 B
JSON
33 lines
705 B
JSON
{
|
|
"name": "t3",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"bin": {
|
|
"t3": "./dist/index.js"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"dev": "VITE_DEV_SERVER_URL=http://localhost:5173 tsx src/index.ts",
|
|
"build": "tsup && node scripts/bundle-client.mjs",
|
|
"start": "node dist/index.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"open": "^10.1.0",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@acme/contracts": "workspace:*",
|
|
"@acme/renderer": "workspace:*",
|
|
"@types/node": "^22.10.2",
|
|
"@types/ws": "^8.5.13",
|
|
"tsup": "^8.3.5",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.3"
|
|
}
|
|
}
|