@yarn-tool/changelog 2.0.9 → 2.0.10
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 +11 -0
- package/bin/changelog.js +6 -6
- package/bin/changelog.js.map +1 -1
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.10](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/changelog@2.0.9...@yarn-tool/changelog@2.0.10) (2022-08-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🔖 Miscellaneous
|
|
11
|
+
|
|
12
|
+
* . ([157d5dc](https://github.com/bluelovers/ws-yarn-workspaces/commit/157d5dc8959261d9326f6e633987182898ae9670))
|
|
13
|
+
* . ([dafc19c](https://github.com/bluelovers/ws-yarn-workspaces/commit/dafc19c43afb42c904b6e7dcc49d93567897c092))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.0.9](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/changelog@2.0.8...@yarn-tool/changelog@2.0.9) (2022-08-25)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @yarn-tool/changelog
|
package/bin/changelog.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const yargs_1 = tslib_1.__importDefault(require("yargs"));
|
|
6
|
-
const yargs_setting_1 =
|
|
7
|
-
const from_list_1 =
|
|
6
|
+
const yargs_setting_1 = require("../lib/yargs-setting");
|
|
7
|
+
const from_list_1 = require("../lib/lerna/from-list");
|
|
8
8
|
const table_1 = require("@yarn-tool/table");
|
|
9
|
-
const path_is_same_1 =
|
|
9
|
+
const path_is_same_1 = require("path-is-same");
|
|
10
10
|
const semver_diff_1 = require("@yarn-tool/semver-diff");
|
|
11
|
-
const argv = (0, yargs_setting_1.
|
|
11
|
+
const argv = (0, yargs_setting_1.setupToYargs)(yargs_1.default)
|
|
12
12
|
.option('cwd', {
|
|
13
13
|
default: process.cwd(),
|
|
14
14
|
normalize: true,
|
|
@@ -22,13 +22,13 @@ let options = {
|
|
|
22
22
|
tagPrefix: argv['tag-prefix'],
|
|
23
23
|
type: argv.type || (argv['lerna-package'] ? 'independent' : 'root'),
|
|
24
24
|
};
|
|
25
|
-
(0, from_list_1.
|
|
25
|
+
(0, from_list_1.updateChangelogByCwd)(argv.cwd, options)
|
|
26
26
|
.then(data => {
|
|
27
27
|
const table = (0, table_1.createDependencyTable)({
|
|
28
28
|
colAligns: ['left', 'left'],
|
|
29
29
|
});
|
|
30
30
|
table.push([`rootPath`, data.rootPath]);
|
|
31
|
-
if (!(0, path_is_same_1.
|
|
31
|
+
if (!(0, path_is_same_1.pathIsSame)(data.rootPath, data.cwd)) {
|
|
32
32
|
table.push([`targetPath`, data.cwd]);
|
|
33
33
|
}
|
|
34
34
|
table.push([`changelogPreset`, data.options.changelogPreset]);
|
package/bin/changelog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["changelog.ts"],"names":[],"mappings":";;;;AAEA,0DAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["changelog.ts"],"names":[],"mappings":";;;;AAEA,0DAA0C;AAC1C,wDAAoD;AAEpD,sDAA8D;AAC9D,4CAAyD;AACzD,+CAA0C;AAE1C,wDAAsD;AAEtD,MAAM,IAAI,GAAG,IAAA,4BAAY,EAAC,eAAK,CAAC;KAC9B,MAAM,CAAC,KAAK,EAAE;IACd,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE;IACtB,SAAS,EAAE,IAAI;CACf,C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AAC,IAAI,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAA;IACtC,KAAK,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAA;IAChC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;IAElC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;AACnD,CAAC,CAAC,CACF","sourcesContent":["#!/usr/bin/env node\n\nimport yargs, { Argv, Omit } from 'yargs';\nimport { setupToYargs } from '../lib/yargs-setting';\nimport { IOptionsWithType, IOptionsUpdateChangelog } from '..';\nimport { updateChangelogByCwd } from '../lib/lerna/from-list';\nimport { createDependencyTable } from '@yarn-tool/table';\nimport { pathIsSame } from 'path-is-same';\nimport { join } from 'path';\nimport { colorizeDiff } from '@yarn-tool/semver-diff';\n\nconst argv = setupToYargs(yargs)\n\t.option('cwd', {\n\t\tdefault: process.cwd(),\n\t\tnormalize: true,\n\t})\n\t.showHelpOnFail(true)\n\t.version()\n\t.help()\n\t.parseSync()\n;\n\nlet options: Partial<IOptionsWithType<IOptionsUpdateChangelog>> = {\n\n\tchangelogPreset: argv.preset,\n\ttagPrefix: argv['tag-prefix'],\n\n\ttype: argv.type || (argv['lerna-package'] ? 'independent' : 'root'),\n\n}\n\nupdateChangelogByCwd(argv.cwd, options)\n\t.then(data => {\n\n\t\tconst table = createDependencyTable({\n\t\t\tcolAligns: ['left', 'left'],\n\t\t});\n\n\t\ttable.push([`rootPath`, data.rootPath])\n\n\t\tif (!pathIsSame(data.rootPath, data.cwd))\n\t\t{\n\t\t\ttable.push([`targetPath`, data.cwd])\n\t\t}\n\n\t\ttable.push([`changelogPreset`, data.options.changelogPreset])\n\t\ttable.push([`type`, data.options.type])\n\t\ttable.push([`tagPrefix`, data.options.tagPrefix])\n\n\t\tlet version = colorizeDiff(data.pkg.version, data.version);\n\n\t\ttable.push([`package`, data.pkg.name])\n\t\ttable.push([`version`, version])\n\t\ttable.push([`file`, data.logPath])\n\n\t\tconsole.log(table.toString().replace(/ +$/g, ''));\n\t})\n;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarn-tool/changelog",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/@yarn-tool/changelog#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"lint": "npx eslint **/*.ts",
|
|
26
26
|
"test": "echo \"Error: no test specified\"",
|
|
27
27
|
"test:jest": "jest --coverage",
|
|
28
|
+
"test:jest:snapshot": "yarn run test:jest -- -u",
|
|
28
29
|
"test:mocha": "npx mocha --require ts-node/register \"!(node_modules)/**/*.{test,spec}.{ts,tsx}\"",
|
|
30
|
+
"test:snapshot": "yarn run test -- -u",
|
|
29
31
|
"npm:publish": "npm publish",
|
|
30
32
|
"npm:publish:lerna": "lerna publish --yes --bump patch",
|
|
31
33
|
"preversion": "yarn run test",
|
|
@@ -40,17 +42,17 @@
|
|
|
40
42
|
"dependencies": {
|
|
41
43
|
"@bluelovers/conventional-changelog-bluelovers": "*",
|
|
42
44
|
"@lerna/conventional-commits": "^5.4.3",
|
|
43
|
-
"@yarn-tool/find-root": "^2.0.
|
|
44
|
-
"@yarn-tool/require-resolve": "^2.0.
|
|
45
|
-
"@yarn-tool/semver-diff": "^2.0.
|
|
46
|
-
"@yarn-tool/table": "^2.0.
|
|
47
|
-
"@yarn-tool/types": "^1.0.
|
|
45
|
+
"@yarn-tool/find-root": "^2.0.5",
|
|
46
|
+
"@yarn-tool/require-resolve": "^2.0.3",
|
|
47
|
+
"@yarn-tool/semver-diff": "^2.0.5",
|
|
48
|
+
"@yarn-tool/table": "^2.0.5",
|
|
49
|
+
"@yarn-tool/types": "^1.0.10",
|
|
48
50
|
"lodash": "^4.17.21",
|
|
49
51
|
"path-is-same": "^1.0.19",
|
|
50
52
|
"ts-type": "^2.1.10",
|
|
51
53
|
"tslib": "^2",
|
|
52
54
|
"upath2": "^3.1.15",
|
|
53
|
-
"ws-pkg-list": "^2.0.
|
|
55
|
+
"ws-pkg-list": "^2.0.5",
|
|
54
56
|
"yargs": "*"
|
|
55
57
|
},
|
|
56
58
|
"peerDependencies": {
|
|
@@ -59,5 +61,5 @@
|
|
|
59
61
|
"publishConfig": {
|
|
60
62
|
"access": "public"
|
|
61
63
|
},
|
|
62
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "150365d3846067505842c6503564abe98ebe508d"
|
|
63
65
|
}
|