@weapp-core/init 6.0.6 → 6.0.7

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -662,7 +662,7 @@ async function initTsJsonFiles(options) {
662
662
  }
663
663
  //#endregion
664
664
  //#region ../../packages/weapp-vite/package.json
665
- var version = "6.13.4";
665
+ var version = "6.15.5";
666
666
  //#endregion
667
667
  //#region src/npm.ts
668
668
  /**
@@ -855,7 +855,7 @@ async function createOrUpdateProjectConfig(options) {
855
855
  ensurePackNpmRelationList(projectConfig);
856
856
  ctx.projectConfig.value = projectConfig;
857
857
  if (write) {
858
- await writeJsonFile(outputPath, projectConfig);
858
+ await writeFile(outputPath, JSON.stringify(projectConfig, null, 2));
859
859
  logger.log(`✨ 写入 ${posix.relative(root, outputPath)} 成功!`);
860
860
  }
861
861
  return projectConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-core/init",
3
3
  "type": "module",
4
- "version": "6.0.6",
4
+ "version": "6.0.7",
5
5
  "description": "@weapp-core/init",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",