@yarn-tool/changelog 2.0.9 → 2.0.12
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 +41 -0
- package/bin/changelog.js +7 -6
- package/bin/changelog.js.map +1 -1
- package/package.json +15 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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.12](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/changelog@2.0.11...@yarn-tool/changelog@2.0.12) (2022-09-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 📌 Dependencies
|
|
11
|
+
|
|
12
|
+
* update deps ([c552fa9](https://github.com/bluelovers/ws-yarn-workspaces/commit/c552fa925dbbb0e18f8dc5d0c783138c8c1fc363))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [2.0.11](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/changelog@2.0.10...@yarn-tool/changelog@2.0.11) (2022-09-06)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### ✨ Features
|
|
21
|
+
|
|
22
|
+
* add v8-compile-cache ([fc04829](https://github.com/bluelovers/ws-yarn-workspaces/commit/fc048297322ee9478b3ebd46667284ec3cb37e70))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### 📚 Documentation
|
|
26
|
+
|
|
27
|
+
* add directory ([442a552](https://github.com/bluelovers/ws-yarn-workspaces/commit/442a55232619f7fe2b9bad6f8eccfffc4f8f47d2))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### 📌 Dependencies
|
|
31
|
+
|
|
32
|
+
* update deps ([aeb5e41](https://github.com/bluelovers/ws-yarn-workspaces/commit/aeb5e416e8ea6c7d37ed7d38fedd6ff5c8c371df))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [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)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### 🔖 Miscellaneous
|
|
41
|
+
|
|
42
|
+
* . ([157d5dc](https://github.com/bluelovers/ws-yarn-workspaces/commit/157d5dc8959261d9326f6e633987182898ae9670))
|
|
43
|
+
* . ([dafc19c](https://github.com/bluelovers/ws-yarn-workspaces/commit/dafc19c43afb42c904b6e7dcc49d93567897c092))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
## [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
48
|
|
|
8
49
|
**Note:** Version bump only for package @yarn-tool/changelog
|
package/bin/changelog.js
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
require("v8-compile-cache");
|
|
5
6
|
const yargs_1 = tslib_1.__importDefault(require("yargs"));
|
|
6
|
-
const yargs_setting_1 =
|
|
7
|
-
const from_list_1 =
|
|
7
|
+
const yargs_setting_1 = require("../lib/yargs-setting");
|
|
8
|
+
const from_list_1 = require("../lib/lerna/from-list");
|
|
8
9
|
const table_1 = require("@yarn-tool/table");
|
|
9
|
-
const path_is_same_1 =
|
|
10
|
+
const path_is_same_1 = require("path-is-same");
|
|
10
11
|
const semver_diff_1 = require("@yarn-tool/semver-diff");
|
|
11
|
-
const argv = (0, yargs_setting_1.
|
|
12
|
+
const argv = (0, yargs_setting_1.setupToYargs)(yargs_1.default)
|
|
12
13
|
.option('cwd', {
|
|
13
14
|
default: process.cwd(),
|
|
14
15
|
normalize: true,
|
|
@@ -22,13 +23,13 @@ let options = {
|
|
|
22
23
|
tagPrefix: argv['tag-prefix'],
|
|
23
24
|
type: argv.type || (argv['lerna-package'] ? 'independent' : 'root'),
|
|
24
25
|
};
|
|
25
|
-
(0, from_list_1.
|
|
26
|
+
(0, from_list_1.updateChangelogByCwd)(argv.cwd, options)
|
|
26
27
|
.then(data => {
|
|
27
28
|
const table = (0, table_1.createDependencyTable)({
|
|
28
29
|
colAligns: ['left', 'left'],
|
|
29
30
|
});
|
|
30
31
|
table.push([`rootPath`, data.rootPath]);
|
|
31
|
-
if (!(0, path_is_same_1.
|
|
32
|
+
if (!(0, path_is_same_1.pathIsSame)(data.rootPath, data.cwd)) {
|
|
32
33
|
table.push([`targetPath`, data.cwd]);
|
|
33
34
|
}
|
|
34
35
|
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,4BAA0B;AAC1B,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,CAAC;KACD,cAAc,CAAC,IAAI,CAAC;KACpB,OAAO,EAAE;KACT,IAAI,EAAE;KACN,SAAS,EAAE,CACZ;AAED,IAAI,OAAO,GAAuD;IAEjE,eAAe,EAAE,IAAI,CAAC,MAAM;IAC5B,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC;IAE7B,IAAI,EAAE,IAAI,CAAC,I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AAC,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 'v8-compile-cache';\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.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/@yarn-tool/changelog#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/bluelovers/ws-yarn-workspaces.git"
|
|
11
|
+
"url": "git+https://github.com/bluelovers/ws-yarn-workspaces.git",
|
|
12
|
+
"directory": "packages/@yarn-tool/changelog"
|
|
12
13
|
},
|
|
13
14
|
"license": "ISC",
|
|
14
15
|
"author": "bluelovers",
|
|
@@ -25,7 +26,9 @@
|
|
|
25
26
|
"lint": "npx eslint **/*.ts",
|
|
26
27
|
"test": "echo \"Error: no test specified\"",
|
|
27
28
|
"test:jest": "jest --coverage",
|
|
29
|
+
"test:jest:snapshot": "yarn run test:jest -- -u",
|
|
28
30
|
"test:mocha": "npx mocha --require ts-node/register \"!(node_modules)/**/*.{test,spec}.{ts,tsx}\"",
|
|
31
|
+
"test:snapshot": "yarn run test -- -u",
|
|
29
32
|
"npm:publish": "npm publish",
|
|
30
33
|
"npm:publish:lerna": "lerna publish --yes --bump patch",
|
|
31
34
|
"preversion": "yarn run test",
|
|
@@ -39,18 +42,19 @@
|
|
|
39
42
|
},
|
|
40
43
|
"dependencies": {
|
|
41
44
|
"@bluelovers/conventional-changelog-bluelovers": "*",
|
|
42
|
-
"@lerna/conventional-commits": "^5.
|
|
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
|
+
"@lerna/conventional-commits": "^5.5.1",
|
|
46
|
+
"@yarn-tool/find-root": "^2.0.6",
|
|
47
|
+
"@yarn-tool/require-resolve": "^2.0.4",
|
|
48
|
+
"@yarn-tool/semver-diff": "^2.0.6",
|
|
49
|
+
"@yarn-tool/table": "^2.0.6",
|
|
50
|
+
"@yarn-tool/types": "^1.0.11",
|
|
48
51
|
"lodash": "^4.17.21",
|
|
49
52
|
"path-is-same": "^1.0.19",
|
|
50
53
|
"ts-type": "^2.1.10",
|
|
51
|
-
"tslib": "
|
|
54
|
+
"tslib": ">=2",
|
|
52
55
|
"upath2": "^3.1.15",
|
|
53
|
-
"
|
|
56
|
+
"v8-compile-cache": "^2.3.0",
|
|
57
|
+
"ws-pkg-list": "^2.0.6",
|
|
54
58
|
"yargs": "*"
|
|
55
59
|
},
|
|
56
60
|
"peerDependencies": {
|
|
@@ -59,5 +63,5 @@
|
|
|
59
63
|
"publishConfig": {
|
|
60
64
|
"access": "public"
|
|
61
65
|
},
|
|
62
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "5d2376805123a3e87de1fc5fd4938e1c5d2e4bf0"
|
|
63
67
|
}
|