@vc-shell/release-config 1.0.269 → 1.0.270
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 +4 -0
- package/dist/release-config.js +7 -7
- package/dist/utils.d.ts.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/dist/release-config.js
CHANGED
|
@@ -3,17 +3,17 @@ import { inc as $, valid as k } from "semver";
|
|
|
3
3
|
import { readFileSync as C } from "node:fs";
|
|
4
4
|
import f from "node:path";
|
|
5
5
|
import i from "chalk";
|
|
6
|
-
import
|
|
7
|
-
import R from "
|
|
8
|
-
import {
|
|
9
|
-
const x = R
|
|
6
|
+
import N from "mri";
|
|
7
|
+
import { argv as R } from "node:process";
|
|
8
|
+
import { sync as j } from "cross-spawn";
|
|
9
|
+
const x = N(R.slice(2)), y = !!x.dry;
|
|
10
10
|
y && (console.log(i.inverse(i.yellow(" DRY RUN "))), console.log());
|
|
11
11
|
function v(e) {
|
|
12
12
|
const t = f.resolve(e), o = f.resolve(t, "package.json");
|
|
13
13
|
return { pkg: JSON.parse(C(o, "utf-8")), pkgDir: t, pkgPath: o };
|
|
14
14
|
}
|
|
15
15
|
async function h(e, t, o) {
|
|
16
|
-
return
|
|
16
|
+
return j(e, t, { stdio: "inherit", ...o });
|
|
17
17
|
}
|
|
18
18
|
async function D(e, t, o) {
|
|
19
19
|
return console.log(i.blue(`[dryrun] ${e} ${t.join(" ")}`), o || "");
|
|
@@ -22,7 +22,7 @@ const a = y ? D : h;
|
|
|
22
22
|
function g(e) {
|
|
23
23
|
return console.log(i.cyan(e));
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function I(e) {
|
|
26
26
|
function t(n) {
|
|
27
27
|
return $(e, n);
|
|
28
28
|
}
|
|
@@ -60,7 +60,7 @@ const F = async ({
|
|
|
60
60
|
type: "select",
|
|
61
61
|
name: "release",
|
|
62
62
|
message: "Select release type",
|
|
63
|
-
choices:
|
|
63
|
+
choices: I(p.version)
|
|
64
64
|
});
|
|
65
65
|
s === "custom" ? r = (await u({
|
|
66
66
|
type: "text",
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAE,kCAAkC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAGxE,OAAO,GAAG,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,IAAI;;EAAqB,CAAC;AAEvC,eAAO,MAAM,QAAQ,SAAa,CAAC;AAOnC,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM;;cAIpC,MAAM;iBACH,MAAM;;;;EAIlB;AAED,wBAAsB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,OAAO,CAAC,kCAAkC,CAAC,sEAExG;AAED,wBAAsB,MAAM,CAC1B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,CAAC,EAAE,OAAO,CAAC,kCAAkC,CAAC,GACjD,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,eAAO,MAAM,WAAW,4BAA0B,CAAC;AAEnD,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEtC;AAED,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,aAAa,EAAE,CA4BzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/release-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.270",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/release-config.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"chalk": "^2.4.2",
|
|
15
|
+
"cross-spawn": "^7.0.3",
|
|
15
16
|
"mri": "^1.2.0",
|
|
16
17
|
"prompts": "^2.4.2",
|
|
17
18
|
"semver": "^7.5.4",
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"@types/prompts": "^2.4.7",
|
|
22
23
|
"@types/semver": "^7.5.4",
|
|
23
|
-
"@vc-shell/ts-config": "^1.0.
|
|
24
|
+
"@vc-shell/ts-config": "^1.0.270",
|
|
24
25
|
"typescript": "~5.3.3",
|
|
25
26
|
"vite-plugin-dts": "^3.6.4"
|
|
26
27
|
},
|