chore: migrate from node to bun
This commit is contained in:
13
package.json
13
package.json
@@ -8,14 +8,14 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc && cp -r templates dist/",
|
||||
"postbuild": "node -e \"const fs=require('fs'); const f='dist/main.js'; const c=fs.readFileSync(f,'utf8'); if(!c.startsWith('#!/usr/bin/env node')) fs.writeFileSync(f,'#!/usr/bin/env node\\n'+c); fs.chmodSync(f, '755');\"",
|
||||
"prepublishOnly": "npm run build",
|
||||
"generate": "node dist/main.js",
|
||||
"generate:dev": "ts-node main.ts",
|
||||
"postbuild": "bun -e \"const fs=require('fs'); const f='dist/main.js'; const c=fs.readFileSync(f,'utf8'); if(!c.startsWith('#!/usr/bin/env node')) fs.writeFileSync(f,'#!/usr/bin/env node\\n'+c); fs.chmodSync(f, '755');\"",
|
||||
"prepublishOnly": "bun run build",
|
||||
"generate": "bun dist/main.js",
|
||||
"generate:dev": "bun main.ts",
|
||||
"lint": "eslint 'main.ts' 'src/**/*.ts' -f unix",
|
||||
"lint:fix": "eslint 'main.ts' 'src/**/*.ts' --fix -f unix",
|
||||
"format": "prettier --write .",
|
||||
"setup": "npm install -g @openapitools/openapi-generator-cli"
|
||||
"setup": "bun add -g @openapitools/openapi-generator-cli"
|
||||
},
|
||||
"keywords": [
|
||||
"openapi",
|
||||
@@ -45,7 +45,7 @@
|
||||
"prompts": "^2.4.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"bun": ">=1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
@@ -61,7 +61,6 @@
|
||||
"eslint-formatter-unix": "^9.0.1",
|
||||
"eslint-plugin-prettier": "^5.5.5",
|
||||
"prettier": "^3.8.1",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.57.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user