@d5render/cli 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/bin/d5cli +3 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/bin/d5cli
CHANGED
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "@d5render/cli";
|
|
10
|
-
var version = "0.1.
|
|
10
|
+
var version = "0.1.3";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region copilot/server/config.ts
|
|
@@ -116,7 +116,7 @@ function send(title, text) {
|
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region copilot/bin/deploy.ts
|
|
118
118
|
const root = () => {
|
|
119
|
-
const dir = env.HOME
|
|
119
|
+
const dir = env.HOME ?? env.HOMEPATH;
|
|
120
120
|
if (!dir) throw new Error("cannot find home directory");
|
|
121
121
|
return dir;
|
|
122
122
|
};
|
|
@@ -125,8 +125,7 @@ function deploy() {
|
|
|
125
125
|
const cl = join(cwd, "bin/CHANGELOG.md");
|
|
126
126
|
if (existsSync(cl)) {
|
|
127
127
|
let clt = readFileSync(cl, "utf8");
|
|
128
|
-
rmSync(cl);
|
|
129
|
-
if (env.DINGTALK_WEBHOOK) send("NOTICE", `#### cli upgrade\n\n${clt}\n\n##### [HISTORY CHANGELOG](https://www.npmjs.com/package/${name}/v/${version}?activeTab=code)`).catch(() => {});
|
|
128
|
+
if (env.DINGTALK_WEBHOOK) send("NOTICE", `#### cli upgrade\n\n${clt}\n\n##### [HISTORY CHANGELOG](https://www.npmjs.com/package/${name}/v/${version}?activeTab=code)`).then(() => rmSync(cl)).catch(() => {});
|
|
130
129
|
}
|
|
131
130
|
const dir = join(root(), ".copilot/skills/codereview");
|
|
132
131
|
if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
|