@nice-move/cli 0.11.0 → 0.11.1
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.mjs +1 -11
- package/dist/{node_modules_commitlint_rules_lib_trailer-exists_js.mjs → node_modules_commitlint_rules_lib_trailer-exists_js-node_modules_conventional-changelog-angul-37aae9.mjs} +15 -2
- package/dist/vendors-node_modules_commitlint_lint_lib_lint_js.mjs +109 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -814,16 +814,6 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_proces
|
|
|
814
814
|
|
|
815
815
|
/***/ }),
|
|
816
816
|
|
|
817
|
-
/***/ "conventional-changelog-angular":
|
|
818
|
-
/*!*************************************************!*\
|
|
819
|
-
!*** external "conventional-changelog-angular" ***!
|
|
820
|
-
\*************************************************/
|
|
821
|
-
/***/ ((module) => {
|
|
822
|
-
|
|
823
|
-
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("conventional-changelog-angular");
|
|
824
|
-
|
|
825
|
-
/***/ }),
|
|
826
|
-
|
|
827
817
|
/***/ "crypto":
|
|
828
818
|
/*!*************************!*\
|
|
829
819
|
!*** external "crypto" ***!
|
|
@@ -10068,7 +10058,7 @@ function readCommitMessage() {
|
|
|
10068
10058
|
async function linter() {
|
|
10069
10059
|
const commitMessage = await readCommitMessage();
|
|
10070
10060
|
|
|
10071
|
-
const lint = await Promise.all(/*! import() */[__webpack_require__.e("vendors-node_modules_commitlint_lint_lib_lint_js"), __webpack_require__.e("node_modules_commitlint_rules_lib_trailer-exists_js")]).then(__webpack_require__.t.bind(__webpack_require__, /*! @commitlint/lint */ "../../node_modules/@commitlint/lint/lib/lint.js", 19)).then(
|
|
10061
|
+
const lint = await Promise.all(/*! import() */[__webpack_require__.e("vendors-node_modules_commitlint_lint_lib_lint_js"), __webpack_require__.e("node_modules_commitlint_rules_lib_trailer-exists_js-node_modules_conventional-changelog-angul-37aae9")]).then(__webpack_require__.t.bind(__webpack_require__, /*! @commitlint/lint */ "../../node_modules/@commitlint/lint/lib/lint.js", 19)).then(
|
|
10072
10062
|
(io) => io.default.default || io.default,
|
|
10073
10063
|
);
|
|
10074
10064
|
const format = await __webpack_require__.e(/*! import() */ "vendors-node_modules_commitlint_format_lib_index_js").then(__webpack_require__.t.bind(__webpack_require__, /*! @commitlint/format */ "../../node_modules/@commitlint/format/lib/index.js", 19)).then(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const id = "node_modules_commitlint_rules_lib_trailer-exists_js";
|
|
2
|
-
export const ids = ["node_modules_commitlint_rules_lib_trailer-exists_js"];
|
|
1
|
+
export const id = "node_modules_commitlint_rules_lib_trailer-exists_js-node_modules_conventional-changelog-angul-37aae9";
|
|
2
|
+
export const ids = ["node_modules_commitlint_rules_lib_trailer-exists_js-node_modules_conventional-changelog-angul-37aae9"];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
5
|
/***/ "../../node_modules/@commitlint/rules/lib/trailer-exists.js":
|
|
@@ -13,6 +13,19 @@ export const modules = {
|
|
|
13
13
|
exports.trailerExists = undefined;
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
/***/ }),
|
|
17
|
+
|
|
18
|
+
/***/ "../../node_modules/conventional-changelog-angular/writer-opts.js":
|
|
19
|
+
/*!************************************************************************!*\
|
|
20
|
+
!*** ../../node_modules/conventional-changelog-angular/writer-opts.js ***!
|
|
21
|
+
\************************************************************************/
|
|
22
|
+
/***/ ((module) => {
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
module.exports = async () => ({});
|
|
27
|
+
|
|
28
|
+
|
|
16
29
|
/***/ })
|
|
17
30
|
|
|
18
31
|
};
|
|
@@ -477,7 +477,7 @@ function message(input = []) {
|
|
|
477
477
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
478
478
|
exports.parse = void 0;
|
|
479
479
|
const { sync } = __webpack_require__(/*! conventional-commits-parser */ "../../node_modules/conventional-commits-parser/index.js");
|
|
480
|
-
const defaultChangelogOpts = __webpack_require__(/*! conventional-changelog-angular */ "conventional-changelog-angular");
|
|
480
|
+
const defaultChangelogOpts = __webpack_require__(/*! conventional-changelog-angular */ "../../node_modules/conventional-changelog-angular/index.js");
|
|
481
481
|
async function parse(message, parser = sync, parserOpts) {
|
|
482
482
|
const defaultOpts = (await defaultChangelogOpts).parserOpts;
|
|
483
483
|
const opts = Object.assign(Object.assign(Object.assign({}, defaultOpts), { fieldPattern: null }), (parserOpts || {}));
|
|
@@ -1945,6 +1945,114 @@ var RuleConfigQuality;
|
|
|
1945
1945
|
})(RuleConfigQuality || (exports.RuleConfigQuality = RuleConfigQuality = {}));
|
|
1946
1946
|
//# sourceMappingURL=rules.js.map
|
|
1947
1947
|
|
|
1948
|
+
/***/ }),
|
|
1949
|
+
|
|
1950
|
+
/***/ "../../node_modules/conventional-changelog-angular/conventional-changelog.js":
|
|
1951
|
+
/*!***********************************************************************************!*\
|
|
1952
|
+
!*** ../../node_modules/conventional-changelog-angular/conventional-changelog.js ***!
|
|
1953
|
+
\***********************************************************************************/
|
|
1954
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
const parserOpts = __webpack_require__(/*! ./parser-opts */ "../../node_modules/conventional-changelog-angular/parser-opts.js")
|
|
1959
|
+
const writerOpts = __webpack_require__(/*! ./writer-opts */ "../../node_modules/conventional-changelog-angular/writer-opts.js")
|
|
1960
|
+
|
|
1961
|
+
module.exports = Promise.all([parserOpts, writerOpts])
|
|
1962
|
+
.then(([parserOpts, writerOpts]) => ({
|
|
1963
|
+
parserOpts,
|
|
1964
|
+
writerOpts
|
|
1965
|
+
}))
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
/***/ }),
|
|
1969
|
+
|
|
1970
|
+
/***/ "../../node_modules/conventional-changelog-angular/conventional-recommended-bump.js":
|
|
1971
|
+
/*!******************************************************************************************!*\
|
|
1972
|
+
!*** ../../node_modules/conventional-changelog-angular/conventional-recommended-bump.js ***!
|
|
1973
|
+
\******************************************************************************************/
|
|
1974
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
const parserOpts = __webpack_require__(/*! ./parser-opts */ "../../node_modules/conventional-changelog-angular/parser-opts.js")
|
|
1979
|
+
|
|
1980
|
+
module.exports = {
|
|
1981
|
+
parserOpts,
|
|
1982
|
+
|
|
1983
|
+
whatBump: (commits) => {
|
|
1984
|
+
let level = 2
|
|
1985
|
+
let breakings = 0
|
|
1986
|
+
let features = 0
|
|
1987
|
+
|
|
1988
|
+
commits.forEach(commit => {
|
|
1989
|
+
if (commit.notes.length > 0) {
|
|
1990
|
+
breakings += commit.notes.length
|
|
1991
|
+
level = 0
|
|
1992
|
+
} else if (commit.type === 'feat') {
|
|
1993
|
+
features += 1
|
|
1994
|
+
if (level === 2) {
|
|
1995
|
+
level = 1
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
})
|
|
1999
|
+
|
|
2000
|
+
return {
|
|
2001
|
+
level: level,
|
|
2002
|
+
reason: breakings === 1
|
|
2003
|
+
? `There is ${breakings} BREAKING CHANGE and ${features} features`
|
|
2004
|
+
: `There are ${breakings} BREAKING CHANGES and ${features} features`
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
/***/ }),
|
|
2011
|
+
|
|
2012
|
+
/***/ "../../node_modules/conventional-changelog-angular/index.js":
|
|
2013
|
+
/*!******************************************************************!*\
|
|
2014
|
+
!*** ../../node_modules/conventional-changelog-angular/index.js ***!
|
|
2015
|
+
\******************************************************************/
|
|
2016
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
const conventionalChangelog = __webpack_require__(/*! ./conventional-changelog */ "../../node_modules/conventional-changelog-angular/conventional-changelog.js")
|
|
2020
|
+
const parserOpts = __webpack_require__(/*! ./parser-opts */ "../../node_modules/conventional-changelog-angular/parser-opts.js")
|
|
2021
|
+
const recommendedBumpOpts = __webpack_require__(/*! ./conventional-recommended-bump */ "../../node_modules/conventional-changelog-angular/conventional-recommended-bump.js")
|
|
2022
|
+
const writerOpts = __webpack_require__(/*! ./writer-opts */ "../../node_modules/conventional-changelog-angular/writer-opts.js")
|
|
2023
|
+
|
|
2024
|
+
module.exports = Promise.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts])
|
|
2025
|
+
.then(([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) => ({
|
|
2026
|
+
conventionalChangelog,
|
|
2027
|
+
parserOpts,
|
|
2028
|
+
recommendedBumpOpts,
|
|
2029
|
+
writerOpts
|
|
2030
|
+
}))
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
/***/ }),
|
|
2034
|
+
|
|
2035
|
+
/***/ "../../node_modules/conventional-changelog-angular/parser-opts.js":
|
|
2036
|
+
/*!************************************************************************!*\
|
|
2037
|
+
!*** ../../node_modules/conventional-changelog-angular/parser-opts.js ***!
|
|
2038
|
+
\************************************************************************/
|
|
2039
|
+
/***/ ((module) => {
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
module.exports = {
|
|
2044
|
+
headerPattern: /^(\w*)(?:\((.*)\))?: (.*)$/,
|
|
2045
|
+
headerCorrespondence: [
|
|
2046
|
+
'type',
|
|
2047
|
+
'scope',
|
|
2048
|
+
'subject'
|
|
2049
|
+
],
|
|
2050
|
+
noteKeywords: ['BREAKING CHANGE'],
|
|
2051
|
+
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
2052
|
+
revertCorrespondence: ['header', 'hash']
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
|
|
1948
2056
|
/***/ }),
|
|
1949
2057
|
|
|
1950
2058
|
/***/ "../../node_modules/conventional-commits-parser/index.js":
|