-
Notifications
You must be signed in to change notification settings - Fork 40
/
.projenrc.ts
88 lines (70 loc) · 2.38 KB
/
.projenrc.ts
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
86
87
88
import { CdklabsJsiiProject } from 'cdklabs-projen-project-types';
const project = new CdklabsJsiiProject({
name: 'constructs',
projenrcTs: true,
private: false,
description: 'A programming model for software-defined state',
repositoryUrl: 'https://github.com/aws/constructs.git',
// release branches
defaultReleaseBranch: '10.x',
majorVersion: 10,
npmDistTag: 'latest',
releaseBranches: {
'3.x': { majorVersion: 3, npmDistTag: 'latest-3' },
},
devDeps: ['cdklabs-projen-project-types'],
// author
author: 'Amazon Web Services',
authorAddress: '[email protected]',
homepage: 'https://github.com/aws/constructs',
copyrightPeriod: `2018-${new Date().getFullYear()}`,
copyrightOwner: 'Amazon.com, Inc. or its affiliates. All Rights Reserved.',
keywords: ['aws', 'constructs', 'cdk', 'jsii'],
publishToMaven: {
javaPackage: 'software.constructs',
mavenGroupId: 'software.constructs',
mavenArtifactId: 'constructs',
mavenStagingProfileId: 'CONSTRUCTS_MAVEN_STAGING_PROFILE_ID',
mavenEndpoint: 'https://s01.oss.sonatype.org',
},
publishToPypi: {
distName: 'constructs',
module: 'constructs',
},
publishToNuget: {
dotNetNamespace: 'Constructs',
packageId: 'Constructs',
},
publishToGo: {
moduleName: 'github.com/aws/constructs-go',
gitUserName: 'AWS CDK Team',
gitUserEmail: '[email protected]',
},
stability: 'stable',
setNodeEngineVersion: false,
compat: true,
enablePRAutoMerge: true,
autoApproveOptions: {
allowedUsernames: ['cdklabs-automation'],
secret: 'GITHUB_TOKEN',
},
autoApproveUpgrades: true,
jsiiVersion: '5.4.x',
typescriptVersion: '5.4.x',
});
// disable go sumdb so that go deps are resolved directly against github
project.tasks.tryFind('package')?.prependExec('go env -w GOSUMDB=off');
// Also check that our dependency closure is installable using NPM, not just yarn
// (Not just additional steps, make it separate job)
project.buildWorkflow?.addPostBuildJobCommands(
'installable_with_npm',
['npm --version && npm install'],
{ checkoutRepo: true },
);
project.npmignore?.exclude('/scripts/', '.projenrc.ts');
// cdklabs-projen-project-types is overzealous about adding this dependency
project.deps.removeDependency('constructs');
// temporary to
// to resolve https://github.com/aws/jsii/issues/4658
project.addDevDeps('[email protected]');
project.synth();