@codedrifters/configulator 0.0.88 → 0.0.90
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 +86 -2
- package/lib/index.js +38 -38
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +37 -38
- 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, 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, VERSION, VSCodeConfig };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Component, Project, typescript } from 'projen';
|
|
2
2
|
import { AwsCdkTypeScriptApp } from 'projen/lib/awscdk';
|
|
3
|
-
import { AwsStageType, DeploymentTargetRoleType, AwsEnvironmentType, AWS_STAGE_TYPE } from '@codedrifters/utils';
|
|
4
3
|
import * as spec from '@jsii/spec';
|
|
5
4
|
import { TypeScriptProject as TypeScriptProject$1, TypeScriptAppProject, TypeScriptProjectOptions as TypeScriptProjectOptions$1 } from 'projen/lib/typescript';
|
|
6
5
|
import { ValueOf } from 'type-fest';
|
|
@@ -9,6 +8,56 @@ import { Task, Component as Component$1, Project as Project$1 } from 'projen/lib
|
|
|
9
8
|
import { BuildWorkflow, BuildWorkflowOptions } from 'projen/lib/build';
|
|
10
9
|
import { JobStep } from 'projen/lib/github/workflows-model';
|
|
11
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Stage Types
|
|
13
|
+
*
|
|
14
|
+
* What stage of deployment is this? Dev, staging, or prod?
|
|
15
|
+
*/
|
|
16
|
+
declare const AWS_STAGE_TYPE: {
|
|
17
|
+
/**
|
|
18
|
+
* Development environment, typically used for testing and development.
|
|
19
|
+
*/
|
|
20
|
+
readonly DEV: "dev";
|
|
21
|
+
/**
|
|
22
|
+
* Staging environment, used for pre-production testing.
|
|
23
|
+
*/
|
|
24
|
+
readonly STAGE: "stage";
|
|
25
|
+
/**
|
|
26
|
+
* Production environment, used for live deployments.
|
|
27
|
+
*/
|
|
28
|
+
readonly PROD: "prod";
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Above const as a type.
|
|
32
|
+
*/
|
|
33
|
+
type AwsStageType = (typeof AWS_STAGE_TYPE)[keyof typeof AWS_STAGE_TYPE];
|
|
34
|
+
/**
|
|
35
|
+
* Deployment target role: whether an (account, region) is the primary or
|
|
36
|
+
* secondary deployment target (e.g. primary vs replica region).
|
|
37
|
+
*/
|
|
38
|
+
declare const DEPLOYMENT_TARGET_ROLE: {
|
|
39
|
+
/**
|
|
40
|
+
* Account and region that represents the primary region for this service.
|
|
41
|
+
* For example, the base DynamoDB Region for global tables.
|
|
42
|
+
*/
|
|
43
|
+
readonly PRIMARY: "primary";
|
|
44
|
+
/**
|
|
45
|
+
* Account and region that represents a secondary region for this service.
|
|
46
|
+
* For example, a replica region for a global DynamoDB table.
|
|
47
|
+
*/
|
|
48
|
+
readonly SECONDARY: "secondary";
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Type for deployment target role values.
|
|
52
|
+
*/
|
|
53
|
+
type DeploymentTargetRoleType = (typeof DEPLOYMENT_TARGET_ROLE)[keyof typeof DEPLOYMENT_TARGET_ROLE];
|
|
54
|
+
/**
|
|
55
|
+
* Type for environment type values.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated Use {@link DeploymentTargetRoleType} instead. This type is maintained for backward compatibility.
|
|
58
|
+
*/
|
|
59
|
+
type AwsEnvironmentType = DeploymentTargetRoleType;
|
|
60
|
+
|
|
12
61
|
/*******************************************************************************
|
|
13
62
|
*
|
|
14
63
|
* Git configs for this repo. This venn diagram has a great deal of overlap
|
|
@@ -347,6 +396,41 @@ interface AwsOrganization {
|
|
|
347
396
|
accounts: Array<AwsAccount>;
|
|
348
397
|
}
|
|
349
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
|
+
|
|
350
434
|
/**
|
|
351
435
|
* The FQNs for the base classes and options used by Jsii.
|
|
352
436
|
*
|
|
@@ -1308,5 +1392,5 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
1308
1392
|
preSynthesize(): void;
|
|
1309
1393
|
}
|
|
1310
1394
|
|
|
1311
|
-
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 };
|
|
1395
|
+
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, VERSION, VSCodeConfig };
|
|
1312
1396
|
export type { AwsAccount, AwsOrganization, AwsRegion, ClassTypeOptions, DeployWorkflowOptions, GitBranch, IDependencyResolver, MonorepoProjectOptions, PnpmWorkspaceOptions, RemoteCacheOptions, ResetTaskOptions, TurboRepoOptions, TurboRepoTaskOptions, TypeScriptProjectOptions };
|
package/lib/index.js
CHANGED
|
@@ -189,6 +189,7 @@ __export(index_exports, {
|
|
|
189
189
|
TurboRepoTask: () => TurboRepoTask,
|
|
190
190
|
TypeScriptConfig: () => TypeScriptConfig,
|
|
191
191
|
TypeScriptProject: () => TypeScriptProject,
|
|
192
|
+
VERSION: () => VERSION,
|
|
192
193
|
VSCodeConfig: () => VSCodeConfig
|
|
193
194
|
});
|
|
194
195
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -548,6 +549,42 @@ var AwsDeploymentConfig = class _AwsDeploymentConfig extends import_projen.Compo
|
|
|
548
549
|
}
|
|
549
550
|
};
|
|
550
551
|
|
|
552
|
+
// src/versions.ts
|
|
553
|
+
var VERSION = {
|
|
554
|
+
/**
|
|
555
|
+
* CDK CLI for workflows and command line operations.
|
|
556
|
+
*
|
|
557
|
+
* CLI and lib are versioned separately, so this is the CLI version.
|
|
558
|
+
*/
|
|
559
|
+
AWS_CDK_CLI_VERSION: "2.1104.0",
|
|
560
|
+
/**
|
|
561
|
+
* CDK Version to use for construct projects.
|
|
562
|
+
*
|
|
563
|
+
* CLI and lib are versioned separately, so this is the lib version.
|
|
564
|
+
*/
|
|
565
|
+
AWS_CDK_LIB_VERSION: "2.237.1",
|
|
566
|
+
/**
|
|
567
|
+
* Version of the AWS Constructs library to use.
|
|
568
|
+
*/
|
|
569
|
+
AWS_CONSTRUCTS_VERSION: "10.4.5",
|
|
570
|
+
/**
|
|
571
|
+
* Version of Node.js to use in CI workflows at github actions.
|
|
572
|
+
*/
|
|
573
|
+
NODE_WORKFLOWS: "24",
|
|
574
|
+
/**
|
|
575
|
+
* Version of PNPM to use in workflows at github actions.
|
|
576
|
+
*/
|
|
577
|
+
PNPM_VERSION: "10.28.2",
|
|
578
|
+
/**
|
|
579
|
+
* Version of Projen to use.
|
|
580
|
+
*/
|
|
581
|
+
PROJEN_VERSION: "0.99.9",
|
|
582
|
+
/**
|
|
583
|
+
* What version of the turborepo library should we use?
|
|
584
|
+
*/
|
|
585
|
+
TURBO_VERSION: "2.8.3"
|
|
586
|
+
};
|
|
587
|
+
|
|
551
588
|
// src/jsii/jsii-faker.ts
|
|
552
589
|
var spec = __toESM(require("@jsii/spec"));
|
|
553
590
|
var import_projen2 = require("projen");
|
|
@@ -696,44 +733,6 @@ var import_projen4 = require("projen");
|
|
|
696
733
|
var import_javascript = require("projen/lib/javascript");
|
|
697
734
|
var import_release = require("projen/lib/release");
|
|
698
735
|
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
736
|
var TypeScriptProject = class extends import_projen4.typescript.TypeScriptProject {
|
|
738
737
|
constructor(userOptions) {
|
|
739
738
|
const pnpmVersion = userOptions.parent && userOptions.parent instanceof MonorepoProject ? userOptions.parent.pnpmVersion : VERSION.PNPM_VERSION;
|
|
@@ -1504,6 +1503,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen8.Componen
|
|
|
1504
1503
|
TurboRepoTask,
|
|
1505
1504
|
TypeScriptConfig,
|
|
1506
1505
|
TypeScriptProject,
|
|
1506
|
+
VERSION,
|
|
1507
1507
|
VSCodeConfig
|
|
1508
1508
|
});
|
|
1509
1509
|
//# sourceMappingURL=index.js.map
|