@mrgrain/cdk-esbuild 2.0.0-alpha.5 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +21 -21
- package/.jsii +411 -196
- package/.projenrc.ts +20 -3
- package/API.md +333 -45
- package/CHANGELOG.md +11 -250
- package/README.md +55 -5
- package/lib/asset.js +5 -4
- package/lib/bundler.d.ts +17 -4
- package/lib/bundler.js +4 -3
- package/lib/code.js +2 -2
- package/lib/esbuild-types.d.ts +213 -0
- package/lib/esbuild-types.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/inline-code.d.ts +50 -19
- package/lib/inline-code.js +51 -29
- package/lib/source.js +2 -2
- package/package.json +28 -30
package/.projenrc.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AwsCdkConstructLibrary,
|
|
3
|
+
IgnoreFile,
|
|
3
4
|
JsonFile,
|
|
4
5
|
NodePackageManager,
|
|
5
6
|
release,
|
|
@@ -17,6 +18,9 @@ const project = new AwsCdkConstructLibrary({
|
|
|
17
18
|
lintProjenRc: false,
|
|
18
19
|
dirs: ['src', 'projenrc', '.projenrc.ts'],
|
|
19
20
|
},
|
|
21
|
+
depsUpgradeOptions: {
|
|
22
|
+
workflow: false,
|
|
23
|
+
},
|
|
20
24
|
|
|
21
25
|
// Project info
|
|
22
26
|
name: '@mrgrain/cdk-esbuild',
|
|
@@ -42,12 +46,20 @@ const project = new AwsCdkConstructLibrary({
|
|
|
42
46
|
license: 'MIT',
|
|
43
47
|
copyrightOwner: 'Moritz Kornher',
|
|
44
48
|
|
|
49
|
+
// Testing & Linting
|
|
50
|
+
githubOptions: {
|
|
51
|
+
pullRequestLintOptions: {
|
|
52
|
+
semanticTitleOptions: {
|
|
53
|
+
types: ['feat', 'fix', 'chore', 'docs', 'ci'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
|
|
45
58
|
// Release
|
|
46
59
|
packageManager: NodePackageManager.NPM,
|
|
47
|
-
npmDistTag: '
|
|
48
|
-
defaultReleaseBranch: '
|
|
60
|
+
npmDistTag: 'latest',
|
|
61
|
+
defaultReleaseBranch: 'main',
|
|
49
62
|
majorVersion: 2,
|
|
50
|
-
prerelease: 'alpha',
|
|
51
63
|
releaseTrigger: release.ReleaseTrigger.manual(),
|
|
52
64
|
catalog: {
|
|
53
65
|
twitter: '@mrgrain',
|
|
@@ -115,11 +127,16 @@ eslintRc?.addOverride('ignorePatterns', [
|
|
|
115
127
|
'*.js',
|
|
116
128
|
'*.d.ts',
|
|
117
129
|
'node_modules/',
|
|
130
|
+
'examples/',
|
|
118
131
|
'*.generated.ts',
|
|
119
132
|
'coverage',
|
|
120
133
|
'!.projenrc.ts',
|
|
121
134
|
]);
|
|
122
135
|
|
|
136
|
+
(project.tryFindFile('.gitignore') as IgnoreFile).addPatterns(
|
|
137
|
+
'!/examples/**',
|
|
138
|
+
);
|
|
139
|
+
|
|
123
140
|
new JsonFile(project, '.vscode/extensions.json', {
|
|
124
141
|
readonly: false,
|
|
125
142
|
marker: false,
|