vona-cli-set-api 1.0.459 → 1.0.466
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/cli/templates/create/project/basic/boilerplate/_.gitignore +1 -0
- package/cli/templates/create/project/basic/boilerplate/package.original.json +2 -2
- package/dist/index.js +41 -9
- package/dist/lib/bean/cli.tools.deps.d.ts +1 -0
- package/package.json +8 -8
- package/templates/config/_tsconfig_source.json +0 -3
|
@@ -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
|
|
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.
|
|
50
|
+
"vona": "^5.0.262"
|
|
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,19 +2768,22 @@ export { ScopeModule${relativeNameCapitalize} as ScopeModule } from './index.ts'
|
|
|
2739
2768
|
return pkg;
|
|
2740
2769
|
}
|
|
2741
2770
|
// cli
|
|
2742
|
-
const
|
|
2743
|
-
|
|
2771
|
+
for (const name of ['cli', 'zovaRest']) {
|
|
2772
|
+
const pathCheck = path.join(modulePath, name);
|
|
2773
|
+
if (!fse.existsSync(pathCheck)) continue;
|
|
2744
2774
|
pkg = await _loadPkg();
|
|
2745
|
-
const index = pkg.files.indexOf(
|
|
2775
|
+
const index = pkg.files.indexOf(name);
|
|
2746
2776
|
if (index === -1) {
|
|
2747
2777
|
changed = true;
|
|
2748
|
-
pkg.files.push(
|
|
2778
|
+
pkg.files.push(name);
|
|
2749
2779
|
}
|
|
2750
|
-
if (
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2780
|
+
if (name === 'cli') {
|
|
2781
|
+
if (pkg.scripts?.['tsc:publish'].includes('tsconfig.cli.json')) {
|
|
2782
|
+
const index = pkg.files.indexOf('dist-cli');
|
|
2783
|
+
if (index === -1) {
|
|
2784
|
+
changed = true;
|
|
2785
|
+
pkg.files.push('dist-cli');
|
|
2786
|
+
}
|
|
2755
2787
|
}
|
|
2756
2788
|
}
|
|
2757
2789
|
}
|
|
@@ -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.
|
|
4
|
+
"version": "1.0.466",
|
|
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.
|
|
36
|
+
"@cabloy/cli": "^3.0.88",
|
|
37
37
|
"@cabloy/dotenv": "^1.1.12",
|
|
38
38
|
"@cabloy/extend": "^3.1.11",
|
|
39
|
-
"@cabloy/module-glob": "^5.2.
|
|
40
|
-
"@cabloy/module-info": "^1.3.
|
|
41
|
-
"@cabloy/utils": "^2.0.
|
|
42
|
-
"@cabloy/word-utils": "^2.0.
|
|
39
|
+
"@cabloy/module-glob": "^5.2.47",
|
|
40
|
+
"@cabloy/module-info": "^1.3.34",
|
|
41
|
+
"@cabloy/utils": "^2.0.12",
|
|
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.
|
|
53
|
+
"babel-plugin-vona-bean-module": "^1.0.5",
|
|
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.
|
|
68
|
+
"vona-core": "^5.0.123",
|
|
69
69
|
"why-is-node-running": "^3.2.2",
|
|
70
70
|
"yargs-parser": "^22.0.0"
|
|
71
71
|
},
|