@akanjs/devkit 0.0.110 → 0.0.112

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 (50) hide show
  1. package/{src/builder.cjs → cjs/src/builder.js} +6 -4
  2. package/{src/builder.mjs → esm/src/builder.js} +6 -4
  3. package/package.json +4 -3
  4. package/src/executors.d.ts +1 -1
  5. /package/{index.cjs → cjs/index.js} +0 -0
  6. /package/{src/aiEditor.cjs → cjs/src/aiEditor.js} +0 -0
  7. /package/{src/auth.cjs → cjs/src/auth.js} +0 -0
  8. /package/{src/capacitorApp.cjs → cjs/src/capacitorApp.js} +0 -0
  9. /package/{src/commandDecorators/argMeta.cjs → cjs/src/commandDecorators/argMeta.js} +0 -0
  10. /package/{src/commandDecorators/command.cjs → cjs/src/commandDecorators/command.js} +0 -0
  11. /package/{src/commandDecorators/commandMeta.cjs → cjs/src/commandDecorators/commandMeta.js} +0 -0
  12. /package/{src/commandDecorators/index.cjs → cjs/src/commandDecorators/index.js} +0 -0
  13. /package/{src/commandDecorators/targetMeta.cjs → cjs/src/commandDecorators/targetMeta.js} +0 -0
  14. /package/{src/commandDecorators/types.cjs → cjs/src/commandDecorators/types.js} +0 -0
  15. /package/{src/constants.cjs → cjs/src/constants.js} +0 -0
  16. /package/{src/createTunnel.cjs → cjs/src/createTunnel.js} +0 -0
  17. /package/{src/dependencyScanner.cjs → cjs/src/dependencyScanner.js} +0 -0
  18. /package/{src/executors.cjs → cjs/src/executors.js} +0 -0
  19. /package/{src/extractDeps.cjs → cjs/src/extractDeps.js} +0 -0
  20. /package/{src/getCredentials.cjs → cjs/src/getCredentials.js} +0 -0
  21. /package/{src/getModelFileData.cjs → cjs/src/getModelFileData.js} +0 -0
  22. /package/{src/getRelatedCnsts.cjs → cjs/src/getRelatedCnsts.js} +0 -0
  23. /package/{src/index.cjs → cjs/src/index.js} +0 -0
  24. /package/{src/selectModel.cjs → cjs/src/selectModel.js} +0 -0
  25. /package/{src/streamAi.cjs → cjs/src/streamAi.js} +0 -0
  26. /package/{src/types.cjs → cjs/src/types.js} +0 -0
  27. /package/{src/uploadRelease.cjs → cjs/src/uploadRelease.js} +0 -0
  28. /package/{index.mjs → esm/index.js} +0 -0
  29. /package/{src/aiEditor.mjs → esm/src/aiEditor.js} +0 -0
  30. /package/{src/auth.mjs → esm/src/auth.js} +0 -0
  31. /package/{src/capacitorApp.mjs → esm/src/capacitorApp.js} +0 -0
  32. /package/{src/commandDecorators/argMeta.mjs → esm/src/commandDecorators/argMeta.js} +0 -0
  33. /package/{src/commandDecorators/command.mjs → esm/src/commandDecorators/command.js} +0 -0
  34. /package/{src/commandDecorators/commandMeta.mjs → esm/src/commandDecorators/commandMeta.js} +0 -0
  35. /package/{src/commandDecorators/index.mjs → esm/src/commandDecorators/index.js} +0 -0
  36. /package/{src/commandDecorators/targetMeta.mjs → esm/src/commandDecorators/targetMeta.js} +0 -0
  37. /package/{src/commandDecorators/types.mjs → esm/src/commandDecorators/types.js} +0 -0
  38. /package/{src/constants.mjs → esm/src/constants.js} +0 -0
  39. /package/{src/createTunnel.mjs → esm/src/createTunnel.js} +0 -0
  40. /package/{src/dependencyScanner.mjs → esm/src/dependencyScanner.js} +0 -0
  41. /package/{src/executors.mjs → esm/src/executors.js} +0 -0
  42. /package/{src/extractDeps.mjs → esm/src/extractDeps.js} +0 -0
  43. /package/{src/getCredentials.mjs → esm/src/getCredentials.js} +0 -0
  44. /package/{src/getModelFileData.mjs → esm/src/getModelFileData.js} +0 -0
  45. /package/{src/getRelatedCnsts.mjs → esm/src/getRelatedCnsts.js} +0 -0
  46. /package/{src/index.mjs → esm/src/index.js} +0 -0
  47. /package/{src/selectModel.mjs → esm/src/selectModel.js} +0 -0
  48. /package/{src/streamAi.mjs → esm/src/streamAi.js} +0 -0
  49. /package/{src/types.mjs → esm/src/types.js} +0 -0
  50. /package/{src/uploadRelease.mjs → esm/src/uploadRelease.js} +0 -0
