cmyr-template-cli 1.19.2 → 1.19.4

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
@@ -427,7 +427,7 @@ async function initYarn(projectPath, answers) {
427
427
  }
428
428
  }
429
429
  async function initTsconfig(projectPath) {
430
- var _a;
430
+ var _a, _b;
431
431
  try {
432
432
  const tsconfigPath = path__default["default"].join(projectPath, 'tsconfig.json');
433
433
  if (await fs__default["default"].pathExists(tsconfigPath)) {
@@ -444,6 +444,11 @@ async function initTsconfig(projectPath) {
444
444
  const newPkg = Object.assign({}, pkg, pkgData);
445
445
  await saveProjectJson(projectPath, newPkg);
446
446
  }
447
+ if (typeof ((_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.watch) === 'boolean') {
448
+ const newTsconfig = lodash.cloneDeep(tsconfig);
449
+ newTsconfig.compilerOptions.watch = undefined;
450
+ await fs__default["default"].writeFile(tsconfigPath, JSON.stringify(newTsconfig, null, 4));
451
+ }
447
452
  }
448
453
  }
449
454
  catch (error) {
@@ -1285,8 +1290,8 @@ module.exports = function (plop) {
1285
1290
  },
1286
1291
  {
1287
1292
  type: 'confirm',
1288
- name: 'isEnableAfdian',
1289
- message: '是否启用爱发电 ?',
1293
+ name: 'isEnableSupport',
1294
+ message: '是否启用赞助支持 ?',
1290
1295
  default: false,
1291
1296
  when(answers) {
1292
1297
  return answers.isOpenSource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.19.2",
3
+ "version": "1.19.4",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",
@@ -46,15 +46,15 @@
46
46
  "@types/lodash": "^4.14.165",
47
47
  "@types/node": "^20.0.0",
48
48
  "@types/promise.any": "^2.0.0",
49
- "@typescript-eslint/eslint-plugin": "^4.9.0",
50
- "@typescript-eslint/parser": "^4.9.0",
49
+ "@typescript-eslint/eslint-plugin": "5.59.11",
50
+ "@typescript-eslint/parser": "5.59.11",
51
51
  "commitizen": "^4.2.2",
52
- "conventional-changelog-cli": "^2.1.1",
52
+ "conventional-changelog-cli": "^3.0.0",
53
53
  "conventional-changelog-cmyr-config": "^2.0.2",
54
54
  "cross-env": "^7.0.2",
55
55
  "cz-conventional-changelog-cmyr": "^1.0.0",
56
56
  "debug": "^4.3.1",
57
- "eslint": "^7.14.0",
57
+ "eslint": "8.42.0",
58
58
  "eslint-config-cmyr": "^1.1.27",
59
59
  "husky": "^8.0.1",
60
60
  "lint-staged": "^13.0.0",
@@ -24,6 +24,8 @@ jobs:
24
24
  with:
25
25
  path: |
26
26
  ~/.npm
27
+ ~/.yarn
28
+ ~/.cache/pnpm
27
29
  ~/cache
28
30
  !~/cache/exclude
29
31
  **/node_modules
@@ -1,5 +1,8 @@
1
1
  name: Test
2
- on: [push, pull_request]
2
+ on:
3
+ push:
4
+ pull_request:
5
+ workflow_dispatch:
3
6
  jobs:
4
7
  test:
5
8
  name: Test
@@ -19,6 +22,8 @@ jobs:
19
22
  with:
20
23
  path: |
21
24
  ~/.npm
25
+ ~/.yarn
26
+ ~/.cache/pnpm
22
27
  ~/cache
23
28
  !~/cache/exclude
24
29
  **/node_modules
@@ -30,9 +30,9 @@
30
30
  <% if (devCommand) { -%>
31
31
  3. 运行开发环境
32
32
 
33
- ```sh
34
- <%= devCommand %>
35
- ```
33
+ ```sh
34
+ <%= devCommand %>
35
+ ```
36
36
  <% } -%>
37
37
 
38
38
  ## 问题和功能请求
@@ -138,14 +138,18 @@
138
138
  ## 💰 支持
139
139
 
140
140
  如果觉得这个项目有用的话请给一颗⭐️,非常感谢
141
- <% if (isEnableAfdian) { -%>
141
+ <% if (isEnableSupport) { -%>
142
142
 
143
143
  <a href="https://afdian.net/@<%= authorName %>">
144
- <img src="https://cdn.jsdelivr.net/gh/CaoMeiYouRen/image-hosting-01@master/images/202112181214695.png">
144
+ <img src="https://cdn.jsdelivr.net/gh/CaoMeiYouRen/image-hosting-01@master/images/202112181214695.png" width="312px" >
145
145
  </a>
146
- <% } -%>
147
146
 
147
+ <a href="https://patreon.com/<%= authorName %>">
148
+ <img src="https://cdn.jsdelivr.net/gh/CaoMeiYouRen/image-hosting-01@master/images/202306142054108.svg" width="312px" height="78px" />
149
+ </a>
150
+ <% } -%>
148
151
  <% if (isEnableStarHistory) { -%>
152
+
149
153
  ## 🌟 Star History
150
154
 
151
155
  [![Star History Chart](https://api.star-history.com/svg?repos=<%= authorGithubUsername %>/<%= projectName %>&type=Date)](https://star-history.com/#<%= authorGithubUsername %>/<%= projectName %>&Date)