standard-changelog 8.0.1 → 8.1.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/dist/cli.js +14 -10
- package/package.json +3 -4
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { readFile } from 'fs/promises';
|
|
3
|
+
import { readFlags, runProgram } from 'conventional-changelog';
|
|
4
4
|
import { StandardChangelog } from './index.js';
|
|
5
|
-
const
|
|
5
|
+
const HELP = `
|
|
6
6
|
Usage
|
|
7
7
|
standard-changelog
|
|
8
8
|
|
|
@@ -29,10 +29,14 @@ const cli = meow(`
|
|
|
29
29
|
--commit-path Generate a changelog scoped to a specific directory
|
|
30
30
|
--from Start commit range from a specific tag or sha
|
|
31
31
|
--to End commit range at a specific tag or sha
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
`;
|
|
33
|
+
const flags = readFlags();
|
|
34
|
+
if (flags.help || flags.version) {
|
|
35
|
+
const pkg = JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8'));
|
|
36
|
+
console.log(flags.help
|
|
37
|
+
? `\n ${pkg.description}\n${HELP}`
|
|
38
|
+
: pkg.version);
|
|
39
|
+
process.exit(0);
|
|
40
|
+
}
|
|
41
|
+
await runProgram(new StandardChangelog(process.cwd()), flags);
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGFBQWEsQ0FBQTtBQUN0QyxPQUFPLEVBQ0wsU0FBUyxFQUNULFVBQVUsRUFDWCxNQUFNLHdCQUF3QixDQUFBO0FBQy9CLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLFlBQVksQ0FBQTtBQUU5QyxNQUFNLElBQUksR0FBRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0NBMkJaLENBQUE7QUFDRCxNQUFNLEtBQUssR0FBRyxTQUFTLEVBQUUsQ0FBQTtBQUV6QixJQUFJLEtBQUssQ0FBQyxJQUFJLElBQUksS0FBSyxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2hDLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQ3BCLE1BQU0sUUFBUSxDQUFDLElBQUksR0FBRyxDQUFDLGlCQUFpQixFQUFFLE9BQU8sSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxDQUlwRSxDQUFBO0lBRUQsT0FBTyxDQUFDLEdBQUcsQ0FDVCxLQUFLLENBQUMsSUFBSTtRQUNSLENBQUMsQ0FBQyxPQUFPLEdBQUcsQ0FBQyxXQUFXLEtBQUssSUFBSSxFQUFFO1FBQ25DLENBQUMsQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUNoQixDQUFBO0lBQ0QsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQTtBQUNqQixDQUFDO0FBRUQsTUFBTSxVQUFVLENBQ2QsSUFBSSxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUMsRUFDcEMsS0FBSyxDQUNOLENBQUEifQ==
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "standard-changelog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.0
|
|
4
|
+
"version": "8.1.0",
|
|
5
5
|
"description": "Generate a changelog from git metadata with Angular commit convention.",
|
|
6
6
|
"author": "Steve Mao",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,10 +32,9 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"
|
|
35
|
+
"@conventional-changelog/git-client": "^3.1.0",
|
|
36
36
|
"conventional-changelog-angular": "^9.2.1",
|
|
37
|
-
"
|
|
38
|
-
"conventional-changelog": "^8.0.1"
|
|
37
|
+
"conventional-changelog": "^8.1.0"
|
|
39
38
|
},
|
|
40
39
|
"bin": {
|
|
41
40
|
"standard-changelog": "./dist/cli.js"
|