@akanjs/devkit 0.0.116 → 0.0.118

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.
@@ -57,11 +57,6 @@ class Builder {
57
57
  platform: this.#pkgJson.esbuild?.platform,
58
58
  format,
59
59
  outdir: `${this.#distExecutor.cwdPath}/${format}`,
60
- // outdir: this.#distExecutor.cwdPath,
61
- // outExtension: { ".js": format === "cjs" ? ".js" : ".esm.js" },
62
- // format === "cjs"
63
- // ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" }
64
- // : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
65
60
  logLevel: "error"
66
61
  };
67
62
  }
@@ -102,13 +97,12 @@ class Builder {
102
97
  require: "./cjs/index.js",
103
98
  import: "./esm/index.js",
104
99
  types: "./index.d.ts"
105
- // require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
106
- // import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
107
100
  }
108
101
  }
109
102
  };
110
103
  buildResult.outputFiles.map((file) => this.#distExecutor.writeFile(file.path, file.text));
111
104
  this.#distExecutor.writeJson("package.json", pkgPackageJson);
105
+ this.#executor.writeJson("package.json", pkgPackageJson);
112
106
  }
113
107
  }
114
108
  // Annotate the CommonJS export names for ESM import in node:
@@ -25,11 +25,6 @@ class Builder {
25
25
  platform: this.#pkgJson.esbuild?.platform,
26
26
  format,
27
27
  outdir: `${this.#distExecutor.cwdPath}/${format}`,
28
- // outdir: this.#distExecutor.cwdPath,
29
- // outExtension: { ".js": format === "cjs" ? ".js" : ".esm.js" },
30
- // format === "cjs"
31
- // ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" }
32
- // : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
33
28
  logLevel: "error"
34
29
  };
35
30
  }
@@ -70,13 +65,12 @@ class Builder {
70
65
  require: "./cjs/index.js",
71
66
  import: "./esm/index.js",
72
67
  types: "./index.d.ts"
73
- // require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
74
- // import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
75
68
  }
76
69
  }
77
70
  };
78
71
  buildResult.outputFiles.map((file) => this.#distExecutor.writeFile(file.path, file.text));
79
72
  this.#distExecutor.writeJson("package.json", pkgPackageJson);
73
+ this.#executor.writeJson("package.json", pkgPackageJson);
80
74
  }
81
75
  }
82
76
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.116",
4
- "type": "commonjs",
3
+ "version": "0.0.118",
4
+ "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -52,7 +52,7 @@ export declare class WorkspaceExecutor extends Executor {
52
52
  getBaseDevEnv(): {
53
53
  repoName: string;
54
54
  serveDomain: string;
55
- env: "testing" | "local" | "debug" | "develop" | "main";
55
+ env: "debug" | "testing" | "local" | "develop" | "main";
56
56
  name?: string | undefined;
57
57
  };
58
58
  scan(): Promise<WorkspaceScanResult>;