forked from cdklabs/publib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
32 lines (27 loc) · 1.06 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
const { TypeScriptProject } = require('projen');
const project = new TypeScriptProject({
defaultReleaseBranch: 'master',
name: 'jsii-release',
description: 'Release jsii modules to multiple package managers',
releaseToNpm: true,
keywords: ['jsii'],
repository: 'https://github.com/aws/jsii-release.git',
authorName: 'Amazon Web Services',
authorOrganization: true,
authorUrl: 'https://aws.amazon.com',
homepage: 'https://github.com/aws/jsii-release',
projenUpgradeSecret: 'PROJEN_GITHUB_TOKEN',
autoApproveOptions: {
allowedUsernames: ['cdklabs-automation'],
secret: 'GITHUB_TOKEN',
},
autoApproveUpgrades: true,
});
// create tarball and move to dist/js so release workflow can pick it up from there.
project.buildTask.exec('yarn pack');
project.buildTask.exec('mkdir -p dist/js');
project.buildTask.exec('mv ./jsii-release-v*.tgz dist/js');
// we can't use 9.x because it doesn't work with node 10.
const fsExtraVersion = '^8.0.0';
project.addDeps('shlex', `fs-extra@${fsExtraVersion}`, `@types/fs-extra@${fsExtraVersion}`);
project.synth();