-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.projenrc.js
More file actions
89 lines (78 loc) · 2.19 KB
/
.projenrc.js
File metadata and controls
89 lines (78 loc) · 2.19 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
86
87
88
89
import { typescript, javascript } from "projen";
const project = new typescript.TypeScriptProject({
name: "cli",
description: "A simple library for composing CLI applications",
keywords: ["cli", "command-line-interface"],
authorName: "LibreWorks Contributors",
authorUrl: "https://github.com/libreworks/cli/contributors",
authorOrganization: true,
license: "MIT",
repository: "https://github.com/libreworks/cli.git",
homepage: "https://libreworks.github.io/cli/",
bugsUrl: "https://github.com/libreworks/cli/issues",
deps: [
"@libreworks/container",
"yaml",
"ora",
"chalk",
"promptly",
"commander@^12.0.0",
"@commander-js/extra-typings",
],
devDeps: ["@jest/globals", "@types/promptly", "ts-log", "tmp-promise"],
minNodeVersion: "18.0.0",
workflowNodeVersion: "18.x",
tsconfig: {
compilerOptions: {
moduleResolution: javascript.TypeScriptModuleResolution.NODE16,
module: "node16",
lib: ["DOM", "ES2022"],
target: "es2022",
allowUnreachableCode: true,
},
},
prettier: true,
codeCov: true,
docgen: true,
docsDirectory: "docs/api",
jestOptions: {
jestConfig: {
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
},
},
tsJestOptions: {
transformPattern: "^.+\\.ts$",
transformOptions: {
useESM: true,
},
},
majorVersion: 0,
defaultReleaseBranch: "main",
githubOptions: {
pullRequestLintOptions: {
semanticTitleOptions: { types: ["feat", "fix", "chore", "docs"] },
},
},
projenTokenSecret: "PROJEN_GITHUB_TOKEN",
autoApproveOptions: {
// Anyone with write access to this repository can have auto-approval.
allowedUsernames: [],
},
depsUpgradeOptions: {
workflowOptions: {
labels: ["auto-approve"],
schedule: javascript.UpgradeDependenciesSchedule.WEEKLY,
},
},
releaseToNpm: true,
packageName: "@libreworks/cli",
npmAccess: javascript.NpmAccess.PUBLIC,
npmignore: ["docs"],
});
project.package.file.addOverride("type", "module");
project.package.file.addOverride("private", false);
project.testTask.env("NODE_OPTIONS", "--experimental-vm-modules");
project.synth();