forked from cdklabs/cdk-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
50 lines (46 loc) · 1.17 KB
/
.projenrc.js
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
const { typescript } = require('projen');
const project = new typescript.TypeScriptProject({
name: 'cdk-import',
description: 'Toolkit to import CFN resource types and generate L1 constructs',
defaultReleaseBranch: 'main',
deps: [
'json2jsii',
'aws-cdk-lib',
'aws-sdk',
'constructs@^10',
'minimist',
'minimist-subcommand',
'proxy-agent',
'case',
'jsii-srcmak',
],
devDeps: [
'jsii',
'ts-node',
'aws-cdk-lib',
'constructs@^10',
],
bin: {
'cdk-import': 'lib/cli.js',
},
tsconfig: {
compilerOptions: {
skipLibCheck: true,
},
},
minNodeVersion: '14.17.0',
projenUpgradeSecret: 'PROJEN_GITHUB_TOKEN',
autoApproveUpgrades: true,
autoApproveOptions: { allowedUsernames: ['cdklabs-automation'], secret: 'GITHUB_TOKEN' },
});
project.release.publisher.publishToNpm();
project.addGitIgnore('/.tmp/');
project.addPackageIgnore('/.tmp/');
// we use jsii for testing, and the current jsii
// compiles projects with typescript < 4.0
// need to pin some @types packages to older versions
project.package.addPackageResolutions(
'@types/[email protected]',
'@types/[email protected]',
);
project.synth();