@codedrifters/configulator 0.0.89 → 0.0.91
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 +36 -1
- package/lib/index.d.ts +37 -2
- package/lib/index.js +178 -59
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +170 -53
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -347,6 +347,41 @@ interface AwsOrganization {
|
|
|
347
347
|
accounts: Array<AwsAccount>;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
+
declare const VERSION: {
|
|
351
|
+
/**
|
|
352
|
+
* CDK CLI for workflows and command line operations.
|
|
353
|
+
*
|
|
354
|
+
* CLI and lib are versioned separately, so this is the CLI version.
|
|
355
|
+
*/
|
|
356
|
+
readonly AWS_CDK_CLI_VERSION: "2.1104.0";
|
|
357
|
+
/**
|
|
358
|
+
* CDK Version to use for construct projects.
|
|
359
|
+
*
|
|
360
|
+
* CLI and lib are versioned separately, so this is the lib version.
|
|
361
|
+
*/
|
|
362
|
+
readonly AWS_CDK_LIB_VERSION: "2.237.1";
|
|
363
|
+
/**
|
|
364
|
+
* Version of the AWS Constructs library to use.
|
|
365
|
+
*/
|
|
366
|
+
readonly AWS_CONSTRUCTS_VERSION: "10.4.5";
|
|
367
|
+
/**
|
|
368
|
+
* Version of Node.js to use in CI workflows at github actions.
|
|
369
|
+
*/
|
|
370
|
+
readonly NODE_WORKFLOWS: "24";
|
|
371
|
+
/**
|
|
372
|
+
* Version of PNPM to use in workflows at github actions.
|
|
373
|
+
*/
|
|
374
|
+
readonly PNPM_VERSION: "10.28.2";
|
|
375
|
+
/**
|
|
376
|
+
* Version of Projen to use.
|
|
377
|
+
*/
|
|
378
|
+
readonly PROJEN_VERSION: "0.99.9";
|
|
379
|
+
/**
|
|
380
|
+
* What version of the turborepo library should we use?
|
|
381
|
+
*/
|
|
382
|
+
readonly TURBO_VERSION: "2.8.3";
|
|
383
|
+
};
|
|
384
|
+
|
|
350
385
|
/**
|
|
351
386
|
* The FQNs for the base classes and options used by Jsii.
|
|
352
387
|
*
|
|
@@ -1308,4 +1343,4 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
1308
1343
|
preSynthesize(): void;
|
|
1309
1344
|
}
|
|
1310
1345
|
|
|
1311
|
-
export { type AwsAccount, AwsDeployWorkflow, AwsDeploymentConfig, type AwsOrganization, type AwsRegion, type ClassTypeOptions, type DeployWorkflowOptions, type GitBranch, type IDependencyResolver, JsiiFaker, MIMIMUM_RELEASE_AGE, MonorepoProject, type MonorepoProjectOptions, PROD_DEPLOY_NAME, PnpmWorkspace, type PnpmWorkspaceOptions, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, type RemoteCacheOptions, ResetTask, type ResetTaskOptions, TurboRepo, type TurboRepoOptions, TurboRepoTask, type TurboRepoTaskOptions, TypeScriptConfig, TypeScriptProject, type TypeScriptProjectOptions, VSCodeConfig };
|
|
1346
|
+
export { type AwsAccount, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, type AwsDeploymentTargetOptions, type AwsLocalDeploymentConfig, type AwsOrganization, type AwsRegion, type CiDeploymentConfig, type ClassTypeOptions, type DeployWorkflowOptions, type GitBranch, type IDependencyResolver, JsiiFaker, MIMIMUM_RELEASE_AGE, MonorepoProject, type MonorepoProjectOptions, PROD_DEPLOY_NAME, PnpmWorkspace, type PnpmWorkspaceOptions, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, type RemoteCacheOptions, ResetTask, type ResetTaskOptions, TurboRepo, type TurboRepoOptions, TurboRepoTask, type TurboRepoTaskOptions, TypeScriptConfig, TypeScriptProject, type TypeScriptProjectOptions, VERSION, VSCodeConfig };
|
package/lib/index.d.ts
CHANGED
|
@@ -396,6 +396,41 @@ interface AwsOrganization {
|
|
|
396
396
|
accounts: Array<AwsAccount>;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
+
declare const VERSION: {
|
|
400
|
+
/**
|
|
401
|
+
* CDK CLI for workflows and command line operations.
|
|
402
|
+
*
|
|
403
|
+
* CLI and lib are versioned separately, so this is the CLI version.
|
|
404
|
+
*/
|
|
405
|
+
readonly AWS_CDK_CLI_VERSION: "2.1104.0";
|
|
406
|
+
/**
|
|
407
|
+
* CDK Version to use for construct projects.
|
|
408
|
+
*
|
|
409
|
+
* CLI and lib are versioned separately, so this is the lib version.
|
|
410
|
+
*/
|
|
411
|
+
readonly AWS_CDK_LIB_VERSION: "2.237.1";
|
|
412
|
+
/**
|
|
413
|
+
* Version of the AWS Constructs library to use.
|
|
414
|
+
*/
|
|
415
|
+
readonly AWS_CONSTRUCTS_VERSION: "10.4.5";
|
|
416
|
+
/**
|
|
417
|
+
* Version of Node.js to use in CI workflows at github actions.
|
|
418
|
+
*/
|
|
419
|
+
readonly NODE_WORKFLOWS: "24";
|
|
420
|
+
/**
|
|
421
|
+
* Version of PNPM to use in workflows at github actions.
|
|
422
|
+
*/
|
|
423
|
+
readonly PNPM_VERSION: "10.28.2";
|
|
424
|
+
/**
|
|
425
|
+
* Version of Projen to use.
|
|
426
|
+
*/
|
|
427
|
+
readonly PROJEN_VERSION: "0.99.9";
|
|
428
|
+
/**
|
|
429
|
+
* What version of the turborepo library should we use?
|
|
430
|
+
*/
|
|
431
|
+
readonly TURBO_VERSION: "2.8.3";
|
|
432
|
+
};
|
|
433
|
+
|
|
399
434
|
/**
|
|
400
435
|
* The FQNs for the base classes and options used by Jsii.
|
|
401
436
|
*
|
|
@@ -1357,5 +1392,5 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
1357
1392
|
preSynthesize(): void;
|
|
1358
1393
|
}
|
|
1359
1394
|
|
|
1360
|
-
export { AwsDeployWorkflow, AwsDeploymentConfig, JsiiFaker, MIMIMUM_RELEASE_AGE, MonorepoProject, PROD_DEPLOY_NAME, PnpmWorkspace, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, ResetTask, TurboRepo, TurboRepoTask, TypeScriptConfig, TypeScriptProject, VSCodeConfig };
|
|
1361
|
-
export type { AwsAccount, AwsOrganization, AwsRegion, ClassTypeOptions, DeployWorkflowOptions, GitBranch, IDependencyResolver, MonorepoProjectOptions, PnpmWorkspaceOptions, RemoteCacheOptions, ResetTaskOptions, TurboRepoOptions, TurboRepoTaskOptions, TypeScriptProjectOptions };
|
|
1395
|
+
export { AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, JsiiFaker, MIMIMUM_RELEASE_AGE, MonorepoProject, PROD_DEPLOY_NAME, PnpmWorkspace, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, ResetTask, TurboRepo, TurboRepoTask, TypeScriptConfig, TypeScriptProject, VERSION, VSCodeConfig };
|
|
1396
|
+
export type { AwsAccount, AwsDeploymentTargetOptions, AwsLocalDeploymentConfig, AwsOrganization, AwsRegion, CiDeploymentConfig, ClassTypeOptions, DeployWorkflowOptions, GitBranch, IDependencyResolver, MonorepoProjectOptions, PnpmWorkspaceOptions, RemoteCacheOptions, ResetTaskOptions, TurboRepoOptions, TurboRepoTaskOptions, TypeScriptProjectOptions };
|
package/lib/index.js
CHANGED
|
@@ -177,6 +177,7 @@ var index_exports = {};
|
|
|
177
177
|
__export(index_exports, {
|
|
178
178
|
AwsDeployWorkflow: () => AwsDeployWorkflow,
|
|
179
179
|
AwsDeploymentConfig: () => AwsDeploymentConfig,
|
|
180
|
+
AwsDeploymentTarget: () => AwsDeploymentTarget,
|
|
180
181
|
JsiiFaker: () => JsiiFaker,
|
|
181
182
|
MIMIMUM_RELEASE_AGE: () => MIMIMUM_RELEASE_AGE,
|
|
182
183
|
MonorepoProject: () => MonorepoProject,
|
|
@@ -189,6 +190,7 @@ __export(index_exports, {
|
|
|
189
190
|
TurboRepoTask: () => TurboRepoTask,
|
|
190
191
|
TypeScriptConfig: () => TypeScriptConfig,
|
|
191
192
|
TypeScriptProject: () => TypeScriptProject,
|
|
193
|
+
VERSION: () => VERSION,
|
|
192
194
|
VSCodeConfig: () => VSCodeConfig
|
|
193
195
|
});
|
|
194
196
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -548,14 +550,167 @@ var AwsDeploymentConfig = class _AwsDeploymentConfig extends import_projen.Compo
|
|
|
548
550
|
}
|
|
549
551
|
};
|
|
550
552
|
|
|
553
|
+
// src/aws/aws-deployment-target.ts
|
|
554
|
+
var import_utils2 = __toESM(require_lib());
|
|
555
|
+
var import_projen2 = require("projen");
|
|
556
|
+
var AwsDeploymentTarget = class _AwsDeploymentTarget extends import_projen2.Component {
|
|
557
|
+
constructor(project, options) {
|
|
558
|
+
super(project);
|
|
559
|
+
/**
|
|
560
|
+
* The AWS profile to use for this deployment target.
|
|
561
|
+
*
|
|
562
|
+
* @default ['main'] when prod release type, ['feature/*'] when dev type
|
|
563
|
+
*/
|
|
564
|
+
this.branches = [];
|
|
565
|
+
/*****************************************************************************
|
|
566
|
+
*
|
|
567
|
+
* Deploy Tasks
|
|
568
|
+
*
|
|
569
|
+
* - If local deploy, add a deploy task.
|
|
570
|
+
*
|
|
571
|
+
****************************************************************************/
|
|
572
|
+
this.configureDeployTask = () => {
|
|
573
|
+
if (this.localDeployment) {
|
|
574
|
+
const taskName = [
|
|
575
|
+
"deploy",
|
|
576
|
+
this.awsStageType,
|
|
577
|
+
this.account,
|
|
578
|
+
this.region
|
|
579
|
+
].join(":");
|
|
580
|
+
const deployTask = this.project.tasks.addTask(taskName, {
|
|
581
|
+
env: this.awsDeploymentConfig.env
|
|
582
|
+
});
|
|
583
|
+
deployTask.exec(
|
|
584
|
+
`cdk deploy --lookups=false --require-approval=never --profile=${this.localDeploymentConfig?.profile} --app=${this.awsDeploymentConfig.cdkOut} "${this.localDeploymentConfig?.stackPattern}"`
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
/*****************************************************************************
|
|
589
|
+
*
|
|
590
|
+
* Watch tasks
|
|
591
|
+
*
|
|
592
|
+
* - Configure watch task to use the branch name
|
|
593
|
+
* - configure watch task to use the correct synth output location.
|
|
594
|
+
*
|
|
595
|
+
****************************************************************************/
|
|
596
|
+
this.configureWatchTask = () => {
|
|
597
|
+
if (this.localDeployment) {
|
|
598
|
+
const taskName = [
|
|
599
|
+
"watch",
|
|
600
|
+
this.awsStageType,
|
|
601
|
+
this.account,
|
|
602
|
+
this.region
|
|
603
|
+
].join(":");
|
|
604
|
+
const watchTask = this.project.tasks.addTask(taskName, {
|
|
605
|
+
env: this.awsDeploymentConfig.env
|
|
606
|
+
});
|
|
607
|
+
const synthSilent = this.project.tasks.tryFind("synth:silent");
|
|
608
|
+
if (synthSilent) {
|
|
609
|
+
watchTask.spawn(synthSilent);
|
|
610
|
+
}
|
|
611
|
+
watchTask.exec(
|
|
612
|
+
`cdk deploy --lookups=false --require-approval=never --profile=${this.localDeploymentConfig?.profile} --app=${this.awsDeploymentConfig.cdkOut} "${this.localDeploymentConfig?.stackPattern}"`
|
|
613
|
+
);
|
|
614
|
+
watchTask.exec(
|
|
615
|
+
`cdk watch --lookups=false --require-approval=never --hotswap --profile=${this.localDeploymentConfig?.profile} "${this.localDeploymentConfig?.stackPattern}"`
|
|
616
|
+
);
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
this.account = options.account;
|
|
620
|
+
this.region = options.region;
|
|
621
|
+
this.awsStageType = options.awsStageType || import_utils2.AWS_STAGE_TYPE.DEV;
|
|
622
|
+
const role = options.deploymentTargetRole ?? options.awsEnvironmentType ?? import_utils2.DEPLOYMENT_TARGET_ROLE.PRIMARY;
|
|
623
|
+
this.deploymentTargetRole = role;
|
|
624
|
+
this.awsEnvironmentType = role;
|
|
625
|
+
this.branches = options.branches ?? (this.awsStageType === import_utils2.AWS_STAGE_TYPE.PROD ? [
|
|
626
|
+
{
|
|
627
|
+
branch: "main"
|
|
628
|
+
}
|
|
629
|
+
] : [
|
|
630
|
+
{
|
|
631
|
+
branch: "feature/*"
|
|
632
|
+
}
|
|
633
|
+
]);
|
|
634
|
+
this.localDeployment = options.localDeployment ?? this.awsStageType === import_utils2.AWS_STAGE_TYPE.DEV;
|
|
635
|
+
if (this.localDeployment) {
|
|
636
|
+
const roleName = options.localDeploymentConfig?.roleName?.toLowerCase() || "poweruseraccess";
|
|
637
|
+
const profile = options.localDeploymentConfig?.profile || `${roleName}-${this.awsStageType}-${this.account}-${this.region}`;
|
|
638
|
+
const stackPattern = options.localDeploymentConfig?.stackPattern || `${this.awsStageType}/${this.awsEnvironmentType}/*-${this.account}-${this.region}`;
|
|
639
|
+
this.localDeploymentConfig = {
|
|
640
|
+
profile,
|
|
641
|
+
roleName,
|
|
642
|
+
stackPattern,
|
|
643
|
+
...options.localDeploymentConfig
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
this.ciDeployment = options.ciDeployment ?? false;
|
|
647
|
+
if (this.ciDeployment) {
|
|
648
|
+
const roleArn = options.ciDeploymentConfig?.roleArn || `arn:aws:iam::${this.account}:role/GitHubDeployer}`;
|
|
649
|
+
const stackPattern = options.ciDeploymentConfig?.stackPattern || `${this.awsStageType}/${this.awsEnvironmentType}/*-${this.account}-${this.region}`;
|
|
650
|
+
this.ciDeploymentConfig = {
|
|
651
|
+
roleArn,
|
|
652
|
+
stackPattern,
|
|
653
|
+
...options.ciDeploymentConfig
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
this.awsDeploymentConfig = AwsDeploymentConfig.of(project) || new AwsDeploymentConfig(project);
|
|
657
|
+
this.awsDeploymentConfig.awsDeploymentTargets.push(this);
|
|
658
|
+
this.configureDeployTask();
|
|
659
|
+
this.configureWatchTask();
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Static method to discovert targets in a project.
|
|
663
|
+
*/
|
|
664
|
+
static of(project) {
|
|
665
|
+
const isDefined = (c) => c instanceof _AwsDeploymentTarget;
|
|
666
|
+
return project.components.filter(isDefined);
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
// src/versions.ts
|
|
671
|
+
var VERSION = {
|
|
672
|
+
/**
|
|
673
|
+
* CDK CLI for workflows and command line operations.
|
|
674
|
+
*
|
|
675
|
+
* CLI and lib are versioned separately, so this is the CLI version.
|
|
676
|
+
*/
|
|
677
|
+
AWS_CDK_CLI_VERSION: "2.1104.0",
|
|
678
|
+
/**
|
|
679
|
+
* CDK Version to use for construct projects.
|
|
680
|
+
*
|
|
681
|
+
* CLI and lib are versioned separately, so this is the lib version.
|
|
682
|
+
*/
|
|
683
|
+
AWS_CDK_LIB_VERSION: "2.237.1",
|
|
684
|
+
/**
|
|
685
|
+
* Version of the AWS Constructs library to use.
|
|
686
|
+
*/
|
|
687
|
+
AWS_CONSTRUCTS_VERSION: "10.4.5",
|
|
688
|
+
/**
|
|
689
|
+
* Version of Node.js to use in CI workflows at github actions.
|
|
690
|
+
*/
|
|
691
|
+
NODE_WORKFLOWS: "24",
|
|
692
|
+
/**
|
|
693
|
+
* Version of PNPM to use in workflows at github actions.
|
|
694
|
+
*/
|
|
695
|
+
PNPM_VERSION: "10.28.2",
|
|
696
|
+
/**
|
|
697
|
+
* Version of Projen to use.
|
|
698
|
+
*/
|
|
699
|
+
PROJEN_VERSION: "0.99.9",
|
|
700
|
+
/**
|
|
701
|
+
* What version of the turborepo library should we use?
|
|
702
|
+
*/
|
|
703
|
+
TURBO_VERSION: "2.8.3"
|
|
704
|
+
};
|
|
705
|
+
|
|
551
706
|
// src/jsii/jsii-faker.ts
|
|
552
707
|
var spec = __toESM(require("@jsii/spec"));
|
|
553
|
-
var
|
|
708
|
+
var import_projen3 = require("projen");
|
|
554
709
|
var ProjenBaseFqn = {
|
|
555
710
|
TYPESCRIPT_PROJECT: "projen.typescript.TypeScriptProject",
|
|
556
711
|
TYPESCRIPT_PROJECT_OPTIONS: "projen.typescript.TypeScriptProjectOptions"
|
|
557
712
|
};
|
|
558
|
-
var JsiiFaker = class _JsiiFaker extends
|
|
713
|
+
var JsiiFaker = class _JsiiFaker extends import_projen3.Component {
|
|
559
714
|
constructor(project) {
|
|
560
715
|
super(project);
|
|
561
716
|
this.project = project;
|
|
@@ -566,7 +721,7 @@ var JsiiFaker = class _JsiiFaker extends import_projen2.Component {
|
|
|
566
721
|
};
|
|
567
722
|
};
|
|
568
723
|
this._assemblyName = this.project.package.packageName;
|
|
569
|
-
new
|
|
724
|
+
new import_projen3.JsonFile(project, ".jsii", {
|
|
570
725
|
obj: () => {
|
|
571
726
|
return {
|
|
572
727
|
name: this._assemblyName,
|
|
@@ -605,7 +760,7 @@ var JsiiFaker = class _JsiiFaker extends import_projen2.Component {
|
|
|
605
760
|
|
|
606
761
|
// src/pnpm/pnpm-workspace.ts
|
|
607
762
|
var import_path = require("path");
|
|
608
|
-
var
|
|
763
|
+
var import_projen4 = require("projen");
|
|
609
764
|
var MIMIMUM_RELEASE_AGE = {
|
|
610
765
|
ZERO_DAYS: 0,
|
|
611
766
|
ONE_HOUR: 60,
|
|
@@ -619,7 +774,7 @@ var MIMIMUM_RELEASE_AGE = {
|
|
|
619
774
|
SIX_DAYS: 8640,
|
|
620
775
|
ONE_WEEK: 10080
|
|
621
776
|
};
|
|
622
|
-
var PnpmWorkspace = class _PnpmWorkspace extends
|
|
777
|
+
var PnpmWorkspace = class _PnpmWorkspace extends import_projen4.Component {
|
|
623
778
|
/**
|
|
624
779
|
* Get the pnpm workspace component of a project. If it does not exist,
|
|
625
780
|
* return undefined.
|
|
@@ -643,7 +798,7 @@ var PnpmWorkspace = class _PnpmWorkspace extends import_projen3.Component {
|
|
|
643
798
|
this.defaultCatalog = options.defaultCatalog;
|
|
644
799
|
this.namedCatalogs = options.namedCatalogs;
|
|
645
800
|
project.addPackageIgnore(this.fileName);
|
|
646
|
-
new
|
|
801
|
+
new import_projen4.YamlFile(this.project, this.fileName, {
|
|
647
802
|
obj: () => {
|
|
648
803
|
const pnpmConfig = {};
|
|
649
804
|
const packages = new Array();
|
|
@@ -689,52 +844,14 @@ var import_typescript = require("projen/lib/typescript");
|
|
|
689
844
|
var import_ts_deepmerge2 = require("ts-deepmerge");
|
|
690
845
|
|
|
691
846
|
// src/tasks/reset-task.ts
|
|
692
|
-
var
|
|
847
|
+
var import_projen6 = require("projen");
|
|
693
848
|
|
|
694
849
|
// src/projects/typescript-project.ts
|
|
695
|
-
var
|
|
850
|
+
var import_projen5 = require("projen");
|
|
696
851
|
var import_javascript = require("projen/lib/javascript");
|
|
697
852
|
var import_release = require("projen/lib/release");
|
|
698
853
|
var import_ts_deepmerge = require("ts-deepmerge");
|
|
699
|
-
|
|
700
|
-
// src/versions.ts
|
|
701
|
-
var VERSION = {
|
|
702
|
-
/**
|
|
703
|
-
* CDK CLI for workflows and command line operations.
|
|
704
|
-
*
|
|
705
|
-
* CLI and lib are versioned separately, so this is the CLI version.
|
|
706
|
-
*/
|
|
707
|
-
AWS_CDK_CLI_VERSION: "2.1104.0",
|
|
708
|
-
/**
|
|
709
|
-
* CDK Version to use for construct projects.
|
|
710
|
-
*
|
|
711
|
-
* CLI and lib are versioned separately, so this is the lib version.
|
|
712
|
-
*/
|
|
713
|
-
AWS_CDK_LIB_VERSION: "2.237.1",
|
|
714
|
-
/**
|
|
715
|
-
* Version of the AWS Constructs library to use.
|
|
716
|
-
*/
|
|
717
|
-
AWS_CONSTRUCTS_VERSION: "10.4.5",
|
|
718
|
-
/**
|
|
719
|
-
* Version of Node.js to use in CI workflows at github actions.
|
|
720
|
-
*/
|
|
721
|
-
NODE_WORKFLOWS: "24",
|
|
722
|
-
/**
|
|
723
|
-
* Version of PNPM to use in workflows at github actions.
|
|
724
|
-
*/
|
|
725
|
-
PNPM_VERSION: "10.28.2",
|
|
726
|
-
/**
|
|
727
|
-
* Version of Projen to use.
|
|
728
|
-
*/
|
|
729
|
-
PROJEN_VERSION: "0.99.9",
|
|
730
|
-
/**
|
|
731
|
-
* What version of the turborepo library should we use?
|
|
732
|
-
*/
|
|
733
|
-
TURBO_VERSION: "2.8.3"
|
|
734
|
-
};
|
|
735
|
-
|
|
736
|
-
// src/projects/typescript-project.ts
|
|
737
|
-
var TypeScriptProject = class extends import_projen4.typescript.TypeScriptProject {
|
|
854
|
+
var TypeScriptProject = class extends import_projen5.typescript.TypeScriptProject {
|
|
738
855
|
constructor(userOptions) {
|
|
739
856
|
const pnpmVersion = userOptions.parent && userOptions.parent instanceof MonorepoProject ? userOptions.parent.pnpmVersion : VERSION.PNPM_VERSION;
|
|
740
857
|
const pnpmWorkspace = userOptions.parent && userOptions.parent instanceof MonorepoProject ? PnpmWorkspace.of(userOptions.parent) : void 0;
|
|
@@ -871,7 +988,7 @@ var TypeScriptProject = class extends import_projen4.typescript.TypeScriptProjec
|
|
|
871
988
|
};
|
|
872
989
|
|
|
873
990
|
// src/tasks/reset-task.ts
|
|
874
|
-
var ResetTask = class _ResetTask extends
|
|
991
|
+
var ResetTask = class _ResetTask extends import_projen6.Component {
|
|
875
992
|
constructor(project, options = {}) {
|
|
876
993
|
super(project);
|
|
877
994
|
this.project = project;
|
|
@@ -944,12 +1061,12 @@ var ResetTask = class _ResetTask extends import_projen5.Component {
|
|
|
944
1061
|
};
|
|
945
1062
|
|
|
946
1063
|
// src/vscode/vscode.ts
|
|
947
|
-
var
|
|
948
|
-
var VSCodeConfig = class extends
|
|
1064
|
+
var import_projen7 = require("projen");
|
|
1065
|
+
var VSCodeConfig = class extends import_projen7.Component {
|
|
949
1066
|
constructor(project) {
|
|
950
1067
|
super(project);
|
|
951
|
-
const vsConfig = new
|
|
952
|
-
const vsSettings = new
|
|
1068
|
+
const vsConfig = new import_projen7.vscode.VsCode(project);
|
|
1069
|
+
const vsSettings = new import_projen7.vscode.VsCodeSettings(vsConfig);
|
|
953
1070
|
vsSettings.addSetting("editor.tabSize", 2);
|
|
954
1071
|
vsSettings.addSetting("editor.detectIndentation", false);
|
|
955
1072
|
vsSettings.addSetting("editor.bracketPairColorization.enabled", true);
|
|
@@ -1213,9 +1330,9 @@ var MonorepoProject = class extends import_typescript.TypeScriptAppProject {
|
|
|
1213
1330
|
|
|
1214
1331
|
// src/typescript/typescript-config.ts
|
|
1215
1332
|
var import_node_path2 = require("path");
|
|
1216
|
-
var
|
|
1333
|
+
var import_projen8 = require("projen");
|
|
1217
1334
|
var import_path2 = require("projen/lib/util/path");
|
|
1218
|
-
var TypeScriptConfig = class extends
|
|
1335
|
+
var TypeScriptConfig = class extends import_projen8.Component {
|
|
1219
1336
|
constructor(project) {
|
|
1220
1337
|
super(project);
|
|
1221
1338
|
let tsPaths = {};
|
|
@@ -1242,13 +1359,13 @@ var TypeScriptConfig = class extends import_projen7.Component {
|
|
|
1242
1359
|
};
|
|
1243
1360
|
|
|
1244
1361
|
// src/workflows/aws-deploy-workflow.ts
|
|
1245
|
-
var
|
|
1246
|
-
var
|
|
1362
|
+
var import_utils3 = __toESM(require_lib());
|
|
1363
|
+
var import_projen9 = require("projen");
|
|
1247
1364
|
var import_build = require("projen/lib/build");
|
|
1248
1365
|
var import_github = require("projen/lib/github");
|
|
1249
1366
|
var import_workflows_model2 = require("projen/lib/github/workflows-model");
|
|
1250
1367
|
var PROD_DEPLOY_NAME = "prod-deploy";
|
|
1251
|
-
var AwsDeployWorkflow = class _AwsDeployWorkflow extends
|
|
1368
|
+
var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen9.Component {
|
|
1252
1369
|
constructor(project, options = {}) {
|
|
1253
1370
|
super(project);
|
|
1254
1371
|
this.project = project;
|
|
@@ -1258,7 +1375,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen8.Componen
|
|
|
1258
1375
|
* @deprecated Use deployment target role terminology elsewhere. This property is maintained for backward compatibility.
|
|
1259
1376
|
* @default 'primary' (this is the only type supported currently)
|
|
1260
1377
|
*/
|
|
1261
|
-
this.awsEnvironmentType =
|
|
1378
|
+
this.awsEnvironmentType = import_utils3.DEPLOYMENT_TARGET_ROLE.PRIMARY;
|
|
1262
1379
|
this.setupNode = () => {
|
|
1263
1380
|
return [
|
|
1264
1381
|
{
|
|
@@ -1367,7 +1484,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen8.Componen
|
|
|
1367
1484
|
}
|
|
1368
1485
|
const turbo = TurboRepo.of(this.rootProject);
|
|
1369
1486
|
const buildWorkflowOptions = turbo?.remoteCacheOptions ? TurboRepo.buildWorkflowOptions(turbo.remoteCacheOptions) : {};
|
|
1370
|
-
this.awsStageType = options.awsStageType ??
|
|
1487
|
+
this.awsStageType = options.awsStageType ?? import_utils3.AWS_STAGE_TYPE.DEV;
|
|
1371
1488
|
this.awsDeploymentTargets = options.awsDeploymentTargets ?? AwsDeploymentConfig.of(project)?.awsDeploymentTargets.filter(
|
|
1372
1489
|
(target) => target.awsStageType === this.awsStageType && target.ciDeployment
|
|
1373
1490
|
) ?? [];
|
|
@@ -1492,6 +1609,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen8.Componen
|
|
|
1492
1609
|
0 && (module.exports = {
|
|
1493
1610
|
AwsDeployWorkflow,
|
|
1494
1611
|
AwsDeploymentConfig,
|
|
1612
|
+
AwsDeploymentTarget,
|
|
1495
1613
|
JsiiFaker,
|
|
1496
1614
|
MIMIMUM_RELEASE_AGE,
|
|
1497
1615
|
MonorepoProject,
|
|
@@ -1504,6 +1622,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen8.Componen
|
|
|
1504
1622
|
TurboRepoTask,
|
|
1505
1623
|
TypeScriptConfig,
|
|
1506
1624
|
TypeScriptProject,
|
|
1625
|
+
VERSION,
|
|
1507
1626
|
VSCodeConfig
|
|
1508
1627
|
});
|
|
1509
1628
|
//# sourceMappingURL=index.js.map
|