vona-cli-set-api 1.0.459 → 1.0.464

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.
@@ -70,6 +70,7 @@ src/backend/typing/mine.d.ts
70
70
 
71
71
  # package-lock.json
72
72
  # yarn.lock
73
+ # pnpm-lock.yaml
73
74
 
74
75
  .vscode/sftp.json
75
76
  .sync-config.cson
@@ -23,7 +23,7 @@
23
23
  "node": ">=24.1.0"
24
24
  },
25
25
  "scripts": {
26
- "init": "pnpm install --no-frozen-lockfile && npm run prerun && pnpm install --no-frozen-lockfile && pnpm dedupe",
26
+ "init": "pnpm install --no-frozen-lockfile && npm run prerun",
27
27
  "play": "vona :bin:play --flavor=play --dummy",
28
28
  "db:reset": "npm run prerun && vona :bin:dbReset --flavor=normal",
29
29
  "dev": "npm run prerun && vona :bin:dev --workers=2 --flavor=normal",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "react": "^19.2.3",
50
- "vona": "^5.0.258"
50
+ "vona": "^5.0.261"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@cabloy/lint": "^5.0.16",
package/dist/index.js CHANGED
@@ -2040,6 +2040,8 @@ class CliToolsDeps extends BeanCliBase {
2040
2040
  await this._generate(projectPath);
2041
2041
  }
2042
2042
  async _generate(projectPath) {
2043
+ // generate zovaRest
2044
+ await this._generateZovaRest(projectPath);
2043
2045
  // generate package.json
2044
2046
  await this.common._generatePackageJson(projectPath);
2045
2047
  // generate type modules file
@@ -2065,6 +2067,33 @@ class CliToolsDeps extends BeanCliBase {
2065
2067
  await fse.copyFile(fileTemplate, fileConfig);
2066
2068
  }
2067
2069
  }
2070
+ async _generateZovaRest(projectPath) {
2071
+ const targetDir = path.join(projectPath, 'zovaRest');
2072
+ for (const module of this.modulesMeta.modulesArray) {
2073
+ const moduleZovaRest = path.join(module.root, 'zovaRest');
2074
+ if (!fse.existsSync(moduleZovaRest)) continue;
2075
+ const bundles = await globby('*', {
2076
+ cwd: moduleZovaRest,
2077
+ onlyDirectories: true
2078
+ });
2079
+ for (const bundle of bundles) {
2080
+ const moduleZovaRestSrc = path.join(moduleZovaRest, bundle);
2081
+ const moduleZovaRestDest = path.join(targetDir, bundle);
2082
+ let needCopy = true;
2083
+ if (fse.existsSync(moduleZovaRestDest)) {
2084
+ const statDest = await fse.stat(path.join(moduleZovaRestDest, 'package.json'));
2085
+ const statSrc = await fse.stat(path.join(moduleZovaRestSrc, 'package.json'));
2086
+ if (statDest.mtimeMs >= statSrc.mtimeMs) {
2087
+ needCopy = false;
2088
+ }
2089
+ }
2090
+ if (!needCopy) continue;
2091
+ await fse.copy(moduleZovaRestSrc, moduleZovaRestDest, {
2092
+ preserveTimestamps: true
2093
+ });
2094
+ }
2095
+ }
2096
+ }
2068
2097
  }
2069
2098
 
2070
2099
  function checkIgnoreOfParts(parts) {
@@ -2739,22 +2768,24 @@ export { ScopeModule${relativeNameCapitalize} as ScopeModule } from './index.ts'
2739
2768
  return pkg;
2740
2769
  }
2741
2770
  // cli
