@akanjs/devkit 3.2.0-rc.14 → 3.2.0-rc.15
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/CHANGELOG.md +13 -1
- package/README.ko.md +3 -2
- package/README.md +4 -2
- package/akanApp/BackendImportGraph.test.ts +1 -1
- package/akanApp/akanApp.host.test.ts +1 -1
- package/akanApp/akanApp.host.ts +1 -1
- package/akanConfig/akanConfig.test.ts +1 -1
- package/akanConfig/akanConfig.ts +1 -1
- package/akanConfig/akanWorkspaceConfig.ts +1 -1
- package/akanConfig/productionLockfile.ts +1 -1
- package/apiReport/apiReport.test.ts +1 -1
- package/{applicationBuildRunner.test.ts → app/applicationBuildRunner.test.ts} +8 -8
- package/{applicationBuildRunner.ts → app/applicationBuildRunner.ts} +14 -14
- package/{applicationTestPreload.ts → app/applicationTestPreload.ts} +1 -1
- package/{routeJsBudget.test.ts → app/routeJsBudget.test.ts} +1 -1
- package/{routeJsBudget.ts → app/routeJsBudget.ts} +2 -2
- package/artifact/implicitRootLayout.test.ts +1 -1
- package/cloud/cloudApi.test.ts +1 -1
- package/cloud/configLock.test.ts +1 -1
- package/cloud/globalConfig.test.ts +1 -1
- package/cloud/globalConfig.ts +1 -1
- package/cloud/updatePackUpload.test.ts +1 -1
- package/codeAgent/agent/AkanCodeEnv.ts +1 -1
- package/codeAgent/agent/akanCodePaths.ts +1 -1
- package/codeAgent/agent/codeAgent.test.ts +1 -1
- package/codeAgent/skills/akan-debug/SKILL.md +8 -5
- package/codeAgent/tools/AkanCli.ts +1 -1
- package/codeAgent/tools/AkanToolPack.ts +1 -1
- package/codeAgent/tools/akanCodePlugins.test.ts +1 -1
- package/commandDecorators/command.ts +3 -3
- package/commandDecorators/commandDecorators.test.ts +1 -1
- package/commandDecorators/workspaceVersionCheck.test.ts +1 -1
- package/commandDecorators/workspaceVersionCheck.ts +1 -1
- package/{akanContext.ts → context/akanContext.ts} +8 -8
- package/{akanMcpContract.test.ts → context/akanMcpContract.test.ts} +1 -1
- package/{akanMcpContract.ts → context/akanMcpContract.ts} +5 -5
- package/{recipeScanner.test.ts → context/recipeScanner.test.ts} +1 -1
- package/devkitUtils.test.ts +5 -5
- package/{apiReference.test.ts → docs/apiReference.test.ts} +4 -4
- package/{apiReference.ts → docs/apiReference.ts} +2 -2
- package/{errorCodeReference.test.ts → docs/errorCodeReference.test.ts} +4 -4
- package/{errorCodeReference.ts → docs/errorCodeReference.ts} +2 -2
- package/{errorCodeScan.ts → docs/errorCodeScan.ts} +1 -1
- package/{frameworkGraph.test.ts → docs/frameworkGraph.test.ts} +1 -1
- package/executors/appExecutor.ts +5 -5
- package/executors/executor.ts +9 -9
- package/{executors.linkFallback.test.ts → executors/executors.linkFallback.test.ts} +1 -1
- package/{executors.test.ts → executors/executors.test.ts} +11 -18
- package/executors/index.ts +8 -0
- package/executors/pkgExecutor.ts +2 -2
- package/executors/sysExecutor.ts +8 -8
- package/executors/workspaceExecutor.ts +4 -4
- package/frontendBuild/allRoutesBuilder.test.ts +1 -1
- package/frontendBuild/autoImportSync.test.ts +1 -1
- package/frontendBuild/autoImportSync.ts +1 -1
- package/frontendBuild/buildRouteClient.test.ts +1 -1
- package/frontendBuild/clientEntriesBundler.test.ts +1 -1
- package/frontendBuild/csrArtifactBuilder.test.ts +1 -1
- package/frontendBuild/csrDevArtifactWriter.ts +1 -1
- package/frontendBuild/cssCompiler.test.ts +1 -1
- package/frontendBuild/devGeneratedIndexSync.test.ts +1 -1
- package/frontendBuild/devGeneratedIndexSync.ts +1 -1
- package/frontendBuild/dictionaryAssetBuilder.test.ts +1 -1
- package/frontendBuild/fontOptimizer.test.ts +1 -1
- package/frontendBuild/fontPruner.test.ts +1 -1
- package/frontendBuild/frontendBuild.test.ts +1 -1
- package/frontendBuild/hmrWatcher.test.ts +1 -1
- package/frontendBuild/mcpAppViewBuilder.test.ts +1 -1
- package/frontendBuild/mcpAppViewBuilder.ts +1 -1
- package/frontendBuild/nativeCore.test.ts +1 -1
- package/frontendBuild/optionalPeers.test.ts +1 -1
- package/frontendBuild/precompressArtifacts.test.ts +1 -1
- package/frontendBuild/serverGraphFile.ts +1 -1
- package/frontendBuild/sourceMtimeIndex.test.ts +1 -1
- package/frontendBuild/ssrDevBundler.test.ts +1 -1
- package/frontendBuild/vendorImportScanner.test.ts +1 -1
- package/frontendBuild/vendorNarrowing.test.ts +1 -1
- package/frontendBuild/watchRootResolver.test.ts +1 -1
- package/{agentAssets.test.ts → guideline/agentAssets.test.ts} +1 -1
- package/{agentAssets.ts → guideline/agentAssets.ts} +1 -1
- package/{agentsIndex.test.ts → guideline/agentsIndex.test.ts} +2 -2
- package/{agentsIndex.ts → guideline/agentsIndex.ts} +12 -9
- package/{conventionSet.test.ts → guideline/conventionSet.test.ts} +3 -3
- package/{prompter.ts → guideline/prompter.ts} +2 -3
- package/incrementalBuilder/buildBatch.proc.ts +1 -1
- package/incrementalBuilder/buildBatchRunner.test.ts +1 -1
- package/incrementalBuilder/builderChannel.test.ts +1 -1
- package/incrementalBuilder/builderGraphPayloads.ts +3 -3
- package/incrementalBuilder/incrementalBuilder.proc.test.ts +1 -1
- package/incrementalBuilder/incrementalBuilder.proc.ts +2 -2
- package/index.ts +22 -22
- package/integration/devStabilityHarness.test.ts +1 -1
- package/{biomeBase.test.ts → lint/biomeBase.test.ts} +1 -1
- package/lint/gritRules.test.ts +1 -1
- package/{linter.test.ts → lint/linter.test.ts} +1 -1
- package/mobile/desktopBin.test.ts +1 -1
- package/mobile/desktopRelease.test.ts +1 -1
- package/mobile/desktopServerStage.test.ts +2 -2
- package/mobile/desktopServerStage.ts +1 -1
- package/mobile/nativeApi.test.ts +1 -1
- package/mobile/nativeApp.test.ts +1 -1
- package/mobile/nativeConfig.test.ts +1 -1
- package/mobile/nativePluginFolders.test.ts +1 -1
- package/mobile/nativePublicEnv.test.ts +1 -1
- package/mobile/nativeWebDir.test.ts +1 -1
- package/mobile/serverBundleSecrets.test.ts +1 -1
- package/mobile/tarWriter.test.ts +1 -1
- package/mobile/updatePackFolder.test.ts +1 -1
- package/package.json +167 -3
- package/packageExports.test.ts +20 -2
- package/piDependencyPins.test.ts +1 -1
- package/pipeline/PipelineDefinition.ts +1 -1
- package/platformTest/IdleWatchedProcess.test.ts +1 -1
- package/platformTest/PlatformTestRun.test.ts +1 -1
- package/platformTest/TestSnapshot.test.ts +1 -1
- package/{abstractDoc.test.ts → quality/abstractDoc.test.ts} +2 -2
- package/{abstractDoc.ts → quality/abstractDoc.ts} +1 -1
- package/{maintainabilityBaseline.test.ts → quality/maintainabilityBaseline.test.ts} +24 -0
- package/{maintainabilityBaseline.ts → quality/maintainabilityBaseline.ts} +24 -1
- package/{maintainabilityContract.test.ts → quality/maintainabilityContract.test.ts} +82 -2
- package/{maintainabilityContract.ts → quality/maintainabilityContract.ts} +65 -8
- package/{maintainabilityExceptionScanner.test.ts → quality/maintainabilityExceptionScanner.test.ts} +1 -1
- package/{qualityScanner.test.ts → quality/qualityScanner.test.ts} +1 -1
- package/{qualityScanner.ts → quality/qualityScanner.ts} +8 -8
- package/{subspace.test.ts → subspace/subspace.test.ts} +3 -3
- package/{subspace.ts → subspace/subspace.ts} +4 -4
- package/{subspaceClone.ts → subspace/subspaceClone.ts} +5 -5
- package/{subspaceConfig.ts → subspace/subspaceConfig.ts} +1 -1
- package/{testHelpers.ts → test/testHelpers.ts} +1 -1
- package/transforms/browserDirnamePlugin.test.ts +1 -1
- package/transforms/externalizeFrameworkPlugin.test.ts +1 -1
- package/transforms/mcpAppPageTrimmer.test.ts +1 -1
- package/transforms/pureLazyMarker.test.ts +1 -1
- package/transforms/serverEnvPlugin.test.ts +1 -1
- package/transforms/serverEnvProfile.test.ts +1 -1
- package/transforms/sideEffectImportOrder.test.ts +1 -1
- package/transforms/transforms.test.ts +2 -2
- package/transforms/tsconfigPackageResolver.test.ts +1 -1
- package/{createTunnel.test.ts → tunnel/createTunnel.test.ts} +1 -1
- package/{createTunnel.ts → tunnel/createTunnel.ts} +2 -2
- package/{sshHostKeys.ts → tunnel/sshHostKeys.ts} +2 -2
- package/typecheck/projectTypecheck.test.ts +1 -1
- package/typecheck/projectTypecheck.ts +1 -1
- package/{typeChecker.test.ts → typecheck/typeChecker.test.ts} +1 -1
- package/{typeChecker.ts → typecheck/typeChecker.ts} +1 -1
- package/typecheck/typecheck.proc.ts +1 -1
- package/typecheck/typecheckFailure.ts +1 -1
- package/{jsonFormatter.test.ts → util/jsonFormatter.test.ts} +1 -1
- package/workflow/executor.ts +1 -1
- package/workflow/guardCatalog.test.ts +1 -1
- package/workflow/moduleIndex.test.ts +2 -2
- package/workflow/moduleIndex.ts +1 -1
- package/workflow/rolloutGate.test.ts +1 -1
- package/workflow/rolloutGate.ts +1 -1
- package/{appSelectionMemory.ts → workspace/appSelectionMemory.ts} +1 -1
- package/{codegenLock.test.ts → workspace/codegenLock.test.ts} +1 -1
- package/{dependencyScanner.test.ts → workspace/dependencyScanner.test.ts} +1 -1
- package/{dependencyScanner.ts → workspace/dependencyScanner.ts} +2 -2
- package/{envSeed.test.ts → workspace/envSeed.test.ts} +2 -2
- package/{envSeed.ts → workspace/envSeed.ts} +1 -1
- package/{libSource.test.ts → workspace/libSource.test.ts} +2 -2
- package/{libSource.ts → workspace/libSource.ts} +1 -1
- package/{scanInfo.ts → workspace/scanInfo.ts} +7 -7
- package/{slicePlanner.test.ts → workspace/slicePlanner.test.ts} +2 -2
- package/{slicePlanner.ts → workspace/slicePlanner.ts} +1 -1
- package/{workspaceGraph.test.ts → workspace/workspaceGraph.test.ts} +1 -1
- package/{workspaceGraph.ts → workspace/workspaceGraph.ts} +1 -1
- package/{workspaceLayout.test.ts → workspace/workspaceLayout.test.ts} +1 -1
- package/executors.ts +0 -8
- /package/{applicationBuildReporter.test.ts → app/applicationBuildReporter.test.ts} +0 -0
- /package/{applicationBuildReporter.ts → app/applicationBuildReporter.ts} +0 -0
- /package/{routeSourceValidator.test.ts → app/routeSourceValidator.test.ts} +0 -0
- /package/{routeSourceValidator.ts → app/routeSourceValidator.ts} +0 -0
- /package/{akanMcpToolError.ts → context/akanMcpToolError.ts} +0 -0
- /package/{moduleFieldNames.test.ts → context/moduleFieldNames.test.ts} +0 -0
- /package/{moduleFieldNames.ts → context/moduleFieldNames.ts} +0 -0
- /package/{recipeScanner.ts → context/recipeScanner.ts} +0 -0
- /package/{declarationReader.ts → docs/declarationReader.ts} +0 -0
- /package/{frameworkGraph.ts → docs/frameworkGraph.ts} +0 -0
- /package/{conventionSet.ts → guideline/conventionSet.ts} +0 -0
- /package/{biomeBase.ts → lint/biomeBase.ts} +0 -0
- /package/{linter.ts → lint/linter.ts} +0 -0
- /package/{bareErrorScanner.ts → quality/bareErrorScanner.ts} +0 -0
- /package/{commentDensityScanner.test.ts → quality/commentDensityScanner.test.ts} +0 -0
- /package/{commentDensityScanner.ts → quality/commentDensityScanner.ts} +0 -0
- /package/{componentSizeScanner.test.ts → quality/componentSizeScanner.test.ts} +0 -0
- /package/{componentSizeScanner.ts → quality/componentSizeScanner.ts} +0 -0
- /package/{componentWriteChainScanner.test.ts → quality/componentWriteChainScanner.test.ts} +0 -0
- /package/{componentWriteChainScanner.ts → quality/componentWriteChainScanner.ts} +0 -0
- /package/{deprecatedCommentScanner.test.ts → quality/deprecatedCommentScanner.test.ts} +0 -0
- /package/{deprecatedCommentScanner.ts → quality/deprecatedCommentScanner.ts} +0 -0
- /package/{endpointReach.test.ts → quality/endpointReach.test.ts} +0 -0
- /package/{endpointReach.ts → quality/endpointReach.ts} +0 -0
- /package/{formSetterScanner.test.ts → quality/formSetterScanner.test.ts} +0 -0
- /package/{formSetterScanner.ts → quality/formSetterScanner.ts} +0 -0
- /package/{kindBranchScanner.test.ts → quality/kindBranchScanner.test.ts} +0 -0
- /package/{kindBranchScanner.ts → quality/kindBranchScanner.ts} +0 -0
- /package/{maintainabilityExceptionScanner.ts → quality/maintainabilityExceptionScanner.ts} +0 -0
- /package/{maintainabilityLimits.ts → quality/maintainabilityLimits.ts} +0 -0
- /package/{maintainabilityReport.test.ts → quality/maintainabilityReport.test.ts} +0 -0
- /package/{maintainabilityReport.ts → quality/maintainabilityReport.ts} +0 -0
- /package/{renderMutationScanner.test.ts → quality/renderMutationScanner.test.ts} +0 -0
- /package/{renderMutationScanner.ts → quality/renderMutationScanner.ts} +0 -0
- /package/{serviceLoopCallScanner.test.ts → quality/serviceLoopCallScanner.test.ts} +0 -0
- /package/{serviceLoopCallScanner.ts → quality/serviceLoopCallScanner.ts} +0 -0
- /package/{signalMutationIndex.test.ts → quality/signalMutationIndex.test.ts} +0 -0
- /package/{signalMutationIndex.ts → quality/signalMutationIndex.ts} +0 -0
- /package/{sourceComments.test.ts → quality/sourceComments.test.ts} +0 -0
- /package/{sourceComments.ts → quality/sourceComments.ts} +0 -0
- /package/{ssrScanner.test.ts → quality/ssrScanner.test.ts} +0 -0
- /package/{ssrScanner.ts → quality/ssrScanner.ts} +0 -0
- /package/{storeAccessScanner.test.ts → quality/storeAccessScanner.test.ts} +0 -0
- /package/{storeAccessScanner.ts → quality/storeAccessScanner.ts} +0 -0
- /package/{storeSource.ts → quality/storeSource.ts} +0 -0
- /package/{storeWriteScanner.test.ts → quality/storeWriteScanner.test.ts} +0 -0
- /package/{storeWriteScanner.ts → quality/storeWriteScanner.ts} +0 -0
- /package/{structureScanner.test.ts → quality/structureScanner.test.ts} +0 -0
- /package/{structureScanner.ts → quality/structureScanner.ts} +0 -0
- /package/{testOnlyExportScanner.test.ts → quality/testOnlyExportScanner.test.ts} +0 -0
- /package/{testOnlyExportScanner.ts → quality/testOnlyExportScanner.ts} +0 -0
- /package/{writePath.test.ts → quality/writePath.test.ts} +0 -0
- /package/{writePath.ts → quality/writePath.ts} +0 -0
- /package/{writePlacementScanner.test.ts → quality/writePlacementScanner.test.ts} +0 -0
- /package/{writePlacementScanner.ts → quality/writePlacementScanner.ts} +0 -0
- /package/{writingActionIndex.test.ts → quality/writingActionIndex.test.ts} +0 -0
- /package/{writingActionIndex.ts → quality/writingActionIndex.ts} +0 -0
- /package/{subspaceReport.ts → subspace/subspaceReport.ts} +0 -0
- /package/{sshTunnel.ts → tunnel/sshTunnel.ts} +0 -0
- /package/{fileEditor.ts → util/fileEditor.ts} +0 -0
- /package/{fileSys.test.ts → util/fileSys.test.ts} +0 -0
- /package/{fileSys.ts → util/fileSys.ts} +0 -0
- /package/{jsonFormatter.ts → util/jsonFormatter.ts} +0 -0
- /package/{selectModel.ts → util/selectModel.ts} +0 -0
- /package/{semver.test.ts → util/semver.test.ts} +0 -0
- /package/{semver.ts → util/semver.ts} +0 -0
- /package/{shellOnlyEnv.test.ts → util/shellOnlyEnv.test.ts} +0 -0
- /package/{shellOnlyEnv.ts → util/shellOnlyEnv.ts} +0 -0
- /package/{spinner.test.ts → util/spinner.test.ts} +0 -0
- /package/{spinner.ts → util/spinner.ts} +0 -0
- /package/{stripAnsi.ts → util/stripAnsi.ts} +0 -0
- /package/{codegenLock.ts → workspace/codegenLock.ts} +0 -0
- /package/{getRelatedCnsts.ts → workspace/getRelatedCnsts.ts} +0 -0
- /package/{gitRevision.test.ts → workspace/gitRevision.test.ts} +0 -0
- /package/{gitRevision.ts → workspace/gitRevision.ts} +0 -0
- /package/{manifestDependencies.ts → workspace/manifestDependencies.ts} +0 -0
- /package/{packageExportsMap.ts → workspace/packageExportsMap.ts} +0 -0
- /package/{repoIdentity.ts → workspace/repoIdentity.ts} +0 -0
- /package/{types.ts → workspace/types.ts} +0 -0
- /package/{workspaceLayout.ts → workspace/workspaceLayout.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import type { AkanModuleContext } from "../akanContext";
|
|
4
3
|
import type { Workspace } from "../commandDecorators";
|
|
5
|
-
import {
|
|
4
|
+
import type { AkanModuleContext } from "../context/akanContext";
|
|
5
|
+
import { tempDirs, writeText } from "../test/testHelpers";
|
|
6
6
|
import { buildAkanModuleContextIndex } from "./moduleIndex";
|
|
7
7
|
|
|
8
8
|
const tempRoot = tempDirs("akan-module-index-");
|
package/workflow/moduleIndex.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { access } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import ts from "typescript";
|
|
4
|
-
import type { AkanModuleContext } from "../akanContext";
|
|
5
4
|
import type { Workspace } from "../commandDecorators";
|
|
5
|
+
import type { AkanModuleContext } from "../context/akanContext";
|
|
6
6
|
import { moduleComponentName, moduleSourcePaths } from "./source";
|
|
7
7
|
import {
|
|
8
8
|
callExpressionName,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import type { PackageJson } from "../types";
|
|
3
|
+
import type { PackageJson } from "../workspace/types";
|
|
4
4
|
import { findToolingRolloutViolations } from "./rolloutGate";
|
|
5
5
|
|
|
6
6
|
const manifest = (overrides: Partial<PackageJson>): PackageJson => ({
|
package/workflow/rolloutGate.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import { readFile, stat, utimes, writeFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import { tempDirs } from "../test/testHelpers";
|
|
4
5
|
import { CodegenLock } from "./codegenLock";
|
|
5
|
-
import { tempDirs } from "./testHelpers";
|
|
6
6
|
|
|
7
7
|
const makeRoot = tempDirs("akan-codegen-lock-");
|
|
8
8
|
const seedHolder = async (root: string, holder: unknown) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
import { tempDirs, writeText } from "../test/testHelpers";
|
|
3
4
|
import { TypeScriptDependencyScanner } from "./dependencyScanner";
|
|
4
|
-
import { tempDirs, writeText } from "./testHelpers";
|
|
5
5
|
import type { PackageJson } from "./types";
|
|
6
6
|
|
|
7
7
|
const makeTempRoot = tempDirs("akan-devkit-depscan-");
|
|
@@ -2,8 +2,8 @@ import { builtinModules } from "node:module";
|
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import ignore from "ignore";
|
|
4
4
|
import ts from "typescript";
|
|
5
|
-
import type { App, Lib, Pkg } from "
|
|
6
|
-
import { FileSys } from "
|
|
5
|
+
import type { App, Lib, Pkg } from "../commandDecorators";
|
|
6
|
+
import { FileSys } from "../util/fileSys";
|
|
7
7
|
import type { PackageJson, TsConfigJson } from "./types";
|
|
8
8
|
|
|
9
9
|
const testFileRegex = /\.(?:test|spec)\.[cm]?[tj]sx?$/;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import { tempDirs, writeText } from "../test/testHelpers";
|
|
4
5
|
import { EnvSeed } from "./envSeed";
|
|
5
|
-
import { tempDirs, writeText } from "./testHelpers";
|
|
6
6
|
|
|
7
7
|
const makeEnvDir = tempDirs("akan-env-seed-");
|
|
8
|
-
const templates = path.resolve(import.meta.dir, "
|
|
8
|
+
const templates = path.resolve(import.meta.dir, "../../cli/templates");
|
|
9
9
|
const template = async (file: string) => await readFile(path.join(templates, file), "utf8");
|
|
10
10
|
|
|
11
11
|
const selector = (side: "server" | "client", names: string[]) =>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { Executor, LibExecutor, WorkspaceExecutor } from "
|
|
3
|
+
import { Executor, LibExecutor, WorkspaceExecutor } from "../executors";
|
|
4
|
+
import { tempDirs, writeText as write } from "../test/testHelpers";
|
|
4
5
|
import { formatLibStatuses, LibSource } from "./libSource";
|
|
5
|
-
import { tempDirs, writeText as write } from "./testHelpers";
|
|
6
6
|
|
|
7
7
|
const makeTempRoot = tempDirs("akan-libsource-");
|
|
8
8
|
|
|
@@ -8,10 +8,10 @@ import type {
|
|
|
8
8
|
LibScanResult,
|
|
9
9
|
PkgScanResult,
|
|
10
10
|
ScanResult,
|
|
11
|
-
} from "
|
|
12
|
-
import { AkanAppConfig } from "
|
|
13
|
-
import type { AppExecutor, LibExecutor, PkgExecutor } from "
|
|
14
|
-
import { WorkspaceExecutor } from "
|
|
11
|
+
} from "../akanConfig";
|
|
12
|
+
import { AkanAppConfig } from "../akanConfig";
|
|
13
|
+
import type { AppExecutor, LibExecutor, PkgExecutor } from "../executors";
|
|
14
|
+
import { WorkspaceExecutor } from "../executors/workspaceExecutor";
|
|
15
15
|
import {
|
|
16
16
|
barrelFacetDirs,
|
|
17
17
|
facetIndexShadowOf,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./workspaceLayout";
|
|
26
26
|
|
|
27
27
|
//? Imported on use: sysExecutor.ts imports this file, so a static import would load a SysExecutor subclass first.
|
|
28
|
-
const loadLibExecutor = () => import("
|
|
28
|
+
const loadLibExecutor = () => import("../executors/libExecutor");
|
|
29
29
|
|
|
30
30
|
const scalarFileTypes = ["constant", "dictionary", "document", "template", "unit", "util", "view", "zone"] as const;
|
|
31
31
|
type ScalarFileType = (typeof scalarFileTypes)[number];
|
|
@@ -519,9 +519,9 @@ export class WorkspaceInfo {
|
|
|
519
519
|
|
|
520
520
|
const [appNames, libNames, pkgNames] = await Promise.all([exec.getApps(), exec.getLibs(), exec.getPkgs()]);
|
|
521
521
|
const [appModule, libModule, pkgModule] = await Promise.all([
|
|
522
|
-
import("
|
|
522
|
+
import("../executors/appExecutor"),
|
|
523
523
|
loadLibExecutor(),
|
|
524
|
-
import("
|
|
524
|
+
import("../executors/pkgExecutor"),
|
|
525
525
|
]);
|
|
526
526
|
// TODO: prevent duplicate scan by resolving the dependency graph
|
|
527
527
|
const [appInfos, libInfos, pkgInfos] = await Promise.all([
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import { mkdir, rm } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { AppExecutor, Executor, WorkspaceExecutor } from "
|
|
4
|
+
import { AppExecutor, Executor, WorkspaceExecutor } from "../executors";
|
|
5
|
+
import { isolateEnv, tempDirs, writeText as write } from "../test/testHelpers";
|
|
5
6
|
import { formatSlicePlan, SlicePlanner } from "./slicePlanner";
|
|
6
|
-
import { isolateEnv, tempDirs, writeText as write } from "./testHelpers";
|
|
7
7
|
import type { PackageJson } from "./types";
|
|
8
8
|
|
|
9
9
|
isolateEnv({ AKAN_PUBLIC_REPO_NAME: "workspace", AKAN_PUBLIC_SERVE_DOMAIN: "example.com", AKAN_PUBLIC_ENV: "local" });
|
|
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
|
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import type { AkanChangeMap, AkanGraphEdge, AkanGraphNode } from "@akanjs/language";
|
|
6
6
|
import { AkanGraphDiff } from "@akanjs/language";
|
|
7
|
-
import type { Workspace } from "
|
|
7
|
+
import type { Workspace } from "../commandDecorators";
|
|
8
8
|
import { WorkspaceGraph } from "./workspaceGraph";
|
|
9
9
|
|
|
10
10
|
const roots: string[] = [];
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
AkanIndex,
|
|
10
10
|
} from "@akanjs/language";
|
|
11
11
|
import ts from "typescript";
|
|
12
|
-
import type { Workspace } from "
|
|
12
|
+
import type { Workspace } from "../commandDecorators";
|
|
13
13
|
import { GitRevision } from "./gitRevision";
|
|
14
14
|
|
|
15
15
|
export interface GraphScope {
|
|
@@ -140,7 +140,7 @@ describe("module test target", () => {
|
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
|
|
143
|
-
const templatesDir = path.join(import.meta.dir, "..", "cli", "templates");
|
|
143
|
+
const templatesDir = path.join(import.meta.dir, "..", "..", "cli", "templates");
|
|
144
144
|
|
|
145
145
|
type TsConfig = { references?: { path: string }[] };
|
|
146
146
|
|
package/executors.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { AppExecutor, type AppRouteSource, type PageRoot } from "./executors/appExecutor";
|
|
2
|
-
export { CommandExecutionError, type CommandExecutionErrorOptions } from "./executors/commandExecutionError";
|
|
3
|
-
export { Executor, execEmoji, type WrittenFileContent } from "./executors/executor";
|
|
4
|
-
export { LibExecutor } from "./executors/libExecutor";
|
|
5
|
-
export { ModuleExecutor } from "./executors/moduleExecutor";
|
|
6
|
-
export { PkgExecutor } from "./executors/pkgExecutor";
|
|
7
|
-
export { SysExecutor } from "./executors/sysExecutor";
|
|
8
|
-
export { parseEnvFile, WorkspaceExecutor } from "./executors/workspaceExecutor";
|
|
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
|
|
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
|
|
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
|