@thisismanta/semantic-version 10.0.0 → 11.0.0
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/README.md +57 -44
- package/bin/lint-commit-message +1 -1
- package/bin/make-next-release +2 -0
- package/lib/chunk.js +35 -0
- package/lib/index.js +31 -1
- package/lib/lint-commit-message.js +15 -1
- package/lib/make-next-release.js +18986 -0
- package/lib/run.js +27 -1
- package/package.json +27 -17
- package/bin/auto-npm-version +0 -2
- package/lib/auto-npm-version.js +0 -54
package/lib/run.js
CHANGED
|
@@ -1 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("./chunk.js");
|
|
3
|
+
let node_child_process = require("node:child_process");
|
|
4
|
+
node_child_process = require_chunk.__toESM(node_child_process);
|
|
5
|
+
let node_fs = require("node:fs");
|
|
6
|
+
node_fs = require_chunk.__toESM(node_fs);
|
|
7
|
+
//#region src/run.ts
|
|
8
|
+
function run(command) {
|
|
9
|
+
return new Promise((resolve, reject) => {
|
|
10
|
+
node_child_process.exec(command, (error, stdout, stderr) => {
|
|
11
|
+
console.log("::debug::" + command);
|
|
12
|
+
console.log("::debug::Output:");
|
|
13
|
+
console.log("::debug::=>", stdout);
|
|
14
|
+
if (stderr.trim().length > 0) {
|
|
15
|
+
console.log("::debug::Error:");
|
|
16
|
+
console.log("::debug::=>", stderr);
|
|
17
|
+
}
|
|
18
|
+
if (error) reject(error);
|
|
19
|
+
else resolve(stdout.trim());
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
const packageJSON = JSON.parse(node_fs.readFileSync("./package.json", { encoding: "utf-8" }));
|
|
24
|
+
const npm = packageJSON?.packageManager?.replace(/@.*$/, "") ?? packageJSON?.devEngines?.packageManager?.name ?? "npm";
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.npm = npm;
|
|
27
|
+
exports.run = run;
|
package/package.json
CHANGED
|
@@ -1,41 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisismanta/semantic-version",
|
|
3
|
-
"version": "
|
|
4
|
-
"author": "Anantachai Saothong <thisismanta@gmail.com>",
|
|
3
|
+
"version": "11.0.0",
|
|
5
4
|
"license": "ISC",
|
|
5
|
+
"author": "Anantachai Saothong <thisismanta@gmail.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/ThisIsManta/semantic-version.git"
|
|
9
9
|
},
|
|
10
|
-
"engines": {
|
|
11
|
-
"node": ">=22.0.0"
|
|
12
|
-
},
|
|
13
|
-
"packageManager": "npm@11.6.2",
|
|
14
|
-
"main": "lib/index.js",
|
|
15
|
-
"types": "lib/index.d.ts",
|
|
16
10
|
"bin": {
|
|
17
11
|
"lint-commit-message": "bin/lint-commit-message",
|
|
18
|
-
"
|
|
12
|
+
"make-next-release": "bin/make-next-release"
|
|
19
13
|
},
|
|
20
14
|
"files": [
|
|
21
15
|
"lib",
|
|
22
16
|
"bin"
|
|
23
17
|
],
|
|
18
|
+
"main": "lib/index.js",
|
|
19
|
+
"types": "lib/index.d.ts",
|
|
24
20
|
"scripts": {
|
|
25
|
-
"test": "vitest
|
|
26
|
-
"build": "rm -rf lib && find src -name '*.ts' ! -name '*.test.ts' | xargs
|
|
21
|
+
"test": "tsc && vitest",
|
|
22
|
+
"build": "rm -rf lib && find src -name '*.ts' ! -name '*.test.ts' | xargs npm exec rolldown -- --transform.target node22 --format commonjs --dir lib --chunk-file-names [name].js",
|
|
27
23
|
"preversion": "npm run build",
|
|
28
24
|
"version": "npm publish --provenance --access public"
|
|
29
25
|
},
|
|
30
26
|
"devDependencies": {
|
|
31
27
|
"@actions/github": "^9.0.0",
|
|
32
|
-
"@types/node": "~
|
|
28
|
+
"@types/node": "~24.12.2",
|
|
33
29
|
"@types/semver": "^7.7.1",
|
|
34
|
-
"
|
|
35
|
-
"lefthook": "^2.1.0",
|
|
30
|
+
"lefthook": "^2.1.5",
|
|
36
31
|
"semver": "^7.7.4",
|
|
37
|
-
"typescript": "^
|
|
38
|
-
"vite": "^
|
|
39
|
-
"vitest": "^4.
|
|
32
|
+
"typescript": "^6.0.2",
|
|
33
|
+
"vite": "^8.0.5",
|
|
34
|
+
"vitest": "^4.1.2"
|
|
35
|
+
},
|
|
36
|
+
"devEngines": {
|
|
37
|
+
"packageManager": {
|
|
38
|
+
"name": "npm",
|
|
39
|
+
"version": "^11.9.0",
|
|
40
|
+
"onFail": "error"
|
|
41
|
+
},
|
|
42
|
+
"runtime": {
|
|
43
|
+
"name": "node",
|
|
44
|
+
"version": "^24.14.0",
|
|
45
|
+
"onFail": "warn"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=22.0.0"
|
|
40
50
|
}
|
|
41
51
|
}
|
package/bin/auto-npm-version
DELETED