@cabloy/cli 3.1.14 → 3.1.18

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/index.js CHANGED
@@ -884,7 +884,7 @@ class LocalTemplate {
884
884
  // save
885
885
  fs.writeFileSync(targetFile, result);
886
886
  // format
887
- if (changed && !this.context.argv.noformat) {
887
+ if (changed) {
888
888
  await catchError(() => {
889
889
  return this.helper.formatFile({
890
890
  fileName: targetFile,
@@ -1013,7 +1013,7 @@ class LocalTemplate {
1013
1013
  // save
1014
1014
  fs.writeFileSync(targetFile, outputCode);
1015
1015
  // format
1016
- if (snippet.format || !this.context.argv.noformat) {
1016
+ if (snippet.format !== false) {
1017
1017
  await catchError(() => {
1018
1018
  return this.helper.formatFile({
1019
1019
  fileName: targetFile,
@@ -6,7 +6,6 @@ export interface ICommandArgv {
6
6
  dummy: boolean;
7
7
  ci: boolean;
8
8
  nometadata: boolean;
9
- noformat: boolean;
10
9
  _: string[];
11
10
  }
12
11
  export interface ICommandContext {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/cli",
3
- "version": "3.1.14",
4
- "gitHead": "77e7d321e21482a08f743d441a017f3fb7be43cc",
3
+ "version": "3.1.18",
4
+ "gitHead": "ca10457f38716ad28bf5918dd67c85dd1f7dc9d0",
5
5
  "description": "@cabloy/cli",
6
6
  "keywords": [
7
7
  "cabloy-cli",
@@ -28,17 +28,17 @@
28
28
  },
29
29
  "scripts": {
30
30
  "clean": "rimraf dist tsconfig.tsbuildinfo",
31
- "tsc:publish": "npm run clean && vona :bin:buildGeneral && tsc",
31
+ "tsc:publish": "npm run clean && node ../cli/src/bin/vona.ts :bin:buildGeneral && tsc",
32
32
  "prepublishOnly": "npm run tsc:publish",
33
33
  "prepack": "clean-package",
34
34
  "postpack": "clean-package restore"
35
35
  },
36
36
  "dependencies": {
37
37
  "@babel/parser": "^7.29.2",
38
- "@cabloy/module-glob": "^5.3.10",
38
+ "@cabloy/module-glob": "^5.3.13",
39
39
  "@cabloy/module-info": "^2.0.0",
40
- "@cabloy/process-helper": "^3.1.5",
41
- "@cabloy/utils": "^2.1.19",
40
+ "@cabloy/process-helper": "^3.1.8",
41
+ "@cabloy/utils": "^2.1.22",
42
42
  "@cabloy/word-utils": "^2.1.8",
43
43
  "@npmcli/config": "^10.8.1",
44
44
  "@zhennann/common-bin": "^4.0.1",
@@ -54,7 +54,7 @@
54
54
  "is-type-of": "^2.2.0",
55
55
  "istextorbinary": "^3.3.0",
56
56
  "semver": "^7.7.4",
57
- "tmp": "^0.2.5",
57
+ "tmp": "^0.2.7",
58
58
  "urllib": "^4.9.0"
59
59
  }
60
60
  }