chore: initialize SaaS order service

This commit is contained in:
2026-09-03 21:36:37 +08:00
commit 02a8975198
12 changed files with 5531 additions and 0 deletions

41
package.json Normal file
View File

@@ -0,0 +1,41 @@
{
"name": "@tenant/saas-module-service",
"version": "0.1.0",
"private": true,
"description": "COOL SaaS 托管模块微服务",
"main": "dist/configuration.js",
"scripts": {
"dev": "cool saas-model dev",
"typecheck": "tsc --noEmit",
"build": "rimraf dist && mwtsc --cleanOutDir",
"publish": "cool saas-model finalize",
"start": "node bootstrap.js",
"start:local": "cross-env NODE_ENV=local SAAS_RUNTIME_BOOTSTRAP_LOCAL_FALLBACK_ENABLED=true node bootstrap.js"
},
"coolSaas": {
"lifecycle": {
"dev": "pnpm run build && pnpm run start:local",
"test": "pnpm run typecheck",
"build": "pnpm run build"
}
},
"dependencies": {
"@cool-midway/module-runtime": "9.0.2",
"@cool-midway/rpc": "9.0.2",
"@midwayjs/bootstrap": "^3.20.3",
"@midwayjs/core": "^3.20.3",
"@midwayjs/koa": "^3.20.3",
"@midwayjs/validate": "^3.20.3",
"mysql2": "^3.12.0",
"reflect-metadata": "^0.2.2",
"typeorm": "npm:@cool-midway/typeorm@0.3.20"
},
"devDependencies": {
"@cool-midway/core": "8.0.11",
"@types/node": "22.10.7",
"cross-env": "^7.0.3",
"mwtsc": "^1.16.0",
"rimraf": "^6.0.1",
"typescript": "~5.7.3"
}
}