2742
- const cli = path.join(modulePath, 'cli');
2743
- if (fse.existsSync(cli)) {
2744
- pkg = await _loadPkg();
2745
- const index = pkg.files.indexOf('cli');
2746
- if (index === -1) {
2747
- changed = true;
2748
- pkg.files.push('cli');
2749
- }
2750
- if (pkg.scripts['tsc:publish'].includes('tsconfig.cli.json')) {
2751
- const index = pkg.files.indexOf('dist-cli');
2771
+ for (const name of ['cli', 'zovaRest']) {
2772
+ const cli = path.join(modulePath, name);
2773
+ if (fse.existsSync(cli)) {
2774
+ pkg = await _loadPkg();
2775
+ const index = pkg.files.indexOf(name);
2752
2776
  if (index === -1) {
2753
2777
  changed = true;
2754
- pkg.files.push('dist-cli');
2778
+ pkg.files.push(name);
2755
2779
  }
2756
2780
  }
2757
2781
  }
2782
+ if (pkg.scripts['tsc:publish'].includes('tsconfig.cli.json')) {
2783
+ const index = pkg.files.indexOf('dist-cli');
2784
+ if (index === -1) {
2785
+ changed = true;
2786
+ pkg.files.push('dist-cli');
2787
+ }
2788
+ }
2758
2789
  // save
2759
2790
  if (changed) {
2760
2791
  await saveJSONFile(pkgFile, pkg);
@@ -9,4 +9,5 @@ export declare class CliToolsDeps extends BeanCliBase {
9
9
  _getProjectMode(projectPath: string): "source" | "project";
10
10
  _getVonaPath(projectPath: string): string | undefined;
11
11
  _generateTypeProjectFile(projectPath: string): Promise<void>;
12
+ _generateZovaRest(projectPath: string): Promise<void>;
12
13
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
3
  "type": "module",
4
- "version": "1.0.459",
4
+ "version": "1.0.464",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,13 +33,13 @@
33
33
  "@babel/plugin-proposal-decorators": "^7.25.9",
34
34
  "@babel/plugin-transform-class-properties": "^7.25.9",
35
35
  "@babel/plugin-transform-typescript": "^7.26.8",
36
- "@cabloy/cli": "^3.0.84",
36
+ "@cabloy/cli": "^3.0.87",
37
37
  "@cabloy/dotenv": "^1.1.12",
38
38
  "@cabloy/extend": "^3.1.11",
39
- "@cabloy/module-glob": "^5.2.43",
40
- "@cabloy/module-info": "^1.3.32",
41
- "@cabloy/utils": "^2.0.8",
42
- "@cabloy/word-utils": "^2.0.1",
39
+ "@cabloy/module-glob": "^5.2.46",
40
+ "@cabloy/module-info": "^1.3.33",
41
+ "@cabloy/utils": "^2.0.11",
42
+ "@cabloy/word-utils": "^2.0.2",
43
43
  "@lcov-viewer/cli": "^1.3.0",
44
44
  "@rollup/plugin-alias": "^5.1.1",
45
45
  "@rollup/plugin-babel": "^6.0.4",
@@ -50,7 +50,7 @@
50
50
  "@rollup/plugin-terser": "^0.4.4",
51
51
  "@rollup/plugin-typescript": "^12.3.0",
52
52
  "babel-plugin-transform-typescript-metadata": "^0.3.2",
53
- "babel-plugin-vona-bean-module": "^1.0.1",
53
+ "babel-plugin-vona-bean-module": "^1.0.4",
54
54
  "chalk": "^3.0.0",
55
55
  "cli-table3": "^0.6.5",
56
56
  "compressing": "^1.10.0",
@@ -65,7 +65,7 @@
65
65
  "ts-node-maintained": "^10.9.6",
66
66
  "urllib": "^4.6.11",
67
67
  "uuid": "^11.1.0",
68
- "vona-core": "^5.0.119",
68
+ "vona-core": "^5.0.122",
69
69
  "why-is-node-running": "^3.2.2",
70
70
  "yargs-parser": "^22.0.0"
71
71
  },
@@ -18,9 +18,6 @@
18
18
  {
19
19
  "path": "packages-utils/json5"
20
20
  },
21
- {
22
- "path": "packages-utils/set"
23
- },
24
21
  {
25
22
  "path": "packages-utils/localeutil"
26
23
  },