cmyr-template-cli 1.32.0 → 1.32.2

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
@@ -1759,7 +1759,10 @@ module.exports = function (plop) {
1759
1759
  type: 'confirm',
1760
1760
  name: 'isInitRemoteRepo',
1761
1761
  message: '是否初始化远程 Git 仓库?',
1762
- default: false,
1762
+ default(answers) {
1763
+ const { isOpenSource } = answers;
1764
+ return isOpenSource;
1765
+ },
1763
1766
  },
1764
1767
  {
1765
1768
  type: 'input',
@@ -1841,7 +1844,7 @@ module.exports = function (plop) {
1841
1844
  name: 'isInitJest',
1842
1845
  message: '是否初始化 jest?',
1843
1846
  default(answers) {
1844
- return answers.isOpenSource;
1847
+ return answers.isPublishToNpm;
1845
1848
  },
1846
1849
  when(answers) {
1847
1850
  return answers.isOpenSource;
@@ -1890,7 +1893,9 @@ module.exports = function (plop) {
1890
1893
  type: 'confirm',
1891
1894
  name: 'isEnableStarHistory',
1892
1895
  message: '是否启用 Star History ?',
1893
- default: false,
1896
+ default(answers) {
1897
+ return answers.isOpenSource;
1898
+ },
1894
1899
  when(answers) {
1895
1900
  return answers.isOpenSource;
1896
1901
  },
@@ -1899,7 +1904,9 @@ module.exports = function (plop) {
1899
1904
  type: 'confirm',
1900
1905
  name: 'isEnableSupport',
1901
1906
  message: '是否启用赞助支持 ?',
1902
- default: false,
1907
+ default(answers) {
1908
+ return answers.isOpenSource;
1909
+ },
1903
1910
  when(answers) {
1904
1911
  return answers.isOpenSource;
1905
1912
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.32.0",
3
+ "version": "1.32.2",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",
@@ -45,8 +45,8 @@ jobs:
45
45
  - run: pnpm i --frozen-lockfile
46
46
  - run: pnpm run lint
47
47
  - run: pnpm run build
48
- - env:
49
- # GH_TOKEN: ${{ secrets.GH_TOKEN }}
50
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51
- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52
- run: pnpm run release
48
+ # - env:
49
+ # # GH_TOKEN: ${{ secrets.GH_TOKEN }}
50
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51
+ # # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52
+ # run: pnpm run release