@mrgrain/cdk-esbuild 3.5.0 → 3.6.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 +1 -0
- package/.jsii +508 -304
- package/.projenrc.ts +19 -24
- package/API.md +345 -166
- package/CHANGELOG.md +380 -0
- package/README.md +10 -0
- package/lib/asset.d.ts +6 -5
- package/lib/asset.js +17 -13
- package/lib/bundler.d.ts +8 -1
- package/lib/bundler.js +13 -12
- package/lib/code.d.ts +37 -23
- package/lib/code.js +49 -20
- package/lib/esbuild-types.d.ts +5 -2
- package/lib/esbuild-types.js +1 -1
- package/lib/esbuild-wrapper.d.ts +0 -1
- package/lib/formatMessages.d.ts +0 -1
- package/lib/index.d.ts +4 -5
- package/lib/index.js +3 -1
- package/lib/inline-code.d.ts +0 -1
- package/lib/inline-code.js +4 -4
- package/lib/source.d.ts +0 -1
- package/lib/source.js +2 -2
- package/package.json +12 -16
- package/lib/asset.d.ts.map +0 -1
- package/lib/bundler.d.ts.map +0 -1
- package/lib/code.d.ts.map +0 -1
- package/lib/esbuild-types.d.ts.map +0 -1
- package/lib/esbuild-wrapper.d.ts.map +0 -1
- package/lib/formatMessages.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/inline-code.d.ts.map +0 -1
- package/lib/source.d.ts.map +0 -1
- package/projenrc/TypeScriptSourceFile.ts +0 -50
- package/releasetag.txt +0 -1
- package/version.txt +0 -1
package/.projenrc.ts
CHANGED
|
@@ -2,10 +2,11 @@ import {
|
|
|
2
2
|
awscdk,
|
|
3
3
|
javascript,
|
|
4
4
|
JsonFile,
|
|
5
|
-
release,
|
|
6
5
|
vscode,
|
|
7
6
|
} from 'projen';
|
|
7
|
+
import { ReleaseTrigger } from 'projen/lib/release';
|
|
8
8
|
import { SourceFile } from 'ts-morph';
|
|
9
|
+
import { tagOnNpm } from './projenrc/release';
|
|
9
10
|
import { TypeScriptSourceFile } from './projenrc/TypeScriptSourceFile';
|
|
10
11
|
|
|
11
12
|
const project = new awscdk.AwsCdkConstructLibrary({
|
|
@@ -19,7 +20,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
|
|
|
19
20
|
|
|
20
21
|
// Project info
|
|
21
22
|
name: '@mrgrain/cdk-esbuild',
|
|
22
|
-
repositoryUrl: '
|
|
23
|
+
repositoryUrl: 'https://github.com/mrgrain/cdk-esbuild',
|
|
23
24
|
description:
|
|
24
25
|
'CDK constructs for esbuild, an extremely fast JavaScript bundler',
|
|
25
26
|
homepage: 'https://github.com/mrgrain/cdk-esbuild',
|
|
@@ -55,17 +56,15 @@ const project = new awscdk.AwsCdkConstructLibrary({
|
|
|
55
56
|
coveragePathIgnorePatterns: ['/node_modules/', '/examples/'],
|
|
56
57
|
},
|
|
57
58
|
},
|
|
58
|
-
eslintOptions: {
|
|
59
|
-
lintProjenRc: false,
|
|
60
|
-
dirs: ['src', 'projenrc', '.projenrc.ts'],
|
|
61
|
-
},
|
|
62
59
|
|
|
63
60
|
// Release
|
|
64
61
|
packageManager: javascript.NodePackageManager.NPM,
|
|
65
62
|
npmDistTag: 'latest',
|
|
66
63
|
defaultReleaseBranch: 'main',
|
|
67
64
|
majorVersion: 3,
|
|
68
|
-
releaseTrigger:
|
|
65
|
+
releaseTrigger: {
|
|
66
|
+
isContinuous: false,
|
|
67
|
+
} as ReleaseTrigger,
|
|
69
68
|
catalog: {
|
|
70
69
|
twitter: '@mrgrain',
|
|
71
70
|
},
|
|
@@ -93,7 +92,6 @@ const project = new awscdk.AwsCdkConstructLibrary({
|
|
|
93
92
|
'cdk.out',
|
|
94
93
|
'.cdk.staging',
|
|
95
94
|
'examples/template',
|
|
96
|
-
'!/.github/workflows/manual-release.yml',
|
|
97
95
|
'!/examples/**',
|
|
98
96
|
],
|
|
99
97
|
npmignore: [
|
|
@@ -108,9 +106,22 @@ const project = new awscdk.AwsCdkConstructLibrary({
|
|
|
108
106
|
'/examples',
|
|
109
107
|
'PUBLISHING.md',
|
|
110
108
|
'.vscode',
|
|
109
|
+
'projenrc',
|
|
111
110
|
],
|
|
112
111
|
});
|
|
113
112
|
|
|
113
|
+
// release only via manual trigger
|
|
114
|
+
project.tryFindObjectFile('.github/workflows/release.yml')?.addToArray(
|
|
115
|
+
'jobs.release_npm.steps',
|
|
116
|
+
tagOnNpm(project.package.packageName, ['cdk-v2', 'unstable', 'next']),
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
// eslint
|
|
120
|
+
project.eslint?.addRules({
|
|
121
|
+
'@typescript-eslint/member-ordering': 'off',
|
|
122
|
+
});
|
|
123
|
+
project.eslint?.addIgnorePattern('examples/');
|
|
124
|
+
|
|
114
125
|
|
|
115
126
|
// VSCode config
|
|
116
127
|
new JsonFile(project, '.vscode/extensions.json', {
|
|
@@ -153,22 +164,6 @@ new vscode.VsCode(project).launchConfiguration.addConfiguration({
|
|
|
153
164
|
project.tryFindObjectFile('package.json')?.addOverride('optionalDependencies', {
|
|
154
165
|
esbuild: '^0.14.0',
|
|
155
166
|
});
|
|
156
|
-
project.tryFindObjectFile('package.json')?.addOverride('overrides', {
|
|
157
|
-
'@types/prettier': '2.6.0',
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
project.eslint?.addRules({
|
|
161
|
-
'@typescript-eslint/member-ordering': 'off',
|
|
162
|
-
});
|
|
163
|
-
project.eslint?.addOverride({
|
|
164
|
-
files: ['projenrc/*.ts'],
|
|
165
|
-
rules: {
|
|
166
|
-
'@typescript-eslint/no-require-imports': 'off',
|
|
167
|
-
'import/no-extraneous-dependencies': 'off',
|
|
168
|
-
},
|
|
169
|
-
});
|
|
170
|
-
project.eslint?.addIgnorePattern('examples/');
|
|
171
|
-
project.eslint?.addIgnorePattern('!projenrc/*.ts');
|
|
172
167
|
|
|
173
168
|
new TypeScriptSourceFile(project, 'src/esbuild-types.ts', {
|
|
174
169
|
source: 'node_modules/esbuild/lib/main.d.ts',
|