@akanjs/devkit 0.0.108 → 0.0.110

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.108",
3
+ "version": "0.0.110",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "exports": {
36
36
  ".": {
37
- "require": "./index.js",
37
+ "require": "./index.cjs",
38
38
  "import": "./index.mjs"
39
39
  }
40
40
  },
@@ -57,7 +57,10 @@ class Builder {
57
57
  platform: this.#pkgJson.esbuild?.platform,
58
58
  format,
59
59
  outdir: this.#distExecutor.cwdPath,
60
- outExtension: format === "cjs" ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" } : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
60
+ outExtension: { ".js": format === "cjs" ? ".cjs" : ".mjs" },
61
+ // format === "cjs"
62
+ // ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" }
63
+ // : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
61
64
  logLevel: "error"
62
65
  };
63
66
  }
@@ -95,8 +98,10 @@ class Builder {
95
98
  exports: {
96
99
  ...this.#pkgJson.exports ?? {},
97
100
  ".": {
98
- require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
99
- import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs"
101
+ require: "./index.cjs",
102
+ import: "./index.mjs"
103
+ // require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
104
+ // import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
100
105
  }
101
106
  }
102
107
  };
package/src/builder.mjs CHANGED
@@ -25,7 +25,10 @@ class Builder {
25
25
  platform: this.#pkgJson.esbuild?.platform,
26
26
  format,
27
27
  outdir: this.#distExecutor.cwdPath,
28
- outExtension: format === "cjs" ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" } : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
28
+ outExtension: { ".js": format === "cjs" ? ".cjs" : ".mjs" },
29
+ // format === "cjs"
30
+ // ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" }
31
+ // : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
29
32
  logLevel: "error"
30
33
  };
31
34
  }
@@ -63,8 +66,10 @@ class Builder {
63
66
  exports: {
64
67
  ...this.#pkgJson.exports ?? {},
65
68
  ".": {
66
- require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
67
- import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs"
69
+ require: "./index.cjs",
70
+ import: "./index.mjs"
71
+ // require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
72
+ // import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
68
73
  }
69
74
  }
70
75
  };
@@ -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>;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes