@akanjs/devkit 3.0.0-beta.29 → 3.0.0-beta.30
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/akanConfig/akanConfig.test.ts +109 -92
- package/akanConfig/akanConfig.ts +183 -163
- package/akanConfig/types.ts +12 -6
- package/executors.test.ts +4 -3
- package/executors.ts +1 -1
- package/frontendBuild/ssrBaseArtifactBuilder.ts +5 -5
- package/mobile/desktopBin.test.ts +1 -1
- package/mobile/desktopServerStage.ts +4 -4
- package/mobile/mobileTarget.test.ts +10 -10
- package/mobile/mobileTarget.ts +17 -17
- package/mobile/nativeApp.test.ts +7 -7
- package/mobile/nativeApp.ts +11 -11
- package/mobile/nativeConfig.test.ts +47 -44
- package/mobile/nativeConfig.ts +29 -32
- package/mobile/nativeWebDir.test.ts +3 -3
- package/mobile/nativeWebDir.ts +4 -4
- package/package.json +2 -2
- package/workspaceLayout.test.ts +1 -1
- package/workspaceLayout.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.30",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@earendil-works/pi-tui": "0.86.1",
|
|
48
48
|
"@inquirer/prompts": "^8.4.3",
|
|
49
49
|
"@tailwindcss/node": "^4.3.0",
|
|
50
|
-
"akanjs": "3.0.0-beta.
|
|
50
|
+
"akanjs": "3.0.0-beta.30",
|
|
51
51
|
"chalk": "^5.6.2",
|
|
52
52
|
"commander": "^14.0.3",
|
|
53
53
|
"dayjs": "^1.11.20",
|
package/workspaceLayout.test.ts
CHANGED
|
@@ -34,7 +34,7 @@ describe("app root layout allowlist", () => {
|
|
|
34
34
|
test("names what a Capacitor app kept in its root as a leftover, not an unknown entry", () => {
|
|
35
35
|
for (const name of ["android", "ios", "mobile", "capacitor.config.ts", "capacitor.config.json"]) {
|
|
36
36
|
expect(appRootAllowedFiles.has(name) || appRootAllowedDirs.has(name)).toBe(false);
|
|
37
|
-
expect(rootEntryHintOf("app", name)).toContain(".akan/
|
|
37
|
+
expect(rootEntryHintOf("app", name)).toContain(".akan/native/<target>");
|
|
38
38
|
}
|
|
39
39
|
expect(rootEntryHintOf("app", "base")).toBeNull();
|
|
40
40
|
expect(rootEntryHintOf("lib", "ios")).toBeNull();
|
package/workspaceLayout.ts
CHANGED
|
@@ -84,7 +84,7 @@ const libFacetRootTestPattern = /^[A-Za-z][A-Za-z0-9_-]*\.signal\.(test|spec)\.(
|
|
|
84
84
|
export const isAllowedLibFacetRootFile = (filename: string) =>
|
|
85
85
|
libFacetRootAllowedFiles.has(filename) || libFacetRootTestPattern.test(filename);
|
|
86
86
|
|
|
87
|
-
//* What a Capacitor app kept in its root. The native runtime generates its projects under `.akan/
|
|
87
|
+
//* What a Capacitor app kept in its root. The native runtime generates its projects under `.akan/native/<target>`, so
|
|
88
88
|
//* these are named as leftovers instead of as unknown entries.
|
|
89
89
|
const retiredAppRootEntries = new Set([
|
|
90
90
|
"android",
|
|
@@ -97,7 +97,7 @@ const retiredAppRootEntries = new Set([
|
|
|
97
97
|
|
|
98
98
|
export const rootEntryHintOf = (type: SysType, name: string) =>
|
|
99
99
|
type === "app" && retiredAppRootEntries.has(name)
|
|
100
|
-
? "a Capacitor-era entry; the native runtime generates its projects under .akan/
|
|
100
|
+
? "a Capacitor-era entry; the native runtime generates its projects under .akan/native/<target>, so delete it"
|
|
101
101
|
: null;
|
|
102
102
|
|
|
103
103
|
// scanSync reads roots through `Bun.Glob("*")`, which skips dotfiles, so doctor skips them the same way.
|