mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-06 23:59:43 -04:00
c14c8d15b0
# Description of Changes - Node.js: Use esbuild instead of tsx - Node.js: Remove interactive CLI since it doesn't work with `spacetime dev` - Next.js: Fix onError callback to use single argument (ctx) and use ctx.event for the error. - Next.js: Replace lint-disable comment with `_connection` for the unused variable. - Updated quickstart docs to use proper `withDatabaseName` # API and ABI breaking changes None. # Expected complexity level and risk **Complexity: 1–2.** Small tooling, type, and lint tweaks. Low risk. # Testing - [ ] Build affected templates (e.g. `pnpm build` in nextjs-ts). - [ ] Lint passes.
23 lines
717 B
JSON
23 lines
717 B
JSON
{
|
|
"name": "@clockworklabs/nodejs-ts",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "esbuild src/main.ts --bundle --platform=node --outfile=dist/main.js --format=esm && node dist/main.js",
|
|
"start": "node dist/main.js",
|
|
"build": "esbuild src/main.ts --bundle --platform=node --outfile=dist/main.js --format=esm",
|
|
"typecheck": "tsc --noEmit",
|
|
"spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb"
|
|
},
|
|
"dependencies": {
|
|
"spacetimedb": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"esbuild": "^0.24.0",
|
|
"typescript": "~5.6.2",
|
|
"undici": "^6.19.2"
|
|
}
|
|
}
|