@codedrifters/configulator 0.0.242 → 0.0.243
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/lib/index.d.mts +6 -1
- package/lib/index.d.ts +6 -1
- package/lib/index.js +56 -49
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +64 -58
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -3627,6 +3627,11 @@ declare function resolveTypeScriptProjectOutdir(packageName: string | undefined)
|
|
|
3627
3627
|
* under the canonical `apps/` root.
|
|
3628
3628
|
*/
|
|
3629
3629
|
declare function resolveAwsCdkProjectOutdir(packageName: string | undefined): string;
|
|
3630
|
+
/**
|
|
3631
|
+
* Convenience wrapper that resolves an `outdir` for an `AstroProject`
|
|
3632
|
+
* under the canonical `sites/` root.
|
|
3633
|
+
*/
|
|
3634
|
+
declare function resolveAstroProjectOutdir(packageName: string | undefined): string;
|
|
3630
3635
|
|
|
3631
3636
|
/**
|
|
3632
3637
|
* A single Starlight social icon link.
|
|
@@ -3769,4 +3774,4 @@ declare const COMPLETE_JOB_ID = "complete";
|
|
|
3769
3774
|
*/
|
|
3770
3775
|
declare function addBuildCompleteJob(buildWorkflow: BuildWorkflow): void;
|
|
3771
3776
|
|
|
3772
|
-
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, type AgentConfigOptions, type AgentModel, type AgentPlatform, type AgentPlatformOverrides, type AgentProcedure, type AgentRule, type AgentRuleBundle, type AgentRuleScope, type AgentSkill, type AgentSubAgent, type AgentSubAgentPlatformOverrides, type ApproveMergeUpgradeOptions, AstroConfig, type AstroConfigOptions, type AstroIntegrationSpec, AstroOutput, AstroProject, type AstroProjectOptions, type AwsAccount, AwsCdkProject, type AwsCdkProjectOptions, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, type AwsDeploymentTargetOptions, type AwsLocalDeploymentConfig, type AwsOrganization, type AwsRegion, AwsTeardownWorkflow, type AwsTeardownWorkflowOptions, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, type CiDeploymentConfig, type ClassTypeOptions, type ClaudeAutoModeConfig, type ClaudeHookAction, type ClaudeHookEntry, type ClaudeHooksConfig, type ClaudePermissionsConfig, type ClaudeRuleTarget, type ClaudeSandboxConfig, type ClaudeSettingsConfig, type CopilotHandoff, type CursorHookAction, type CursorHooksConfig, type CursorSettingsConfig, DEFAULT_PRIORITY_LABELS, DEFAULT_STATUS_LABELS, DEFAULT_TEARDOWN_BRANCH_PATTERNS, DEFAULT_TYPE_LABELS, type DeployWorkflowOptions, type DeploymentMetadata, type GitBranch, type GitHubBoardMetadata, type GitHubProjectMetadata, type GitHubSprintMetadata, type IDependencyResolver, JsiiFaker, LAYOUT_ENFORCEMENT, LAYOUT_ROOT_BY_PROJECT_TYPE, type LabelDefinition, type LayoutEnforcement, type LayoutViolation, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MINIMUM_RELEASE_AGE, MONOREPO_LAYOUT, type McpServerConfig, type McpTransport, type MergeMethod, type MonorepoLayoutRoot, MonorepoProject, type MonorepoProjectOptions, type OrganizationMetadata, PROD_DEPLOY_NAME, PnpmWorkspace, type PnpmWorkspaceOptions, ProjectMetadata, type ProjectMetadataOptions, REQUIREMENTS_WRITER_PATHS, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, type RemoteCacheOptions, type RepositoryMetadata, ResetTask, type ResetTaskOptions, type ResolvedProjectMetadata, type SlackMetadata, type StarlightEditLink, type StarlightLogo, StarlightProject, type StarlightProjectOptions, type StarlightSidebarItem, type StarlightSocialLink, type SyncLabelsOptions, type TemplateResolveResult, TestRunner, TurboRepo, type TurboRepoOptions, TurboRepoTask, type TurboRepoTaskOptions, TypeScriptConfig, TypeScriptProject, type TypeScriptProjectOptions, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, type VersionKey, Vitest, type VitestConfigOptions, type VitestOptions, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, addSyncLabelsWorkflow, awsCdkBundle, baseBundle, bcmWriterBundle, companyProfileBundle, formatLayoutViolation, getLatestEligibleVersion, githubWorkflowBundle, industryDiscoveryBundle, jestBundle, maintenanceAuditBundle, meetingAnalysisBundle, orchestratorBundle, peopleProfileBundle, pnpmBundle, prReviewBundle, projenBundle, requirementsAnalystBundle, requirementsReviewerBundle, requirementsWriterBundle, researchPipelineBundle, resolveAwsCdkProjectOutdir, resolveModelAlias, resolveOutdirFromPackageName, resolveTemplateVariables, resolveTypeScriptProjectOutdir, slackBundle, softwareProfileBundle, turborepoBundle, typescriptBundle, validateMonorepoLayout, vitestBundle };
|
|
3777
|
+
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, type AgentConfigOptions, type AgentModel, type AgentPlatform, type AgentPlatformOverrides, type AgentProcedure, type AgentRule, type AgentRuleBundle, type AgentRuleScope, type AgentSkill, type AgentSubAgent, type AgentSubAgentPlatformOverrides, type ApproveMergeUpgradeOptions, AstroConfig, type AstroConfigOptions, type AstroIntegrationSpec, AstroOutput, AstroProject, type AstroProjectOptions, type AwsAccount, AwsCdkProject, type AwsCdkProjectOptions, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, type AwsDeploymentTargetOptions, type AwsLocalDeploymentConfig, type AwsOrganization, type AwsRegion, AwsTeardownWorkflow, type AwsTeardownWorkflowOptions, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, type CiDeploymentConfig, type ClassTypeOptions, type ClaudeAutoModeConfig, type ClaudeHookAction, type ClaudeHookEntry, type ClaudeHooksConfig, type ClaudePermissionsConfig, type ClaudeRuleTarget, type ClaudeSandboxConfig, type ClaudeSettingsConfig, type CopilotHandoff, type CursorHookAction, type CursorHooksConfig, type CursorSettingsConfig, DEFAULT_PRIORITY_LABELS, DEFAULT_STATUS_LABELS, DEFAULT_TEARDOWN_BRANCH_PATTERNS, DEFAULT_TYPE_LABELS, type DeployWorkflowOptions, type DeploymentMetadata, type GitBranch, type GitHubBoardMetadata, type GitHubProjectMetadata, type GitHubSprintMetadata, type IDependencyResolver, JsiiFaker, LAYOUT_ENFORCEMENT, LAYOUT_ROOT_BY_PROJECT_TYPE, type LabelDefinition, type LayoutEnforcement, type LayoutViolation, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MINIMUM_RELEASE_AGE, MONOREPO_LAYOUT, type McpServerConfig, type McpTransport, type MergeMethod, type MonorepoLayoutRoot, MonorepoProject, type MonorepoProjectOptions, type OrganizationMetadata, PROD_DEPLOY_NAME, PnpmWorkspace, type PnpmWorkspaceOptions, ProjectMetadata, type ProjectMetadataOptions, REQUIREMENTS_WRITER_PATHS, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, type RemoteCacheOptions, type RepositoryMetadata, ResetTask, type ResetTaskOptions, type ResolvedProjectMetadata, type SlackMetadata, type StarlightEditLink, type StarlightLogo, StarlightProject, type StarlightProjectOptions, type StarlightSidebarItem, type StarlightSocialLink, type SyncLabelsOptions, type TemplateResolveResult, TestRunner, TurboRepo, type TurboRepoOptions, TurboRepoTask, type TurboRepoTaskOptions, TypeScriptConfig, TypeScriptProject, type TypeScriptProjectOptions, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, type VersionKey, Vitest, type VitestConfigOptions, type VitestOptions, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, addSyncLabelsWorkflow, awsCdkBundle, baseBundle, bcmWriterBundle, companyProfileBundle, formatLayoutViolation, getLatestEligibleVersion, githubWorkflowBundle, industryDiscoveryBundle, jestBundle, maintenanceAuditBundle, meetingAnalysisBundle, orchestratorBundle, peopleProfileBundle, pnpmBundle, prReviewBundle, projenBundle, requirementsAnalystBundle, requirementsReviewerBundle, requirementsWriterBundle, researchPipelineBundle, resolveAstroProjectOutdir, resolveAwsCdkProjectOutdir, resolveModelAlias, resolveOutdirFromPackageName, resolveTemplateVariables, resolveTypeScriptProjectOutdir, slackBundle, softwareProfileBundle, turborepoBundle, typescriptBundle, validateMonorepoLayout, vitestBundle };
|
package/lib/index.d.ts
CHANGED
|
@@ -3676,6 +3676,11 @@ declare function resolveTypeScriptProjectOutdir(packageName: string | undefined)
|
|
|
3676
3676
|
* under the canonical `apps/` root.
|
|
3677
3677
|
*/
|
|
3678
3678
|
declare function resolveAwsCdkProjectOutdir(packageName: string | undefined): string;
|
|
3679
|
+
/**
|
|
3680
|
+
* Convenience wrapper that resolves an `outdir` for an `AstroProject`
|
|
3681
|
+
* under the canonical `sites/` root.
|
|
3682
|
+
*/
|
|
3683
|
+
declare function resolveAstroProjectOutdir(packageName: string | undefined): string;
|
|
3679
3684
|
|
|
3680
3685
|
/**
|
|
3681
3686
|
* A single Starlight social icon link.
|
|
@@ -3818,5 +3823,5 @@ declare const COMPLETE_JOB_ID = "complete";
|
|
|
3818
3823
|
*/
|
|
3819
3824
|
declare function addBuildCompleteJob(buildWorkflow: BuildWorkflow): void;
|
|
3820
3825
|
|
|
3821
|
-
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, AstroConfig, AstroOutput, AstroProject, AwsCdkProject, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, AwsTeardownWorkflow, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, DEFAULT_PRIORITY_LABELS, DEFAULT_STATUS_LABELS, DEFAULT_TEARDOWN_BRANCH_PATTERNS, DEFAULT_TYPE_LABELS, JsiiFaker, LAYOUT_ENFORCEMENT, LAYOUT_ROOT_BY_PROJECT_TYPE, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MINIMUM_RELEASE_AGE, MONOREPO_LAYOUT, MonorepoProject, PROD_DEPLOY_NAME, PnpmWorkspace, ProjectMetadata, REQUIREMENTS_WRITER_PATHS, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, ResetTask, StarlightProject, TestRunner, TurboRepo, TurboRepoTask, TypeScriptConfig, TypeScriptProject, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, Vitest, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, addSyncLabelsWorkflow, awsCdkBundle, baseBundle, bcmWriterBundle, companyProfileBundle, formatLayoutViolation, getLatestEligibleVersion, githubWorkflowBundle, industryDiscoveryBundle, jestBundle, maintenanceAuditBundle, meetingAnalysisBundle, orchestratorBundle, peopleProfileBundle, pnpmBundle, prReviewBundle, projenBundle, requirementsAnalystBundle, requirementsReviewerBundle, requirementsWriterBundle, researchPipelineBundle, resolveAwsCdkProjectOutdir, resolveModelAlias, resolveOutdirFromPackageName, resolveTemplateVariables, resolveTypeScriptProjectOutdir, slackBundle, softwareProfileBundle, turborepoBundle, typescriptBundle, validateMonorepoLayout, vitestBundle };
|
|
3826
|
+
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, AstroConfig, AstroOutput, AstroProject, AwsCdkProject, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, AwsTeardownWorkflow, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, DEFAULT_PRIORITY_LABELS, DEFAULT_STATUS_LABELS, DEFAULT_TEARDOWN_BRANCH_PATTERNS, DEFAULT_TYPE_LABELS, JsiiFaker, LAYOUT_ENFORCEMENT, LAYOUT_ROOT_BY_PROJECT_TYPE, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MINIMUM_RELEASE_AGE, MONOREPO_LAYOUT, MonorepoProject, PROD_DEPLOY_NAME, PnpmWorkspace, ProjectMetadata, REQUIREMENTS_WRITER_PATHS, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, ResetTask, StarlightProject, TestRunner, TurboRepo, TurboRepoTask, TypeScriptConfig, TypeScriptProject, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, Vitest, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, addSyncLabelsWorkflow, awsCdkBundle, baseBundle, bcmWriterBundle, companyProfileBundle, formatLayoutViolation, getLatestEligibleVersion, githubWorkflowBundle, industryDiscoveryBundle, jestBundle, maintenanceAuditBundle, meetingAnalysisBundle, orchestratorBundle, peopleProfileBundle, pnpmBundle, prReviewBundle, projenBundle, requirementsAnalystBundle, requirementsReviewerBundle, requirementsWriterBundle, researchPipelineBundle, resolveAstroProjectOutdir, resolveAwsCdkProjectOutdir, resolveModelAlias, resolveOutdirFromPackageName, resolveTemplateVariables, resolveTypeScriptProjectOutdir, slackBundle, softwareProfileBundle, turborepoBundle, typescriptBundle, validateMonorepoLayout, vitestBundle };
|
|
3822
3827
|
export type { AgentConfigOptions, AgentModel, AgentPlatform, AgentPlatformOverrides, AgentProcedure, AgentRule, AgentRuleBundle, AgentRuleScope, AgentSkill, AgentSubAgent, AgentSubAgentPlatformOverrides, ApproveMergeUpgradeOptions, AstroConfigOptions, AstroIntegrationSpec, AstroProjectOptions, AwsAccount, AwsCdkProjectOptions, AwsDeploymentTargetOptions, AwsLocalDeploymentConfig, AwsOrganization, AwsRegion, AwsTeardownWorkflowOptions, CiDeploymentConfig, ClassTypeOptions, ClaudeAutoModeConfig, ClaudeHookAction, ClaudeHookEntry, ClaudeHooksConfig, ClaudePermissionsConfig, ClaudeRuleTarget, ClaudeSandboxConfig, ClaudeSettingsConfig, CopilotHandoff, CursorHookAction, CursorHooksConfig, CursorSettingsConfig, DeployWorkflowOptions, DeploymentMetadata, GitBranch, GitHubBoardMetadata, GitHubProjectMetadata, GitHubSprintMetadata, IDependencyResolver, LabelDefinition, LayoutEnforcement, LayoutViolation, McpServerConfig, McpTransport, MergeMethod, MonorepoLayoutRoot, MonorepoProjectOptions, OrganizationMetadata, PnpmWorkspaceOptions, ProjectMetadataOptions, RemoteCacheOptions, RepositoryMetadata, ResetTaskOptions, ResolvedProjectMetadata, SlackMetadata, StarlightEditLink, StarlightLogo, StarlightProjectOptions, StarlightSidebarItem, StarlightSocialLink, SyncLabelsOptions, TemplateResolveResult, TurboRepoOptions, TurboRepoTaskOptions, TypeScriptProjectOptions, VersionKey, VitestConfigOptions, VitestOptions };
|
package/lib/index.js
CHANGED
|
@@ -244,6 +244,7 @@ __export(index_exports, {
|
|
|
244
244
|
requirementsReviewerBundle: () => requirementsReviewerBundle,
|
|
245
245
|
requirementsWriterBundle: () => requirementsWriterBundle,
|
|
246
246
|
researchPipelineBundle: () => researchPipelineBundle,
|
|
247
|
+
resolveAstroProjectOutdir: () => resolveAstroProjectOutdir,
|
|
247
248
|
resolveAwsCdkProjectOutdir: () => resolveAwsCdkProjectOutdir,
|
|
248
249
|
resolveModelAlias: () => resolveModelAlias,
|
|
249
250
|
resolveOutdirFromPackageName: () => resolveOutdirFromPackageName,
|
|
@@ -15637,18 +15638,6 @@ var JsiiFaker = class _JsiiFaker extends import_projen12.Component {
|
|
|
15637
15638
|
// src/projects/astro-project.ts
|
|
15638
15639
|
var import_projen17 = require("projen");
|
|
15639
15640
|
|
|
15640
|
-
// src/projects/typescript-project.ts
|
|
15641
|
-
var import_projen16 = require("projen");
|
|
15642
|
-
var import_javascript4 = require("projen/lib/javascript");
|
|
15643
|
-
var import_release = require("projen/lib/release");
|
|
15644
|
-
var import_ts_deepmerge2 = require("ts-deepmerge");
|
|
15645
|
-
|
|
15646
|
-
// src/projects/monorepo-project.ts
|
|
15647
|
-
var import_github2 = require("projen/lib/github");
|
|
15648
|
-
var import_javascript3 = require("projen/lib/javascript");
|
|
15649
|
-
var import_typescript3 = require("projen/lib/typescript");
|
|
15650
|
-
var import_ts_deepmerge = require("ts-deepmerge");
|
|
15651
|
-
|
|
15652
15641
|
// src/projects/monorepo-layout.ts
|
|
15653
15642
|
var MONOREPO_LAYOUT = {
|
|
15654
15643
|
DOCS: "docs",
|
|
@@ -15720,6 +15709,58 @@ function relativeOutdir(rootOutdir, subOutdir) {
|
|
|
15720
15709
|
return subOutdir;
|
|
15721
15710
|
}
|
|
15722
15711
|
|
|
15712
|
+
// src/projects/resolve-outdir.ts
|
|
15713
|
+
function parseScopedName(input) {
|
|
15714
|
+
if (!input.startsWith("@")) {
|
|
15715
|
+
return void 0;
|
|
15716
|
+
}
|
|
15717
|
+
const slashIndex = input.indexOf("/");
|
|
15718
|
+
if (slashIndex < 2) {
|
|
15719
|
+
return void 0;
|
|
15720
|
+
}
|
|
15721
|
+
const scope = input.slice(0, slashIndex);
|
|
15722
|
+
const name = input.slice(slashIndex + 1);
|
|
15723
|
+
if (name.length === 0 || name.includes("/")) {
|
|
15724
|
+
return void 0;
|
|
15725
|
+
}
|
|
15726
|
+
return { scope, name };
|
|
15727
|
+
}
|
|
15728
|
+
function resolveOutdirFromPackageName(packageName, root) {
|
|
15729
|
+
if (packageName === void 0 || packageName.length === 0) {
|
|
15730
|
+
throw new Error(
|
|
15731
|
+
"Cannot derive outdir: packageName (or name) is required when outdir is omitted. Either pass a scoped `packageName` / `name` like `@scope/foo`, or set `outdir` explicitly."
|
|
15732
|
+
);
|
|
15733
|
+
}
|
|
15734
|
+
const parsed = parseScopedName(packageName);
|
|
15735
|
+
if (parsed === void 0) {
|
|
15736
|
+
throw new Error(
|
|
15737
|
+
`Cannot derive outdir from unscoped packageName "${packageName}". Either use a scoped name like \`@scope/foo\`, or set \`outdir\` explicitly. Configulator places sub-projects at "${root}/<scope>/<name>".`
|
|
15738
|
+
);
|
|
15739
|
+
}
|
|
15740
|
+
return `${root}/${parsed.scope}/${parsed.name}`;
|
|
15741
|
+
}
|
|
15742
|
+
function resolveTypeScriptProjectOutdir(packageName) {
|
|
15743
|
+
return resolveOutdirFromPackageName(packageName, MONOREPO_LAYOUT.PACKAGES);
|
|
15744
|
+
}
|
|
15745
|
+
function resolveAwsCdkProjectOutdir(packageName) {
|
|
15746
|
+
return resolveOutdirFromPackageName(packageName, MONOREPO_LAYOUT.APPS);
|
|
15747
|
+
}
|
|
15748
|
+
function resolveAstroProjectOutdir(packageName) {
|
|
15749
|
+
return resolveOutdirFromPackageName(packageName, MONOREPO_LAYOUT.SITES);
|
|
15750
|
+
}
|
|
15751
|
+
|
|
15752
|
+
// src/projects/typescript-project.ts
|
|
15753
|
+
var import_projen16 = require("projen");
|
|
15754
|
+
var import_javascript4 = require("projen/lib/javascript");
|
|
15755
|
+
var import_release = require("projen/lib/release");
|
|
15756
|
+
var import_ts_deepmerge2 = require("ts-deepmerge");
|
|
15757
|
+
|
|
15758
|
+
// src/projects/monorepo-project.ts
|
|
15759
|
+
var import_github2 = require("projen/lib/github");
|
|
15760
|
+
var import_javascript3 = require("projen/lib/javascript");
|
|
15761
|
+
var import_typescript3 = require("projen/lib/typescript");
|
|
15762
|
+
var import_ts_deepmerge = require("ts-deepmerge");
|
|
15763
|
+
|
|
15723
15764
|
// src/tasks/reset-task.ts
|
|
15724
15765
|
var import_projen13 = require("projen");
|
|
15725
15766
|
var ResetTask = class _ResetTask extends import_projen13.Component {
|
|
@@ -16495,43 +16536,6 @@ var MonorepoProject = class extends import_typescript3.TypeScriptAppProject {
|
|
|
16495
16536
|
}
|
|
16496
16537
|
};
|
|
16497
16538
|
|
|
16498
|
-
// src/projects/resolve-outdir.ts
|
|
16499
|
-
function parseScopedName(input) {
|
|
16500
|
-
if (!input.startsWith("@")) {
|
|
16501
|
-
return void 0;
|
|
16502
|
-
}
|
|
16503
|
-
const slashIndex = input.indexOf("/");
|
|
16504
|
-
if (slashIndex < 2) {
|
|
16505
|
-
return void 0;
|
|
16506
|
-
}
|
|
16507
|
-
const scope = input.slice(0, slashIndex);
|
|
16508
|
-
const name = input.slice(slashIndex + 1);
|
|
16509
|
-
if (name.length === 0 || name.includes("/")) {
|
|
16510
|
-
return void 0;
|
|
16511
|
-
}
|
|
16512
|
-
return { scope, name };
|
|
16513
|
-
}
|
|
16514
|
-
function resolveOutdirFromPackageName(packageName, root) {
|
|
16515
|
-
if (packageName === void 0 || packageName.length === 0) {
|
|
16516
|
-
throw new Error(
|
|
16517
|
-
"Cannot derive outdir: packageName (or name) is required when outdir is omitted. Either pass a scoped `packageName` / `name` like `@scope/foo`, or set `outdir` explicitly."
|
|
16518
|
-
);
|
|
16519
|
-
}
|
|
16520
|
-
const parsed = parseScopedName(packageName);
|
|
16521
|
-
if (parsed === void 0) {
|
|
16522
|
-
throw new Error(
|
|
16523
|
-
`Cannot derive outdir from unscoped packageName "${packageName}". Either use a scoped name like \`@scope/foo\`, or set \`outdir\` explicitly. Configulator places sub-projects at "${root}/<scope>/<name>".`
|
|
16524
|
-
);
|
|
16525
|
-
}
|
|
16526
|
-
return `${root}/${parsed.scope}/${parsed.name}`;
|
|
16527
|
-
}
|
|
16528
|
-
function resolveTypeScriptProjectOutdir(packageName) {
|
|
16529
|
-
return resolveOutdirFromPackageName(packageName, MONOREPO_LAYOUT.PACKAGES);
|
|
16530
|
-
}
|
|
16531
|
-
function resolveAwsCdkProjectOutdir(packageName) {
|
|
16532
|
-
return resolveOutdirFromPackageName(packageName, MONOREPO_LAYOUT.APPS);
|
|
16533
|
-
}
|
|
16534
|
-
|
|
16535
16539
|
// src/projects/typescript-project.ts
|
|
16536
16540
|
var TestRunner = {
|
|
16537
16541
|
JEST: "jest",
|
|
@@ -16718,9 +16722,11 @@ var TypeScriptProject = class extends import_projen16.typescript.TypeScriptProje
|
|
|
16718
16722
|
// src/projects/astro-project.ts
|
|
16719
16723
|
var AstroProject = class extends TypeScriptProject {
|
|
16720
16724
|
constructor(userOptions) {
|
|
16725
|
+
const resolvedOutdir = userOptions.outdir ?? resolveAstroProjectOutdir(userOptions.packageName ?? userOptions.name);
|
|
16721
16726
|
const options = {
|
|
16722
16727
|
testRunner: TestRunner.VITEST,
|
|
16723
16728
|
...userOptions,
|
|
16729
|
+
outdir: resolvedOutdir,
|
|
16724
16730
|
depsUpgradeOptions: {
|
|
16725
16731
|
...userOptions.depsUpgradeOptions,
|
|
16726
16732
|
exclude: [...userOptions.depsUpgradeOptions?.exclude ?? [], "astro"]
|
|
@@ -17680,6 +17686,7 @@ var TypeScriptConfig = class extends import_projen22.Component {
|
|
|
17680
17686
|
requirementsReviewerBundle,
|
|
17681
17687
|
requirementsWriterBundle,
|
|
17682
17688
|
researchPipelineBundle,
|
|
17689
|
+
resolveAstroProjectOutdir,
|
|
17683
17690
|
resolveAwsCdkProjectOutdir,
|
|
17684
17691
|
resolveModelAlias,
|
|
17685
17692
|
resolveOutdirFromPackageName,
|