zova-cli-set-front 1.2.106 → 1.2.108

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
@@ -281,6 +281,7 @@ class CliBinBuildRest extends BeanCliBase {
281
281
  const templateDir = this.template.resolveTemplatePath(__ThisSetName__, 'rest');
282
282
  // render
283
283
  await this.template.renderDir(srcDir, templateDir);
284
+ context.packageJson = await loadJSONFile(path.join(srcDir, 'package.json'));
284
285
  }
285
286
  async _buildTs({
286
287
  srcDir,
@@ -355,8 +356,8 @@ class CliBinBuildRest extends BeanCliBase {
355
356
  projectPath,
356
357
  flavor,
357
358
  bundleNameCopy,
358
- srcDir,
359
- outDir
359
+ outDir,
360
+ packageJson
360
361
  } = buildContext;
361
362
  // build
362
363
  await this._buildTs(buildContext);
@@ -365,8 +366,10 @@ class CliBinBuildRest extends BeanCliBase {
365
366
  const deps = await _extractDeps(path.join(outDir, 'index.d.mts'));
366
367
  const depsVersion = await _extractDepsVersion(projectPath, deps);
367
368
  // package.json
368
- const pkgContent = await loadJSONFile(path.join(srcDir, 'package.json'));
369
- pkgContent.dependencies = depsVersion;
369
+ const pkgContent = {
370
+ ...packageJson,
371
+ dependencies: depsVersion
372
+ };
370
373
  await saveJSONFile$1(path.join(outDir, 'package.json'), pkgContent);
371
374
  // await fse.copyFile(path.join(srcDir, 'package.json'), path.join(outDir, 'package.json'));
372
375
  // release
@@ -8,6 +8,12 @@ declare module '@cabloy/cli' {
8
8
  Version: string;
9
9
  }
10
10
  }
11
+ interface IBinBuildRestPackageJson {
12
+ name: string;
13
+ version: string;
14
+ dependencies?: Record<string, string>;
15
+ [key: string]: unknown;
16
+ }
11
17
  interface IBinBuildRestContext {
12
18
  projectPath: string;
13
19
  flavor: ZovaMetaFlavor;
@@ -17,6 +23,7 @@ interface IBinBuildRestContext {
17
23
  outDir: string;
18
24
  bundleModules?: string[];
19
25
  sideEffectImportModuleNames?: string[];
26
+ packageJson?: IBinBuildRestPackageJson;
20
27
  }
21
28
  export declare class CliBinBuildRest extends BeanCliBase {
22
29
  execute(): Promise<void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-cli-set-front",
3
- "version": "1.2.106",
4
- "gitHead": "b77e76c1a25df7b0f95d7e675c2eda7dc4c7299e",
3
+ "version": "1.2.108",
4
+ "gitHead": "b88abae0ef9cbe59388093d012c1193d5fa14175",
5
5
  "description": "zova cli-set-front",
6
6
  "keywords": [
7
7
  "framework",
@@ -49,7 +49,7 @@
49
49
  "babel-plugin-transform-typescript-metadata": "^0.4.0",
50
50
  "babel-plugin-zova-bean-module": "^1.2.15",
51
51
  "babel-plugin-zova-bean-use": "^1.1.15",
52
- "babel-plugin-zova-behavior": "^1.1.15",
52
+ "babel-plugin-zova-behavior": "^1.1.16",
53
53
  "babel-plugin-zova-component": "^1.1.15",
54
54
  "compressing": "^1.10.0",
55
55
  "fs-extra": "^11.3.5",
@@ -65,6 +65,6 @@
65
65
  "vite": "^8.0.14",
66
66
  "yaml": "^2.8.3",
67
67
  "zova-openapi": "^1.1.17",
68
- "zova-vite": "^1.1.45"
68
+ "zova-vite": "^1.1.46"
69
69
  }
70
70
  }