feat: update build and dev scripts to use tsdown; add tsdown config file

- Changed build script in packages/logic/package.json to use tsdown instead of tsc.
- Updated dev script in packages/logic/package.json to use tsdown with watch mode.
- Added tsdown as a devDependency in packages/logic/package.json.
- Updated pnpm-lock.yaml to include tsdown and its dependencies across various apps.
- Created a new tsdown.config.ts file to define build configuration for the workspace.
This commit is contained in:
2025-12-28 13:16:07 +00:00
parent 962b6dc15a
commit e99c7b2c83
9 changed files with 544 additions and 15 deletions
+5 -2
View File
@@ -4,9 +4,12 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "node -e \"console.log('dev not configured')\"",
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-api",
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-api --watch",
"lint": "node -e \"console.log('lint not configured')\"",
"test": "node -e \"console.log('test not configured')\""
},
"devDependencies": {
"tsdown": "^0.18.3"
}
}
+3 -2
View File
@@ -4,8 +4,8 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "node -e \"console.log('dev not configured')\"",
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-engine",
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-engine --watch",
"lint": "node -e \"console.log('lint not configured')\"",
"test": "vitest run --config vitest.config.ts"
},
@@ -13,6 +13,7 @@
"@sammo-ts/common": "workspace:*"
},
"devDependencies": {
"tsdown": "^0.18.3",
"vitest": "^4.0.16"
}
}
+5 -2
View File
@@ -4,9 +4,12 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "node -e \"console.log('dev not configured')\"",
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/gateway-api",
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/gateway-api --watch",
"lint": "node -e \"console.log('lint not configured')\"",
"test": "node -e \"console.log('test not configured')\""
},
"devDependencies": {
"tsdown": "^0.18.3"
}
}