@mrgrain/cdk-esbuild 2.0.0-rc.0 → 2.2.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 +410 -195
- package/.projenrc.ts +22 -5
- package/API.md +309 -21
- package/CHANGELOG.md +14 -248
- package/README.md +57 -5
- package/lib/asset.js +5 -4
- package/lib/bundler.d.ts +13 -0
- 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 +30 -32
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: 'rc',
|
|
51
63
|
releaseTrigger: release.ReleaseTrigger.manual(),
|
|
52
64
|
catalog: {
|
|
53
65
|
twitter: '@mrgrain',
|
|
@@ -75,7 +87,7 @@ const project = new AwsCdkConstructLibrary({
|
|
|
75
87
|
],
|
|
76
88
|
devDeps: [
|
|
77
89
|
'@types/eslint',
|
|
78
|
-
'esbuild@^0.
|
|
90
|
+
'esbuild@^0.14.0',
|
|
79
91
|
'ts-morph',
|
|
80
92
|
],
|
|
81
93
|
|
|
@@ -106,7 +118,7 @@ const project = new AwsCdkConstructLibrary({
|
|
|
106
118
|
|
|
107
119
|
const packageJson = project.tryFindObjectFile('package.json');
|
|
108
120
|
packageJson?.addOverride('optionalDependencies', {
|
|
109
|
-
esbuild: '^0.
|
|
121
|
+
esbuild: '^0.14.0',
|
|
110
122
|
});
|
|
111
123
|
packageJson?.addOverride('jest.testPathIgnorePatterns.1', '/examples/');
|
|
112
124
|
|
|
@@ -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,
|