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