feima-shortcuts 0.3.0-beta.0 → 0.3.0-beta.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/bin/feima.js CHANGED
@@ -2,6 +2,8 @@
2
2
  const inquirer = require("inquirer");
3
3
  const { Command } = require('commander')
4
4
  const feima = require("../src/generate");
5
+
6
+ const checkLocale = require('../src/scripts/check-locale')
5
7
  const { version } = require("../package.json"); // 读取 package.json 中的版本号
6
8
 
7
9
  const program = new Command()
@@ -14,7 +16,7 @@ program
14
16
  .command('check-locale')
15
17
  .description('检查未使用的 locale')
16
18
  .action(() => {
17
- require('../src/scripts/check-locale')
19
+ checkLocale.run();
18
20
  })
19
21
 
20
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feima-shortcuts",
3
- "version": "0.3.0-beta.0",
3
+ "version": "0.3.0-beta.1",
4
4
  "description": "快捷指令",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -19,7 +19,9 @@
19
19
  "commander": "^5.1.0",
20
20
  "download-git-repo": "^3.0.2",
21
21
  "fs-extra": "^9.0.1",
22
+ "glob": "^13.0.0",
22
23
  "inquirer": "^7.3.0",
24
+ "typescript": "^5.9.3",
23
25
  "uuid": "^9.0.0"
24
26
  },
25
27
  "packageManager": "pnpm@10.6.3+sha512.bb45e34d50a9a76e858a95837301bfb6bd6d35aea2c5d52094fa497a467c43f5c440103ce2511e9e0a2f89c3d6071baac3358fc68ac6fb75e2ceb3d2736065e6"
@@ -203,15 +203,11 @@ function run() {
203
203
  })
204
204
 
205
205
  if (hasError) {
206
- console.log('\n❗ locale 治理未通过')
206
+ console.log('\n❗ locale 检查未通过')
207
207
  process.exit(1)
208
208
  } else {
209
- console.log('\n✅ locale 治理通过')
209
+ console.log('\n✅ locale 检查通过')
210
210
  }
211
211
  }
212
212
 
213
- if (require.main === module) {
214
- run()
215
- }
216
-
217
- module.exports = run
213
+ exports.run = run