feat: refactor build process to use Bun, removing Rollup configuration

- Implemented `gererateBunConfig` and `buildWithBun` functions for building projects with Bun.
- Added command-line interface using Commander for building projects.
- Removed Rollup-related code and configuration.
- Deleted unused config module.
- Updated TypeScript configuration to extend from a shared config.
- Added .npmrc for authentication tokens.
- Created bun.config.ts for Bun build configuration.
- Added README documentation for usage instructions.
This commit is contained in:
2025-12-23 12:25:22 +08:00
parent c622010ee2
commit d6aae58ca0
9 changed files with 200 additions and 1630 deletions

View File

@@ -1,33 +1,24 @@
{
"extends": "@kevisual/types/json/backend.json",
"compilerOptions": {
"module": "nodenext",
"module": "NodeNext",
"target": "esnext",
"noImplicitAny": false,
"outDir": "./dist",
"sourceMap": false,
"allowJs": true,
"newLine": "LF",
"baseUrl": "./",
"baseUrl": ".",
"typeRoots": [
"node_modules/@types",
// "node_modules/@kevisual/types"
"./node_modules/@types",
"./node_modules/@kevisual/types/index.d.ts"
],
"declaration": true,
"noEmit": false,
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"moduleResolution": "NodeNext",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"paths": {
"@/*": [
"src/*"
],
"@agent/*": [
"agent/*"
]
}
},
},
"include": [
"src/**/*.ts",
"src/**/*",
"agent/**/*",
],
"exclude": [],
}