update
This commit is contained in:
4
.cnb.yml
4
.cnb.yml
@@ -10,7 +10,7 @@ include:
|
||||
|
||||
.npc: &npc
|
||||
- docker:
|
||||
image: docker.cnb.cool/kevisual/dev-env/bun:latest
|
||||
image: docker.cnb.cool/kevisual/dev-env/ubuntu-node:latest
|
||||
services:
|
||||
- docker
|
||||
env: !reference [.common_env, env]
|
||||
@@ -18,7 +18,7 @@ include:
|
||||
stages:
|
||||
- name: "task"
|
||||
script: |
|
||||
bun i -g @kevisual/cnb --registry=https://npm.cnb.cool/kevisual/registry/-/packages/
|
||||
npm i -g @kevisual/cnb --registry=https://npm.cnb.cool/kevisual/registry/-/packages/
|
||||
cloud-npc cnb npc
|
||||
$:
|
||||
vscode:
|
||||
|
||||
@@ -104,8 +104,9 @@ app.route({
|
||||
}
|
||||
}
|
||||
}).define(async (ctx) => {
|
||||
const needExit = ctx.args.needExit ?? true;
|
||||
const exit = (code: number) => {
|
||||
if (ctx.args.needExit) {
|
||||
if (needExit) {
|
||||
process.exit(code);
|
||||
}
|
||||
}
|
||||
|
||||
0
bin/npc.js
Normal file → Executable file
0
bin/npc.js
Normal file → Executable file
Reference in New Issue
Block a user