You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
1.7 KiB

{
"name": "koa-ssr",
"type": "module",
"workspaces": [
"packages/*",
"internal/*"
],
"scripts": {
"postinstall": "node scripts/fix-type-router.js",
"dev": "bun run --hot packages/server/src/booststap.ts",
"build:client": "bun run --filter client build",
"start": "cd dist && cross-env NODE_ENV=production bun run booststap.js",
"build:all": "cross-env NODE_ENV=production tsup --config tsup.config.ts",
"build": "rimraf dist && bun run build:client && bun run build:all && node scripts/build.js",
"bundle:exe": "bun build --compile ./dist/booststap.js ./dist/**/* --minify --outfile ./dist/koa-ssr.exe",
"build:exe": "bun run build && bun run bundle:exe",
"tsc:booststap": "tsc packages/booststap/src/server.ts --outDir dist --module es2022 --target es2022 --lib es2022,dom --moduleResolution bundler --esModuleInterop --skipLibCheck --forceConsistentCasingInFileNames --noEmit false --incremental false",
"tsc:server": "tsc packages/server/src/**/*.ts --outDir dist/server --module es2022 --target es2022 --lib es2022,dom --moduleResolution bundler --esModuleInterop --skipLibCheck --forceConsistentCasingInFileNames --noEmit false --incremental false"
},
"devDependencies": {
"@types/bun": "latest",
"@types/koa-compose": "^3.2.8",
"client": "workspace:*",
"core": "workspace:*",
"cross-env": "^10.1.0",
"fast-glob": "^3.3.3",
"helper": "workspace:*",
"rimraf": "^6.0.1",
"server": "workspace:*",
"tsup": "^8.5.0",
"unplugin-vue-components": "^29.1.0",
"vite-plugin-devtools-json": "^1.0.0",
"x": "workspace:*"
},
"peerDependencies": {
"typescript": "^5.9.3"
},
"dependencies": {
"koa-compose": "^4.1.0",
"pinia": "^3.0.3",
"vite": "^7.1.7"
}
}