-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.projenrc.ts
More file actions
85 lines (78 loc) · 2.38 KB
/
.projenrc.ts
File metadata and controls
85 lines (78 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { Vitest } from "@nikovirtala/projen-vitest";
import { GithubCredentials } from "projen/lib/github";
import { NodePackageManager } from "projen/lib/javascript";
import {
HybridModule,
publishToRegistries,
} from "projen-cdktf-hybrid-construct";
const project = new HybridModule({
author: "Hi-Fi",
authorAddress: "juho.saarinen@gmail.com",
defaultReleaseBranch: "main",
packageManager: NodePackageManager.NPM,
devDeps: [
"projen-cdktf-hybrid-construct",
"@aws-sdk/client-ecs",
"@nikovirtala/projen-vitest",
],
license: "MIT",
jsiiVersion: "~5.8.0",
constructVersion: "10.4.2",
name: "terraform-cdk-serverless-github-actions-runner-controller",
projenrcTs: true,
projenCredentials: GithubCredentials.fromPersonalAccessToken({
secret: "GITHUB_TOKEN",
}),
depsUpgradeOptions: {
workflow: false,
},
renovatebot: true,
renovatebotOptions: {
overrideConfig: {
lockFileMaintenance: { enabled: true },
},
},
repositoryUrl:
"https://github.com/Hi-Fi/terraform-cdk-serverless-github-actions-runner-controller.git",
peerDeps: [
"@cdktf/provider-azurerm",
"@cdktf/provider-random",
"@cdktf/provider-aws",
"@cdktf/provider-google",
"@cdktf/provider-null",
],
...publishToRegistries({
name: "serverless-github-actions-runner-controller",
namespace: "hi-fi",
registries: ["npm"],
}),
// use Vitest instead
jest: false,
// use Biome instead
eslint: false,
prettier: false,
biome: true,
testdir: "tests",
// cdktfVersion: "0.20.0", /* Minimum target version of this library. */
// constructExamples: undefined, /* If set a construct examples folder will be created. */
// deps: [], /* Runtime dependencies of this module. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
// packageName: undefined, /* The "name" in package.json. */
// terraformExamples: undefined, /* If set a terraform examples folder will be created. */
});
project.github?.actions.set(
"hashicorp/setup-terraform",
"hashicorp/setup-terraform@v3",
);
new Vitest(project);
// Update actions
project.github?.actions.set(
"actions/upload-artifact",
"actions/upload-artifact@v4.6.2",
);
project.github?.actions.set(
"amannn/action-semantic-pull-request",
"amannn/action-semantic-pull-request@v5.5.3",
);
project.package.addPackageResolutions("projen@0.94.0");
project.synth();