@thisismanta/semantic-version 9.1.2 → 9.1.4
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/lib/run.js +8 -6
- package/package.json +18 -16
package/lib/run.js
CHANGED
|
@@ -38,16 +38,18 @@ const cp = __importStar(require("child_process"));
|
|
|
38
38
|
function run(command) {
|
|
39
39
|
return new Promise((resolve, reject) => {
|
|
40
40
|
cp.exec(command, (error, stdout, stderr) => {
|
|
41
|
+
console.log('::debug::' + command);
|
|
42
|
+
console.log('::debug::Output:');
|
|
43
|
+
console.log('::debug::=>', stdout);
|
|
44
|
+
if (stderr.trim().length > 0) {
|
|
45
|
+
console.log('::debug::Error:');
|
|
46
|
+
console.log('::debug::=>', stderr);
|
|
47
|
+
}
|
|
41
48
|
if (error) {
|
|
42
|
-
// See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#grouping-log-lines
|
|
43
|
-
console.log('::group::' + command);
|
|
44
|
-
console.log(stdout);
|
|
45
|
-
console.error(stderr);
|
|
46
|
-
console.log('::endgroup::');
|
|
47
49
|
reject(error);
|
|
48
50
|
}
|
|
49
51
|
else {
|
|
50
|
-
resolve(
|
|
52
|
+
resolve(stdout.trim());
|
|
51
53
|
}
|
|
52
54
|
});
|
|
53
55
|
});
|
package/package.json
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisismanta/semantic-version",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.4",
|
|
4
4
|
"author": "Anantachai Saothong <thisismanta@gmail.com>",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/ThisIsManta/semantic-version.git"
|
|
8
|
+
"url": "git+https://github.com/ThisIsManta/semantic-version.git"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=20.0.0"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"packageManager": "npm@11.6.2",
|
|
14
|
+
"main": "lib/index.js",
|
|
15
|
+
"types": "lib/index.d.ts",
|
|
15
16
|
"bin": {
|
|
16
|
-
"lint-commit-message": "
|
|
17
|
-
"auto-npm-version": "
|
|
17
|
+
"lint-commit-message": "bin/lint-commit-message",
|
|
18
|
+
"auto-npm-version": "bin/auto-npm-version"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
20
|
-
"
|
|
21
|
-
"
|
|
21
|
+
"lib",
|
|
22
|
+
"bin"
|
|
22
23
|
],
|
|
23
24
|
"scripts": {
|
|
24
25
|
"test": "vitest --no-watch",
|
|
25
26
|
"build": "rm -rf lib && tsc",
|
|
26
27
|
"preversion": "npm run build",
|
|
27
|
-
"version": "npm publish --access public"
|
|
28
|
+
"version": "npm publish --provenance --access public"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@types/node": "^20.
|
|
31
|
-
"@types/semver": "^7.7.
|
|
32
|
-
"lefthook": "^
|
|
33
|
-
"typescript": "^5.
|
|
34
|
-
"
|
|
31
|
+
"@types/node": "^20.19.30",
|
|
32
|
+
"@types/semver": "^7.7.1",
|
|
33
|
+
"lefthook": "^2.0.15",
|
|
34
|
+
"typescript": "^5.9.3",
|
|
35
|
+
"vite": "^7.3.1",
|
|
36
|
+
"vitest": "^4.0.17"
|
|
35
37
|
},
|
|
36
38
|
"dependencies": {
|
|
37
|
-
"@actions/github": "^
|
|
38
|
-
"semver": "^7.7.
|
|
39
|
+
"@actions/github": "^7.0.0",
|
|
40
|
+
"semver": "^7.7.3"
|
|
39
41
|
}
|
|
40
42
|
}
|