e2sm 0.4.0 → 0.4.2

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.mjs +4 -3
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -3013,7 +3013,7 @@ BUILT_IN_PREFIX.codePointAt(0);
3013
3013
 
3014
3014
  //#endregion
3015
3015
  //#region package.json
3016
- var version = "0.4.0";
3016
+ var version = "0.4.2";
3017
3017
 
3018
3018
  //#endregion
3019
3019
  //#region src/lib.ts
@@ -3085,10 +3085,11 @@ function parseEnvContent(content) {
3085
3085
  async function loadConfig() {
3086
3086
  const { homedir } = await import("node:os");
3087
3087
  const { join } = await import("node:path");
3088
+ const { readFile: readFile$1 } = await import("node:fs/promises");
3088
3089
  const candidates = [join(process.cwd(), ".e2smrc.json"), join(homedir(), ".e2smrc.json")];
3089
3090
  for (const filePath of candidates) try {
3090
- const file = Bun.file(filePath);
3091
- if (await file.exists()) return await file.json();
3091
+ const content = await readFile$1(filePath, "utf-8");
3092
+ return JSON.parse(content);
3092
3093
  } catch {}
3093
3094
  return {};
3094
3095
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "e2sm",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "license": "MIT",
5
5
  "author": "mfyuu",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "test": "bun test",
33
33
  "changeset": "changeset",
34
34
  "version": "changeset version",
35
- "release": "changeset publish"
35
+ "release": "bun run build && changeset publish"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@changesets/changelog-github": "^0.5.2",