@akanjs/devkit 0.0.109 → 0.0.111

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 → cjs/src}/builder.js +11 -4
  2. package/{src/builder.mjs → esm/src/builder.js} +11 -4
  3. package/package.json +4 -3
  4. package/src/executors.d.ts +1 -1
  5. /package/{index.js → cjs/index.js} +0 -0
  6. /package/{src → cjs/src}/aiEditor.js +0 -0
  7. /package/{src → cjs/src}/auth.js +0 -0
  8. /package/{src → cjs/src}/capacitorApp.js +0 -0
  9. /package/{src → cjs/src}/commandDecorators/argMeta.js +0 -0
  10. /package/{src → cjs/src}/commandDecorators/command.js +0 -0
  11. /package/{src → cjs/src}/commandDecorators/commandMeta.js +0 -0
  12. /package/{src → cjs/src}/commandDecorators/index.js +0 -0
  13. /package/{src → cjs/src}/commandDecorators/targetMeta.js +0 -0
  14. /package/{src → cjs/src}/commandDecorators/types.js +0 -0
  15. /package/{src → cjs/src}/constants.js +0 -0
  16. /package/{src → cjs/src}/createTunnel.js +0 -0
  17. /package/{src → cjs/src}/dependencyScanner.js +0 -0
  18. /package/{src → cjs/src}/executors.js +0 -0
  19. /package/{src → cjs/src}/extractDeps.js +0 -0
  20. /package/{src → cjs/src}/getCredentials.js +0 -0
  21. /package/{src → cjs/src}/getModelFileData.js +0 -0
  22. /package/{src → cjs/src}/getRelatedCnsts.js +0 -0
  23. /package/{src → cjs/src}/index.js +0 -0
  24. /package/{src → cjs/src}/selectModel.js +0 -0
  25. /package/{src → cjs/src}/streamAi.js +0 -0
  26. /package/{src → cjs/src}/types.js +0 -0
  27. /package/{src → 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,12 @@ class Builder {
56
56
  splitting: false,
57
57
  platform: this.#pkgJson.esbuild?.platform,
58
58
  format,
59
- outdir: this.#distExecutor.cwdPath,
60
- outExtension: format === "cjs" ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" } : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
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" },
61
65
  logLevel: "error"
62
66
  };
63
67
  }
@@ -95,8 +99,11 @@ class Builder {
95
99
  exports: {
96
100
  ...this.#pkgJson.exports ?? {},
97
101
  ".": {
98
- require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
99
- import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs"
102
+ require: "./cjs/index.js",
103
+ import: "./esm/index.js",
104
+ types: "./index.d.ts"
105
+ // require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
106
+ // import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
100
107
  }
101
108
  }
102
109
  };
@@ -24,8 +24,12 @@ class Builder {
24
24
  splitting: false,
25
25
  platform: this.#pkgJson.esbuild?.platform,
26
26
  format,
27
- outdir: this.#distExecutor.cwdPath,
28
- outExtension: format === "cjs" ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" } : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
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" },
29
33
  logLevel: "error"
30
34
  };
31
35
  }
@@ -63,8 +67,11 @@ class Builder {
63
67
  exports: {
64
68
  ...this.#pkgJson.exports ?? {},
65
69
  ".": {
66
- require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
67
- import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs"
70
+ require: "./cjs/index.js",
71
+ import: "./esm/index.js",
72
+ types: "./index.d.ts"
73
+ // require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
74
+ // import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
68
75
  }
69
76
  }
70
77
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
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.js",
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
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