@codedrifters/configulator 0.0.87 → 0.0.89
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.ts +55 -5
- package/package.json +3 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,14 +1,63 @@
|
|
|
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';
|
|
7
|
-
import {
|
|
8
|
-
import { Component as Component$1, Project as Project$1
|
|
9
|
-
import {
|
|
6
|
+
import { UpgradeDependencies, UpgradeDependenciesOptions, NodeProject } from 'projen/lib/javascript';
|
|
7
|
+
import { Task, Component as Component$1, Project as Project$1 } from 'projen/lib';
|
|
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
|
|
@@ -1308,4 +1357,5 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
1308
1357
|
preSynthesize(): void;
|
|
1309
1358
|
}
|
|
1310
1359
|
|
|
1311
|
-
export {
|
|
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 };
|
package/package.json
CHANGED
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
"jest-junit": "^16",
|
|
28
28
|
"prettier": "^3.7.4",
|
|
29
29
|
"projen": "0.99.9",
|
|
30
|
+
"rollup": "^4.57.1",
|
|
31
|
+
"rollup-plugin-dts": "^6.3.0",
|
|
30
32
|
"tsup": "^8.5.1",
|
|
31
33
|
"typescript": "^5.9.3",
|
|
32
34
|
"@codedrifters/utils": "0.0.0"
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
},
|
|
43
45
|
"main": "lib/index.js",
|
|
44
46
|
"license": "MIT",
|
|
45
|
-
"version": "0.0.
|
|
47
|
+
"version": "0.0.89",
|
|
46
48
|
"types": "lib/index.d.ts",
|
|
47
49
|
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\".",
|
|
48
50
|
"scripts": {
|