-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.projenrc.js
30 lines (28 loc) · 967 Bytes
/
.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
const { typescript } = require('projen');
const project = new typescript.TypeScriptProject({
defaultReleaseBranch: 'main',
release: false,
name: 'pr-triage-manager',
description: 'Triage PRs as they come in based on linked issues',
repository: 'https://github.com/kaizen3031593/pr-triage-manager',
authorName: 'Kaizen Conroy',
deps: ['@actions/core', '@actions/github'],
autoApproveUpgrades: true,
autoApproveOptions: {
allowedUsernames: ['cdklabs-automation'],
secret: 'GITHUB_TOKEN',
},
devDeps: ['@vercel/ncc'],
tsconfig: {
compilerOptions: {
target: 'ES2020',
lib: ['es2020'], // allow Array.prototype.flat etc. and string.matchAll
},
},
});
// package as a single runnable .js file in /dist
project.packageTask.reset('ncc build --source-map --license licenses.txt');
project.package.addField('main', 'lib/index.js');
project.addGitIgnore('!/dist/');
project.annotateGenerated('/dist/**');
project.synth();