standard-changelog 7.0.0 → 8.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 +1 -1
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +38 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[node-url]: https://nodejs.org
|
|
19
19
|
|
|
20
20
|
[deps]: https://img.shields.io/librariesio/release/npm/standard-changelog
|
|
21
|
-
[deps-url]: https://libraries.io/npm/standard-changelog
|
|
21
|
+
[deps-url]: https://libraries.io/npm/standard-changelog
|
|
22
22
|
|
|
23
23
|
[size]: https://packagephobia.com/badge?p=standard-changelog
|
|
24
24
|
[size-url]: https://packagephobia.com/result?p=standard-changelog
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import meow from 'meow';
|
|
3
|
+
import { flags, runProgram } from 'conventional-changelog';
|
|
4
|
+
import { StandardChangelog } from './index.js';
|
|
5
|
+
const cli = meow(`
|
|
6
|
+
Usage
|
|
7
|
+
standard-changelog
|
|
8
|
+
|
|
9
|
+
Example
|
|
10
|
+
standard-changelog -i changelog -o CHANGELOG.md
|
|
11
|
+
|
|
12
|
+
Options
|
|
13
|
+
-i, --infile Read the CHANGELOG from this file (default: CHANGELOG.md)
|
|
14
|
+
-o, --outfile Write the CHANGELOG to this file (default: infile)
|
|
15
|
+
--stdout Output the result to stdout
|
|
16
|
+
-p, --preset Name of the preset you want to use (default: angular)
|
|
17
|
+
-k, --pkg A filepath of where your package.json is located (default: closest package.json)
|
|
18
|
+
-a, --append Should the newer release be appended to the older release (default: false)
|
|
19
|
+
-f, --first-release Generate the CHANGELOG for the first time
|
|
20
|
+
-r, --release-count How many releases to be generated from the latest (default: 1)
|
|
21
|
+
If 0, the whole changelog will be regenerated and the outfile will be overwritten
|
|
22
|
+
--skip-unstable If given, unstable tags will be skipped, e.g., x.x.x-alpha.1, x.x.x-rc.2
|
|
23
|
+
-u, --output-unreleased Output unreleased changelog
|
|
24
|
+
-v, --verbose Verbose output. Use this for debugging (default: false)
|
|
25
|
+
-n, --config A filepath of your config script
|
|
26
|
+
-c, --context A filepath of a json that is used to define template variables
|
|
27
|
+
-l, --lerna-package Generate a changelog for a specific lerna package (:pkg-name@1.0.0)
|
|
28
|
+
-t, --tag-prefix Tag prefix to consider when reading the tags
|
|
29
|
+
--commit-path Generate a changelog scoped to a specific directory
|
|
30
|
+
--from Start commit range from a specific tag or sha
|
|
31
|
+
--to End commit range at a specific tag or sha
|
|
32
|
+
`, {
|
|
33
|
+
importMeta: import.meta,
|
|
34
|
+
booleanDefault: undefined,
|
|
35
|
+
flags
|
|
36
|
+
});
|
|
37
|
+
await runProgram(new StandardChangelog(process.cwd()), cli.flags);
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsT0FBTyxJQUFJLE1BQU0sTUFBTSxDQUFBO0FBQ3ZCLE9BQU8sRUFDTCxLQUFLLEVBQ0wsVUFBVSxFQUNYLE1BQU0sd0JBQXdCLENBQUE7QUFDL0IsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sWUFBWSxDQUFBO0FBRTlDLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0NBMkJoQixFQUFFO0lBQ0QsVUFBVSxFQUFFLE9BQU8sSUFBSTtJQUN2QixjQUFjLEVBQUUsU0FBUztJQUN6QixLQUFLO0NBQ04sQ0FBQyxDQUFBO0FBRUYsTUFBTSxVQUFVLENBQ2QsSUFBSSxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUMsRUFDcEMsR0FBRyxDQUFDLEtBQUssQ0FDVixDQUFBIn0=
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ConventionalGitClient } from '@conventional-changelog/git-client';
|
|
2
|
+
import { ConventionalChangelog } from 'conventional-changelog';
|
|
3
|
+
export * from 'conventional-changelog';
|
|
4
|
+
export declare class StandardChangelog extends ConventionalChangelog {
|
|
5
|
+
constructor(cwdOrGitClient: string | ConventionalGitClient);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAG9D,cAAc,wBAAwB,CAAA;AAEtC,qBAAa,iBAAkB,SAAQ,qBAAqB;IAC1D,YAAY,cAAc,EAAE,MAAM,GAAG,qBAAqB,EAIzD;CACF"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConventionalChangelog } from 'conventional-changelog';
|
|
2
|
+
import angular from 'conventional-changelog-angular';
|
|
3
|
+
export * from 'conventional-changelog';
|
|
4
|
+
export class StandardChangelog extends ConventionalChangelog {
|
|
5
|
+
constructor(cwdOrGitClient) {
|
|
6
|
+
super(cwdOrGitClient);
|
|
7
|
+
this.config(angular());
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sd0JBQXdCLENBQUE7QUFDOUQsT0FBTyxPQUFPLE1BQU0sZ0NBQWdDLENBQUE7QUFFcEQsY0FBYyx3QkFBd0IsQ0FBQTtBQUV0QyxNQUFNLE9BQU8saUJBQWtCLFNBQVEscUJBQXFCO0lBQzFELFlBQVksY0FBOEM7UUFDeEQsS0FBSyxDQUFDLGNBQWMsQ0FBQyxDQUFBO1FBRXJCLElBQUksQ0FBQyxNQUFNLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQTtJQUN4QixDQUFDO0NBQ0YifQ==
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "standard-changelog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.0.0",
|
|
5
5
|
"description": "Generate a changelog from git metadata with Angular commit convention.",
|
|
6
6
|
"author": "Steve Mao",
|
|
7
7
|
"license": "MIT",
|
|
@@ -22,10 +22,7 @@
|
|
|
22
22
|
"log"
|
|
23
23
|
],
|
|
24
24
|
"engines": {
|
|
25
|
-
"node": ">=
|
|
26
|
-
},
|
|
27
|
-
"bin": {
|
|
28
|
-
"standard-changelog": "./dist/cli.js"
|
|
25
|
+
"node": ">=22"
|
|
29
26
|
},
|
|
30
27
|
"exports": {
|
|
31
28
|
"types": "./dist/index.d.ts",
|
|
@@ -35,9 +32,12 @@
|
|
|
35
32
|
"dist"
|
|
36
33
|
],
|
|
37
34
|
"dependencies": {
|
|
38
|
-
"meow": "^
|
|
39
|
-
"@conventional-changelog/git-client": "^
|
|
40
|
-
"conventional-changelog-angular": "^
|
|
41
|
-
"conventional-changelog": "^
|
|
35
|
+
"meow": "^14.0.0",
|
|
36
|
+
"@conventional-changelog/git-client": "^3.0.0",
|
|
37
|
+
"conventional-changelog-angular": "^9.0.0",
|
|
38
|
+
"conventional-changelog": "^8.0.0"
|
|
39
|
+
},
|
|
40
|
+
"bin": {
|
|
41
|
+
"standard-changelog": "./dist/cli.js"
|
|
42
42
|
}
|
|
43
43
|
}
|