@akanjs/devkit 2.3.8-rc.0 → 2.3.8-rc.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.
- package/akanApp/akanApp.host.ts +1 -1
- package/getDirname.ts +1 -2
- package/lint/no-deep-internal-import.grit +1 -1
- package/package.json +2 -2
- package/getDirname.test.ts +0 -19
package/akanApp/akanApp.host.ts
CHANGED
|
@@ -11,7 +11,7 @@ const BACKEND_RESTART_DEBOUNCE_MS = 120;
|
|
|
11
11
|
const BACKEND_GRACEFUL_TIMEOUT_MS = 3000;
|
|
12
12
|
const BACKEND_RECOVERY_BASE_DELAY_MS = 1_000;
|
|
13
13
|
const BACKEND_RECOVERY_MAX_DELAY_MS = 30_000;
|
|
14
|
-
const BUILDER_READY_TIMEOUT_MS =
|
|
14
|
+
const BUILDER_READY_TIMEOUT_MS = 15000;
|
|
15
15
|
const BUILDER_START_MAX_ATTEMPTS = 3;
|
|
16
16
|
const SOURCE_EXTS = new Set([".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs"]);
|
|
17
17
|
const NON_SOURCE_EXT_RE =
|
package/getDirname.ts
CHANGED
|
@@ -6,7 +6,7 @@ or {
|
|
|
6
6
|
$source <: within JsImport(),
|
|
7
7
|
not $filename <: r".*\.(?:test|spec)\.tsx?",
|
|
8
8
|
$source <: r"\"@(?:apps|libs)/[^/]+/[^/]+/.+\"",
|
|
9
|
-
not $source <: r"\"@apps/[^/]+/env/env\.client\"",
|
|
9
|
+
not $source <: r"\"@apps/[^/]+/env/env\.(?:client|server)\"",
|
|
10
10
|
register_diagnostic(
|
|
11
11
|
span = $source,
|
|
12
12
|
message = "@apps and @libs imports should only reference the first two path segments after the alias."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "2.3.8-rc.
|
|
3
|
+
"version": "2.3.8-rc.2",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@langchain/openai": "^1.4.6",
|
|
33
33
|
"@tailwindcss/node": "^4.3.0",
|
|
34
34
|
"@trapezedev/project": "^7.1.4",
|
|
35
|
-
"akanjs": "2.3.8-rc.
|
|
35
|
+
"akanjs": "2.3.8-rc.2",
|
|
36
36
|
"chalk": "^5.6.2",
|
|
37
37
|
"commander": "^14.0.3",
|
|
38
38
|
"daisyui": "5.5.23",
|
package/getDirname.test.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { getDirname } from "./getDirname";
|
|
4
|
-
|
|
5
|
-
describe("getDirname", () => {
|
|
6
|
-
test("converts file URLs to filesystem paths", () => {
|
|
7
|
-
const dirname = getDirname("file:///tmp/akan%20workspace/index.ts");
|
|
8
|
-
|
|
9
|
-
expect(dirname).toBe(path.join("/tmp", "akan workspace"));
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
test("keeps Windows drive paths valid when running on Windows", () => {
|
|
13
|
-
if (process.platform !== "win32") return;
|
|
14
|
-
|
|
15
|
-
const dirname = getDirname("file:///C:/Users/ken78/.bun/install/global/node_modules/@akanjs/devkit/index.ts");
|
|
16
|
-
|
|
17
|
-
expect(dirname).toBe("C:\\Users\\ken78\\.bun\\install\\global\\node_modules\\@akanjs\\devkit");
|
|
18
|
-
});
|
|
19
|
-
});
|