@@ -56,8 +56,9 @@ class Builder {
56
56
  splitting: false,
57
57
  platform: this.#pkgJson.esbuild?.platform,
58
58
  format,
59
- outdir: this.#distExecutor.cwdPath,
60
- outExtension: { ".js": format === "cjs" ? ".cjs" : ".mjs" },
59
+ outdir: `${this.#distExecutor.cwdPath}/${format}`,
60
+ // outdir: this.#distExecutor.cwdPath,
61
+ // outExtension: { ".js": format === "cjs" ? ".js" : ".esm.js" },
61
62
  // format === "cjs"
62
63
  // ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" }
63
64
  // : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
@@ -98,8 +99,9 @@ class Builder {
98
99
  exports: {
99
100
  ...this.#pkgJson.exports ?? {},
100
101
  ".": {
101
- require: "./index.cjs",
102
- import: "./index.mjs"
102
+ require: "./cjs/index.js",
103
+ import: "./esm/index.js",
104
+ types: "./index.d.ts"
103
105
  // require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
104
106
  // import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
105
107
  }
@@ -24,8 +24,9 @@ class Builder {
24
24
  splitting: false,
25
25
  platform: this.#pkgJson.esbuild?.platform,
26
26
  format,
27
- outdir: this.#distExecutor.cwdPath,
28
- outExtension: { ".js": format === "cjs" ? ".cjs" : ".mjs" },
27
+ outdir: `${this.#distExecutor.cwdPath}/${format}`,
28
+ // outdir: this.#distExecutor.cwdPath,
29
+ // outExtension: { ".js": format === "cjs" ? ".js" : ".esm.js" },
29
30
  // format === "cjs"
30
31
  // ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" }
31
32
  // : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
@@ -66,8 +67,9 @@ class Builder {
66
67
  exports: {
67
68
  ...this.#pkgJson.exports ?? {},
68
69
  ".": {
69
- require: "./index.cjs",
70
- import: "./index.mjs"
70
+ require: "./cjs/index.js",
71
+ import: "./esm/index.js",
72
+ types: "./index.d.ts"
71
73
  // require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
72
74
  // import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
73
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.110",
3
+ "version": "0.0.112",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -34,8 +34,9 @@
34
34
  },
35
35
  "exports": {
36
36
  ".": {
37
- "require": "./index.cjs",
38
- "import": "./index.mjs"
37
+ "require": "./cjs/index.js",
38
+ "import": "./esm/index.js",
39
+ "types": "./index.d.ts"
39
40
  }
40
41
  },
41
42
  "esbuild": {
@@ -52,7 +52,7 @@ export declare class WorkspaceExecutor extends Executor {
52
52
  getBaseDevEnv(): {
53
53
  repoName: string;
54
54
  serveDomain: string;
55
- env: "debug" | "testing" | "local" | "develop" | "main";
55
+ env: "testing" | "local" | "debug" | "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
File without changes
File without changes
File without changes