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:
33
package.json
33
package.json
@@ -1,33 +1,36 @@
|
||||
{
|
||||
"name": "@kevisual/code-builder",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"main": "src/index.ts",
|
||||
"bin": {
|
||||
"code-builder": "./bin/code.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "rollup -c"
|
||||
"start": "bun run dev",
|
||||
"build": "bun ./bun.config.ts",
|
||||
"dev": " bun run build --watch"
|
||||
},
|
||||
"keywords": [],
|
||||
"files": [
|
||||
"dist",
|
||||
"bin",
|
||||
"tsconfig.json"
|
||||
"src"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"author": "abearxiong <xiongxiao@xiongxiao.me>",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@kevisual/router": "0.0.7",
|
||||
"@kevisual/use-config": "^1.0.8",
|
||||
"nanoid": "^5.1.2"
|
||||
"@kevisual/use-config": "^1.0.21",
|
||||
"nanoid": "^5.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^28.0.2",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@rollup/plugin-node-resolve": "^16.0.0",
|
||||
"@rollup/plugin-typescript": "^12.1.2",
|
||||
"@types/node": "^22.13.5",
|
||||
"rollup": "^4.34.8",
|
||||
"typescript": "^5.7.3"
|
||||
"@kevisual/types": "^0.0.10",
|
||||
"commander": "^14.0.2",
|
||||
"@types/bun": "^1.3.5",
|
||||
"@types/node": "^25.0.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user