@akanjs/devkit 2.3.7 → 2.3.8-rc.1
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/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/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.
|
|
3
|
+
"version": "2.3.8-rc.1",
|
|
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.
|
|
35
|
+
"akanjs": "2.3.8-rc.1",
|
|
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
|
-
});
|