@weapp-core/init 6.0.6 → 6.0.8

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 +4 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import process$1 from "node:process";
2
2
  import logger from "@weapp-core/logger";
3
- import { defu, fs, get, set } from "@weapp-core/shared";
3
+ import { fs } from "@weapp-core/shared/node";
4
+ import { defu, get, set } from "@weapp-core/shared";
4
5
  import https from "node:https";
5
6
  //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
6
7
  let _lazyMatch = () => {
@@ -662,7 +663,7 @@ async function initTsJsonFiles(options) {
662
663
  }
663
664
  //#endregion
664
665
  //#region ../../packages/weapp-vite/package.json
665
- var version = "6.13.4";
666
+ var version = "6.15.8";
666
667
  //#endregion
667
668
  //#region src/npm.ts
668
669
  /**
@@ -855,7 +856,7 @@ async function createOrUpdateProjectConfig(options) {
855
856
  ensurePackNpmRelationList(projectConfig);
856
857
  ctx.projectConfig.value = projectConfig;
857
858
  if (write) {
858
- await writeJsonFile(outputPath, projectConfig);
859
+ await writeFile(outputPath, JSON.stringify(projectConfig, null, 2));
859
860
  logger.log(`✨ 写入 ${posix.relative(root, outputPath)} 成功!`);
860
861
  }
861
862
  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.8",
5
5
  "description": "@weapp-core/init",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@weapp-core/logger": "^3.1.1",
43
- "@weapp-core/shared": "^3.0.3"
43
+ "@weapp-core/shared": "^3.0.4"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "tsdown -w --sourcemap",