cmyr-template-cli 1.20.0 → 1.20.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/plopfile.js CHANGED
@@ -47,6 +47,7 @@ var os__default = /*#__PURE__*/_interopDefaultLegacy(os);
47
47
  process.env;
48
48
  const PACKAGE_MANAGER = 'pnpm';
49
49
 
50
+ const fix = (markdown, rules) => { var _a, _b; return (_b = (_a = core.lintMarkdown(markdown, rules, true)) === null || _a === void 0 ? void 0 : _a.fixedResult) === null || _b === void 0 ? void 0 : _b.result; };
50
51
  axios__default["default"].defaults.timeout = 10 * 1000;
51
52
  if (!Promise.any) {
52
53
  Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('promise.any')); }).then((any) => {
@@ -666,6 +667,9 @@ async function initLicense(projectPath, projectInfos) {
666
667
  if (projectInfos.licenseName === 'MIT') {
667
668
  templatePath = path__default["default"].join(__dirname, '../templates/licenses/MIT');
668
669
  }
670
+ else if (projectInfos.licenseName === 'ISC') {
671
+ templatePath = path__default["default"].join(__dirname, '../templates/licenses/ISC');
672
+ }
669
673
  if (!templatePath) {
670
674
  loading.fail('无效的 LICENSE Name');
671
675
  return;
@@ -1042,7 +1046,7 @@ function lintMd(markdown) {
1042
1046
  'no-empty-code-lang': 0,
1043
1047
  'no-empty-inlinecode': 0,
1044
1048
  };
1045
- const fixed = core.fix(markdown, rules);
1049
+ const fixed = fix(markdown, rules);
1046
1050
  return fixed;
1047
1051
  }
1048
1052
  function sortKey(obj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "@typescript-eslint/parser": "6.7.0",
51
51
  "commitizen": "^4.2.2",
52
52
  "conventional-changelog-cli": "^4.0.0",
53
- "conventional-changelog-cmyr-config": "^2.1.0",
53
+ "conventional-changelog-cmyr-config": "^2.1.1",
54
54
  "cross-env": "^7.0.2",
55
55
  "cz-conventional-changelog-cmyr": "^1.0.0",
56
56
  "debug": "^4.3.1",
@@ -61,7 +61,7 @@
61
61
  "rimraf": "^5.0.0",
62
62
  "rollup": "^2.79.0",
63
63
  "rollup-plugin-terser": "^7.0.2",
64
- "semantic-release": "^21.0.0",
64
+ "semantic-release": "21.1.2",
65
65
  "ts-node": "^10.2.1",
66
66
  "ts-node-dev": "^2.0.0",
67
67
  "typescript": "^5.0.2"
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) <%= currentYear %> <%= authorName %>
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.