From e940fbafc98ddd443e82bad749aa848e2bf896fd Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Sat, 14 Jan 2023 17:09:12 +0000 Subject: [PATCH] feat: upgrade to esbuild@^0.17.0 (#358) (cherry picked from commit 0fa467953023ecb6c7743f5061cb2e498fc32100) # Conflicts: # API.md --- .eslintrc.json | 10 + .projen/deps.json | 2 +- .projenrc.ts | 7 +- API.md | 1237 ++++++++++++++++++++++++++++++++++++++++- package-lock.json | 372 ++++++------- package.json | 4 +- src/esbuild-source.ts | 2 +- src/esbuild-types.ts | 76 ++- 8 files changed, 1466 insertions(+), 244 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 209b6f05..1c817c97 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -231,6 +231,16 @@ "rules": { "no-console": "off" } + }, + { + "files": [ + "src/esbuild-types.ts" + ], + "rules": { + "max-len": [ + "off" + ] + } } ] } diff --git a/.projen/deps.json b/.projen/deps.json index bf039b2f..d0116b45 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -46,7 +46,7 @@ }, { "name": "esbuild", - "version": "^0.16.0", + "version": "^0.17.0", "type": "build" }, { diff --git a/.projenrc.ts b/.projenrc.ts index 5ae2ae04..664fef27 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -274,6 +274,10 @@ editor.launchConfiguration.addConfiguration( project.tryFindObjectFile('package.json')?.addOverride('optionalDependencies', { [Esbuild.name]: Esbuild.version, }); +project.eslint?.addOverride({ + files: ['src/esbuild-types.ts'], + rules: { 'max-len': ['off'] }, +}); new TypeScriptSourceFile(project, 'src/esbuild-types.ts', { source: 'node_modules/esbuild/lib/main.d.ts', @@ -285,12 +289,11 @@ new TypeScriptSourceFile(project, 'src/esbuild-types.ts', { const removeFromInterface = (name: string, properties: string[]) => { const interfaceDeclaration = esbuildTypes.getInterface(name); - properties.forEach(property => interfaceDeclaration?.getProperty(property)?.remove()); }; ['CommonOptions', 'BuildOptions', 'TransformOptions', 'OutputFile'].forEach(readonlyInterface); - removeFromInterface('BuildOptions', ['entryPoints', 'stdin', 'plugins', 'watch']); + removeFromInterface('BuildOptions', ['entryPoints', 'stdin', 'plugins']); esbuildTypes.getInterface('CommonOptions')?.getProperty('mangleProps')?.setType('any'); esbuildTypes.getInterface('CommonOptions')?.getProperty('reserveProps')?.setType('any'); esbuildTypes.getInterface('InitializeOptions')?.getProperty('wasmModule')?.setType('any'); diff --git a/API.md b/API.md index aaf07252..1af46e5c 100644 --- a/API.md +++ b/API.md @@ -494,18 +494,6 @@ Documentation: https://esbuild.github.io/api/#ignore-annotations. --- -##### `incremental`Optional - -```typescript -public readonly incremental: boolean; -``` - -- *Type:* `boolean` - -Documentation: https://esbuild.github.io/api/#incremental. - ---- - ##### `inject`Optional ```typescript @@ -1516,6 +1504,1231 @@ Defaults to a hash of all files in the resulting bundle. --- +<<<<<<< HEAD +======= +### ProviderBuildOptions + +#### Initializer + +```typescript +import { ProviderBuildOptions } from '@mrgrain/cdk-esbuild' + +const providerBuildOptions: ProviderBuildOptions = { ... } +``` + +##### `absWorkingDir`Optional + +```typescript +public readonly absWorkingDir: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#working-directory. + +--- + +##### `alias`Optional + +```typescript +public readonly alias: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#alias. + +--- + +##### `allowOverwrite`Optional + +```typescript +public readonly allowOverwrite: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#allow-overwrite. + +--- + +##### `assetNames`Optional + +```typescript +public readonly assetNames: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#asset-names. + +--- + +##### `banner`Optional + +```typescript +public readonly banner: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#banner. + +--- + +##### `bundle`Optional + +```typescript +public readonly bundle: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#bundle. + +--- + +##### `charset`Optional + +```typescript +public readonly charset: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#charset. + +--- + +##### `chunkNames`Optional + +```typescript +public readonly chunkNames: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#chunk-names. + +--- + +##### `color`Optional + +```typescript +public readonly color: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#color. + +--- + +##### `conditions`Optional + +```typescript +public readonly conditions: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#conditions. + +--- + +##### `define`Optional + +```typescript +public readonly define: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#define. + +--- + +##### `drop`Optional + +```typescript +public readonly drop: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#drop. + +--- + +##### `entryNames`Optional + +```typescript +public readonly entryNames: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#entry-names. + +--- + +##### `external`Optional + +```typescript +public readonly external: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#external. + +--- + +##### `footer`Optional + +```typescript +public readonly footer: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#footer. + +--- + +##### `format`Optional + +```typescript +public readonly format: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#format. + +--- + +##### `globalName`Optional + +```typescript +public readonly globalName: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#global-name. + +--- + +##### `ignoreAnnotations`Optional + +```typescript +public readonly ignoreAnnotations: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#ignore-annotations. + +--- + +##### `inject`Optional + +```typescript +public readonly inject: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#inject. + +--- + +##### `jsx`Optional + +```typescript +public readonly jsx: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#jsx. + +--- + +##### `jsxDev`Optional + +```typescript +public readonly jsxDev: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#jsx-development. + +--- + +##### `jsxFactory`Optional + +```typescript +public readonly jsxFactory: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#jsx-factory. + +--- + +##### `jsxFragment`Optional + +```typescript +public readonly jsxFragment: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#jsx-fragment. + +--- + +##### `jsxImportSource`Optional + +```typescript +public readonly jsxImportSource: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#jsx-import-source. + +--- + +##### `jsxSideEffects`Optional + +```typescript +public readonly jsxSideEffects: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#jsx-side-effects. + +--- + +##### `keepNames`Optional + +```typescript +public readonly keepNames: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#keep-names. + +--- + +##### `legalComments`Optional + +```typescript +public readonly legalComments: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#legal-comments. + +--- + +##### `loader`Optional + +```typescript +public readonly loader: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#loader. + +--- + +##### `logLevel`Optional + +```typescript +public readonly logLevel: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#log-level. + +--- + +##### `logLimit`Optional + +```typescript +public readonly logLimit: number; +``` + +- *Type:* `number` + +Documentation: https://esbuild.github.io/api/#log-limit. + +--- + +##### `logOverride`Optional + +```typescript +public readonly logOverride: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#log-override. + +--- + +##### `mainFields`Optional + +```typescript +public readonly mainFields: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#main-fields. + +--- + +##### `mangleCache`Optional + +```typescript +public readonly mangleCache: {[ key: string ]: string | boolean}; +``` + +- *Type:* {[ key: string ]: `string` | `boolean`} + +Documentation: https://esbuild.github.io/api/#mangle-props. + +--- + +##### `mangleProps`Optional + +```typescript +public readonly mangleProps: any; +``` + +- *Type:* `any` + +Documentation: https://esbuild.github.io/api/#mangle-props. + +--- + +##### `mangleQuoted`Optional + +```typescript +public readonly mangleQuoted: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#mangle-props. + +--- + +##### `metafile`Optional + +```typescript +public readonly metafile: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#metafile. + +--- + +##### `minify`Optional + +```typescript +public readonly minify: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#minify. + +--- + +##### `minifyIdentifiers`Optional + +```typescript +public readonly minifyIdentifiers: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#minify. + +--- + +##### `minifySyntax`Optional + +```typescript +public readonly minifySyntax: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#minify. + +--- + +##### `minifyWhitespace`Optional + +```typescript +public readonly minifyWhitespace: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#minify. + +--- + +##### `nodePaths`Optional + +```typescript +public readonly nodePaths: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#node-paths. + +--- + +##### `outbase`Optional + +```typescript +public readonly outbase: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#outbase. + +--- + +##### `outdir`Optional + +```typescript +public readonly outdir: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#outdir. + +--- + +##### `outExtension`Optional + +```typescript +public readonly outExtension: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#out-extension. + +--- + +##### `outfile`Optional + +```typescript +public readonly outfile: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#outfile. + +--- + +##### `packages`Optional + +```typescript +public readonly packages: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#packages. + +--- + +##### `platform`Optional + +```typescript +public readonly platform: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#platform. + +--- + +##### `preserveSymlinks`Optional + +```typescript +public readonly preserveSymlinks: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#preserve-symlinks. + +--- + +##### `publicPath`Optional + +```typescript +public readonly publicPath: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#public-path. + +--- + +##### `pure`Optional + +```typescript +public readonly pure: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#pure. + +--- + +##### `reserveProps`Optional + +```typescript +public readonly reserveProps: any; +``` + +- *Type:* `any` + +Documentation: https://esbuild.github.io/api/#mangle-props. + +--- + +##### `resolveExtensions`Optional + +```typescript +public readonly resolveExtensions: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#resolve-extensions. + +--- + +##### `sourcemap`Optional + +```typescript +public readonly sourcemap: boolean | string; +``` + +- *Type:* `boolean` | `string` + +Documentation: https://esbuild.github.io/api/#sourcemap. + +--- + +##### `sourceRoot`Optional + +```typescript +public readonly sourceRoot: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#source-root. + +--- + +##### `sourcesContent`Optional + +```typescript +public readonly sourcesContent: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#sources-content. + +--- + +##### `splitting`Optional + +```typescript +public readonly splitting: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#splitting. + +--- + +##### `supported`Optional + +```typescript +public readonly supported: {[ key: string ]: boolean}; +``` + +- *Type:* {[ key: string ]: `boolean`} + +Documentation: https://esbuild.github.io/api/#supported. + +--- + +##### `target`Optional + +```typescript +public readonly target: string | string[]; +``` + +- *Type:* `string` | `string`[] + +Documentation: https://esbuild.github.io/api/#target. + +--- + +##### `treeShaking`Optional + +```typescript +public readonly treeShaking: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#tree-shaking. + +--- + +##### `tsconfig`Optional + +```typescript +public readonly tsconfig: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#tsconfig. + +--- + +##### `write`Optional + +```typescript +public readonly write: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#write. + +--- + +##### `entryPoints`Optional + +```typescript +public readonly entryPoints: string[] | {[ key: string ]: string}; +``` + +- *Type:* `string`[] | {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#entry-points. + +--- + +### ProviderTransformOptions + +#### Initializer + +```typescript +import { ProviderTransformOptions } from '@mrgrain/cdk-esbuild' + +const providerTransformOptions: ProviderTransformOptions = { ... } +``` + +##### `banner`Optional + +```typescript +public readonly banner: string; +``` + +- *Type:* `string` + +--- + +##### `charset`Optional + +```typescript +public readonly charset: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#charset. + +--- + +##### `color`Optional + +```typescript +public readonly color: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#color. + +--- + +##### `define`Optional + +```typescript +public readonly define: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#define. + +--- + +##### `drop`Optional + +```typescript +public readonly drop: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#drop. + +--- + +##### `footer`Optional + +```typescript +public readonly footer: string; +``` + +- *Type:* `string` + +--- + +##### `format`Optional + +```typescript +public readonly format: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#format. + +--- + +##### `globalName`Optional + +```typescript +public readonly globalName: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#global-name. + +--- + +##### `ignoreAnnotations`Optional + +```typescript +public readonly ignoreAnnotations: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#ignore-annotations. + +--- + +##### `jsx`Optional + +```typescript +public readonly jsx: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#jsx. + +--- + +##### `jsxDev`Optional + +```typescript +public readonly jsxDev: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#jsx-development. + +--- + +##### `jsxFactory`Optional + +```typescript +public readonly jsxFactory: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#jsx-factory. + +--- + +##### `jsxFragment`Optional + +```typescript +public readonly jsxFragment: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#jsx-fragment. + +--- + +##### `jsxImportSource`Optional + +```typescript +public readonly jsxImportSource: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#jsx-import-source. + +--- + +##### `jsxSideEffects`Optional + +```typescript +public readonly jsxSideEffects: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#jsx-side-effects. + +--- + +##### `keepNames`Optional + +```typescript +public readonly keepNames: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#keep-names. + +--- + +##### `legalComments`Optional + +```typescript +public readonly legalComments: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#legal-comments. + +--- + +##### `loader`Optional + +```typescript +public readonly loader: string; +``` + +- *Type:* `string` + +--- + +##### `logLevel`Optional + +```typescript +public readonly logLevel: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#log-level. + +--- + +##### `logLimit`Optional + +```typescript +public readonly logLimit: number; +``` + +- *Type:* `number` + +Documentation: https://esbuild.github.io/api/#log-limit. + +--- + +##### `logOverride`Optional + +```typescript +public readonly logOverride: {[ key: string ]: string}; +``` + +- *Type:* {[ key: string ]: `string`} + +Documentation: https://esbuild.github.io/api/#log-override. + +--- + +##### `mangleCache`Optional + +```typescript +public readonly mangleCache: {[ key: string ]: string | boolean}; +``` + +- *Type:* {[ key: string ]: `string` | `boolean`} + +Documentation: https://esbuild.github.io/api/#mangle-props. + +--- + +##### `mangleProps`Optional + +```typescript +public readonly mangleProps: any; +``` + +- *Type:* `any` + +Documentation: https://esbuild.github.io/api/#mangle-props. + +--- + +##### `mangleQuoted`Optional + +```typescript +public readonly mangleQuoted: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#mangle-props. + +--- + +##### `minify`Optional + +```typescript +public readonly minify: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#minify. + +--- + +##### `minifyIdentifiers`Optional + +```typescript +public readonly minifyIdentifiers: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#minify. + +--- + +##### `minifySyntax`Optional + +```typescript +public readonly minifySyntax: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#minify. + +--- + +##### `minifyWhitespace`Optional + +```typescript +public readonly minifyWhitespace: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#minify. + +--- + +##### `platform`Optional + +```typescript +public readonly platform: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#platform. + +--- + +##### `pure`Optional + +```typescript +public readonly pure: string[]; +``` + +- *Type:* `string`[] + +Documentation: https://esbuild.github.io/api/#pure. + +--- + +##### `reserveProps`Optional + +```typescript +public readonly reserveProps: any; +``` + +- *Type:* `any` + +Documentation: https://esbuild.github.io/api/#mangle-props. + +--- + +##### `sourcefile`Optional + +```typescript +public readonly sourcefile: string; +``` + +- *Type:* `string` + +--- + +##### `sourcemap`Optional + +```typescript +public readonly sourcemap: boolean | string; +``` + +- *Type:* `boolean` | `string` + +Documentation: https://esbuild.github.io/api/#sourcemap. + +--- + +##### `sourceRoot`Optional + +```typescript +public readonly sourceRoot: string; +``` + +- *Type:* `string` + +Documentation: https://esbuild.github.io/api/#source-root. + +--- + +##### `sourcesContent`Optional + +```typescript +public readonly sourcesContent: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#sources-content. + +--- + +##### `supported`Optional + +```typescript +public readonly supported: {[ key: string ]: boolean}; +``` + +- *Type:* {[ key: string ]: `boolean`} + +Documentation: https://esbuild.github.io/api/#supported. + +--- + +##### `target`Optional + +```typescript +public readonly target: string | string[]; +``` + +- *Type:* `string` | `string`[] + +Documentation: https://esbuild.github.io/api/#target. + +--- + +##### `treeShaking`Optional + +```typescript +public readonly treeShaking: boolean; +``` + +- *Type:* `boolean` + +Documentation: https://esbuild.github.io/api/#tree-shaking. + +--- + +##### `tsconfigRaw`Optional + +```typescript +public readonly tsconfigRaw: string | TsconfigOptions; +``` + +- *Type:* `string` | [`@mrgrain/cdk-esbuild.TsconfigOptions`](#@mrgrain/cdk-esbuild.TsconfigOptions) + +--- + +>>>>>>> 0fa4679 (feat: upgrade to esbuild@^0.17.0 (#358)) ### TransformerProps #### Initializer diff --git a/package-lock.json b/package-lock.json index 3386f0c5..2775a4be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@typescript-eslint/parser": "^5", "aws-cdk-lib": "2.0.0", "constructs": "10.0.5", - "esbuild": "^0.16.0", + "esbuild": "^0.17.0", "eslint": "^8", "eslint-import-resolver-node": "^0.3.7", "eslint-import-resolver-typescript": "^2.7.1", @@ -40,7 +40,7 @@ "typescript": "^4.9.4" }, "optionalDependencies": { - "esbuild": "^0.16.0" + "esbuild": "^0.17.0" }, "peerDependencies": { "aws-cdk-lib": "^2.0.0", @@ -689,9 +689,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.17.tgz", - "integrity": "sha512-N9x1CMXVhtWEAMS7pNNONyA14f71VPQN9Cnavj1XQh6T7bskqiLLrSca4O0Vr8Wdcga943eThxnVp3JLnBMYtw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.0.tgz", + "integrity": "sha512-hlbX5ym1V5kIKvnwFhm6rhar7MNqfJrZyYTNfk6+WS1uQfQmszFgXeyPH2beP3lSCumZyqX0zMBfOqftOpZ7GA==", "cpu": [ "arm" ], @@ -705,9 +705,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.17.tgz", - "integrity": "sha512-MIGl6p5sc3RDTLLkYL1MyL8BMRN4tLMRCn+yRJJmEDvYZ2M7tmAf80hx1kbNEUX2KJ50RRtxZ4JHLvCfuB6kBg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.0.tgz", + "integrity": "sha512-77GVyD7ToESy/7+9eI8z62GGBdS/hsqsrpM+JA4kascky86wHbN29EEFpkVvxajPL7k6mbLJ5VBQABdj7n9FhQ==", "cpu": [ "arm64" ], @@ -721,9 +721,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.17.tgz", - "integrity": "sha512-a3kTv3m0Ghh4z1DaFEuEDfz3OLONKuFvI4Xqczqx4BqLyuFaFkuaG4j2MtA6fuWEFeC5x9IvqnX7drmRq/fyAQ==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.0.tgz", + "integrity": "sha512-TroxZdZhtAz0JyD0yahtjcbKuIXrBEAoAazaYSeR2e2tUtp9uXrcbpwFJF6oxxOiOOne6y7l4hx4YVnMW/tdFw==", "cpu": [ "x64" ], @@ -737,9 +737,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.17.tgz", - "integrity": "sha512-/2agbUEfmxWHi9ARTX6OQ/KgXnOWfsNlTeLcoV7HSuSTv63E4DqtAc+2XqGw1KHxKMHGZgbVCZge7HXWX9Vn+w==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.0.tgz", + "integrity": "sha512-wP/v4cgdWt1m8TS/WmbaBc3NZON10eCbm6XepdVc3zJuqruHCzCKcC9dTSTEk50zX04REcRcbIbdhTMciQoFIg==", "cpu": [ "arm64" ], @@ -753,9 +753,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.17.tgz", - "integrity": "sha512-2By45OBHulkd9Svy5IOCZt376Aa2oOkiE9QWUK9fe6Tb+WDr8hXL3dpqi+DeLiMed8tVXspzsTAvd0jUl96wmg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.0.tgz", + "integrity": "sha512-R4WB6D6V9KGO/3LVTT8UlwRJO26IBFatOdo/bRXksfJR0vyOi2/lgmAAMBSpgcnnwvts9QsWiyM++mTTlwRseA==", "cpu": [ "x64" ], @@ -769,9 +769,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.17.tgz", - "integrity": "sha512-mt+cxZe1tVx489VTb4mBAOo2aKSnJ33L9fr25JXpqQqzbUIw/yzIzi+NHwAXK2qYV1lEFp4OoVeThGjUbmWmdw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.0.tgz", + "integrity": "sha512-FO7+UEZv79gen2df8StFYFHZPI9ADozpFepLZCxY+O8sYLDa1rirvenmLwJiOHmeQRJ5orYedFeLk1PFlZ6t8Q==", "cpu": [ "arm64" ], @@ -785,9 +785,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.17.tgz", - "integrity": "sha512-8ScTdNJl5idAKjH8zGAsN7RuWcyHG3BAvMNpKOBaqqR7EbUhhVHOqXRdL7oZvz8WNHL2pr5+eIT5c65kA6NHug==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.0.tgz", + "integrity": "sha512-qCsNRsVTaC3ekwZcb2sa7l1gwCtJK3EqCWyDgpoQocYf3lRpbAzaCvqZSF2+NOO64cV+JbedXPsFiXU1aaVcIg==", "cpu": [ "x64" ], @@ -801,9 +801,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.17.tgz", - "integrity": "sha512-iihzrWbD4gIT7j3caMzKb/RsFFHCwqqbrbH9SqUSRrdXkXaygSZCZg1FybsZz57Ju7N/SHEgPyaR0LZ8Zbe9gQ==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.0.tgz", + "integrity": "sha512-Y2G2NU6155gcfNKvrakVmZV5xUAEhXjsN/uKtbKKRnvee0mHUuaT3OdQJDJKjHVGr6B0898pc3slRpI1PqspoQ==", "cpu": [ "arm" ], @@ -817,9 +817,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.17.tgz", - "integrity": "sha512-7S8gJnSlqKGVJunnMCrXHU9Q8Q/tQIxk/xL8BqAP64wchPCTzuM6W3Ra8cIa1HIflAvDnNOt2jaL17vaW+1V0g==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.0.tgz", + "integrity": "sha512-js4Vlch5XJQYISbDVJd2hsI/MsfVUz6d/FrclCE73WkQmniH37vFpuQI42ntWAeBghDIfaPZ6f9GilhwGzVFUg==", "cpu": [ "arm64" ], @@ -833,9 +833,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.17.tgz", - "integrity": "sha512-kiX69+wcPAdgl3Lonh1VI7MBr16nktEvOfViszBSxygRQqSpzv7BffMKRPMFwzeJGPxcio0pdD3kYQGpqQ2SSg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.0.tgz", + "integrity": "sha512-7tl/jSPkF59R3zeFDB2/09zLGhcM7DM+tCoOqjJbQjuL6qbMWomGT2RglCqRFpCSdzBx0hukmPPgUAMlmdj0sQ==", "cpu": [ "ia32" ], @@ -849,9 +849,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.17.tgz", - "integrity": "sha512-dTzNnQwembNDhd654cA4QhbS9uDdXC3TKqMJjgOWsC0yNCbpzfWoXdZvp0mY7HU6nzk5E0zpRGGx3qoQg8T2DQ==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.0.tgz", + "integrity": "sha512-OG356F7dIVVF+EXJx5UfzFr1I5l6ES53GlMNSr3U1MhlaVyrP9um5PnrSJ+7TSDAzUC7YGjxb2GQWqHLd5XFoA==", "cpu": [ "loong64" ], @@ -865,9 +865,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.17.tgz", - "integrity": "sha512-ezbDkp2nDl0PfIUn0CsQ30kxfcLTlcx4Foz2kYv8qdC6ia2oX5Q3E/8m6lq84Dj/6b0FrkgD582fJMIfHhJfSw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.0.tgz", + "integrity": "sha512-LWQJgGpxrjh2x08UYf6G5R+Km7zhkpCvKXtFQ6SX0fimDvy1C8kslgFHGxLS0wjGV8C4BNnENW/HNy57+RB7iA==", "cpu": [ "mips64el" ], @@ -881,9 +881,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.17.tgz", - "integrity": "sha512-dzS678gYD1lJsW73zrFhDApLVdM3cUF2MvAa1D8K8KtcSKdLBPP4zZSLy6LFZ0jYqQdQ29bjAHJDgz0rVbLB3g==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.0.tgz", + "integrity": "sha512-f40N8fKiTQslUcUuhof2/syOQ+DC9Mqdnm9d063pew+Ptv9r6dBNLQCz4300MOfCLAbb0SdnrcMSzHbMehXWLw==", "cpu": [ "ppc64" ], @@ -897,9 +897,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.17.tgz", - "integrity": "sha512-ylNlVsxuFjZK8DQtNUwiMskh6nT0vI7kYl/4fZgV1llP5d6+HIeL/vmmm3jpuoo8+NuXjQVZxmKuhDApK0/cKw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.0.tgz", + "integrity": "sha512-sc/pvLexRvxgEbmeq7LfLGnzUBFi/E2MGbnQj3CG8tnQ90tWPTi+9CbZEgIADhj6CAlCCmqxpUclIV1CRVUOTw==", "cpu": [ "riscv64" ], @@ -913,9 +913,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.17.tgz", - "integrity": "sha512-gzy7nUTO4UA4oZ2wAMXPNBGTzZFP7mss3aKR2hH+/4UUkCOyqmjXiKpzGrY2TlEUhbbejzXVKKGazYcQTZWA/w==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.0.tgz", + "integrity": "sha512-7xq9/kY0vunCL2vjHKdHGI+660pCdeEC6K6TWBVvbTGXvT8s/qacfxMgr8PCeQRbNUZLOA13G6/G1+c0lYXO1A==", "cpu": [ "s390x" ], @@ -929,9 +929,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.17.tgz", - "integrity": "sha512-mdPjPxfnmoqhgpiEArqi4egmBAMYvaObgn4poorpUaqmvzzbvqbowRllQ+ZgzGVMGKaPkqUmPDOOFQRUFDmeUw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.0.tgz", + "integrity": "sha512-o7FhBLONk1mLT2ytlj/j/WuJcPdhWcVpysSJn1s9+zRdLwLKveipbPi5SIasJIqMq0T4CkQW76pxJYMqz9HrQA==", "cpu": [ "x64" ], @@ -945,9 +945,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.17.tgz", - "integrity": "sha512-/PzmzD/zyAeTUsduZa32bn0ORug+Jd1EGGAUJvqfeixoEISYpGnAezN6lnJoskauoai0Jrs+XSyvDhppCPoKOA==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.0.tgz", + "integrity": "sha512-V6xXsv71b8vwFCW/ky82Rs//SbyA+ORty6A7Mzkg33/4NbYZ/1Vcbk7qAN5oi0i/gS4Q0+7dYT7NqaiVZ7+Xjw==", "cpu": [ "x64" ], @@ -961,9 +961,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.17.tgz", - "integrity": "sha512-2yaWJhvxGEz2RiftSk0UObqJa/b+rIAjnODJgv2GbGGpRwAfpgzyrg1WLK8rqA24mfZa9GvpjLcBBg8JHkoodg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.0.tgz", + "integrity": "sha512-StlQor6A0Y9SSDxraytr46Qbz25zsSDmsG3MCaNkBnABKHP3QsngOCfdBikqHVVrXeK0KOTmtX92/ncTGULYgQ==", "cpu": [ "x64" ], @@ -977,9 +977,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.17.tgz", - "integrity": "sha512-xtVUiev38tN0R3g8VhRfN7Zl42YCJvyBhRKw1RJjwE1d2emWTVToPLNEQj/5Qxc6lVFATDiy6LjVHYhIPrLxzw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.0.tgz", + "integrity": "sha512-K64Wqw57j8KrwjR3QjsuzN/qDGK6Cno6QYtIlWAmGab5iYPBZCWz7HFtF2a86/130LmUsdXqOID7J0SmjjRFIQ==", "cpu": [ "x64" ], @@ -993,9 +993,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.17.tgz", - "integrity": "sha512-ga8+JqBDHY4b6fQAmOgtJJue36scANy4l/rL97W+0wYmijhxKetzZdKOJI7olaBaMhWt8Pac2McJdZLxXWUEQw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.0.tgz", + "integrity": "sha512-hly6iSWAf0hf3aHD18/qW7iFQbg9KAQ0RFGG9plcxkhL4uGw43O+lETGcSO/PylNleFowP/UztpF6U4oCYgpPw==", "cpu": [ "arm64" ], @@ -1009,9 +1009,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.17.tgz", - "integrity": "sha512-WnsKaf46uSSF/sZhwnqE4L/F89AYNMiD4YtEcYekBt9Q7nj0DiId2XH2Ng2PHM54qi5oPrQ8luuzGszqi/veig==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.0.tgz", + "integrity": "sha512-aL4EWPh0nyC5uYRfn+CHkTgawd4DjtmwquthNDmGf6Ht6+mUc+bQXyZNH1QIw8x20hSqFc4Tf36aLLWP/TPR3g==", "cpu": [ "ia32" ], @@ -1025,9 +1025,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.17.tgz", - "integrity": "sha512-y+EHuSchhL7FjHgvQL/0fnnFmO4T1bhvWANX6gcnqTjtnKWbTvUMCpGnv2+t+31d7RzyEAYAd4u2fnIhHL6N/Q==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.0.tgz", + "integrity": "sha512-W6IIQ9Rt43I/GqfXeBFLk0TvowKBoirs9sw2LPfhHax6ayMlW5PhFzSJ76I1ac9Pk/aRcSMrHWvVyZs8ZPK2wA==", "cpu": [ "x64" ], @@ -4544,9 +4544,9 @@ } }, "node_modules/esbuild": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.17.tgz", - "integrity": "sha512-G8LEkV0XzDMNwXKgM0Jwu3nY3lSTwSGY6XbxM9cr9+s0T/qSV1q1JVPBGzm3dcjhCic9+emZDmMffkwgPeOeLg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.0.tgz", + "integrity": "sha512-4yGk3rD95iS/wGzrx0Ji5czZcx1j2wvfF1iAJaX2FIYLB6sU6wYkDeplpZHzfwQw2yXGXsAoxmO6LnMQkl04Kg==", "dev": true, "hasInstallScript": true, "bin": { @@ -4556,28 +4556,28 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/android-arm": "0.16.17", - "@esbuild/android-arm64": "0.16.17", - "@esbuild/android-x64": "0.16.17", - "@esbuild/darwin-arm64": "0.16.17", - "@esbuild/darwin-x64": "0.16.17", - "@esbuild/freebsd-arm64": "0.16.17", - "@esbuild/freebsd-x64": "0.16.17", - "@esbuild/linux-arm": "0.16.17", - "@esbuild/linux-arm64": "0.16.17", - "@esbuild/linux-ia32": "0.16.17", - "@esbuild/linux-loong64": "0.16.17", - "@esbuild/linux-mips64el": "0.16.17", - "@esbuild/linux-ppc64": "0.16.17", - "@esbuild/linux-riscv64": "0.16.17", - "@esbuild/linux-s390x": "0.16.17", - "@esbuild/linux-x64": "0.16.17", - "@esbuild/netbsd-x64": "0.16.17", - "@esbuild/openbsd-x64": "0.16.17", - "@esbuild/sunos-x64": "0.16.17", - "@esbuild/win32-arm64": "0.16.17", - "@esbuild/win32-ia32": "0.16.17", - "@esbuild/win32-x64": "0.16.17" + "@esbuild/android-arm": "0.17.0", + "@esbuild/android-arm64": "0.17.0", + "@esbuild/android-x64": "0.17.0", + "@esbuild/darwin-arm64": "0.17.0", + "@esbuild/darwin-x64": "0.17.0", + "@esbuild/freebsd-arm64": "0.17.0", + "@esbuild/freebsd-x64": "0.17.0", + "@esbuild/linux-arm": "0.17.0", + "@esbuild/linux-arm64": "0.17.0", + "@esbuild/linux-ia32": "0.17.0", + "@esbuild/linux-loong64": "0.17.0", + "@esbuild/linux-mips64el": "0.17.0", + "@esbuild/linux-ppc64": "0.17.0", + "@esbuild/linux-riscv64": "0.17.0", + "@esbuild/linux-s390x": "0.17.0", + "@esbuild/linux-x64": "0.17.0", + "@esbuild/netbsd-x64": "0.17.0", + "@esbuild/openbsd-x64": "0.17.0", + "@esbuild/sunos-x64": "0.17.0", + "@esbuild/win32-arm64": "0.17.0", + "@esbuild/win32-ia32": "0.17.0", + "@esbuild/win32-x64": "0.17.0" } }, "node_modules/escalade": { @@ -13359,156 +13359,156 @@ } }, "@esbuild/android-arm": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.17.tgz", - "integrity": "sha512-N9x1CMXVhtWEAMS7pNNONyA14f71VPQN9Cnavj1XQh6T7bskqiLLrSca4O0Vr8Wdcga943eThxnVp3JLnBMYtw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.0.tgz", + "integrity": "sha512-hlbX5ym1V5kIKvnwFhm6rhar7MNqfJrZyYTNfk6+WS1uQfQmszFgXeyPH2beP3lSCumZyqX0zMBfOqftOpZ7GA==", "dev": true, "optional": true }, "@esbuild/android-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.17.tgz", - "integrity": "sha512-MIGl6p5sc3RDTLLkYL1MyL8BMRN4tLMRCn+yRJJmEDvYZ2M7tmAf80hx1kbNEUX2KJ50RRtxZ4JHLvCfuB6kBg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.0.tgz", + "integrity": "sha512-77GVyD7ToESy/7+9eI8z62GGBdS/hsqsrpM+JA4kascky86wHbN29EEFpkVvxajPL7k6mbLJ5VBQABdj7n9FhQ==", "dev": true, "optional": true }, "@esbuild/android-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.17.tgz", - "integrity": "sha512-a3kTv3m0Ghh4z1DaFEuEDfz3OLONKuFvI4Xqczqx4BqLyuFaFkuaG4j2MtA6fuWEFeC5x9IvqnX7drmRq/fyAQ==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.0.tgz", + "integrity": "sha512-TroxZdZhtAz0JyD0yahtjcbKuIXrBEAoAazaYSeR2e2tUtp9uXrcbpwFJF6oxxOiOOne6y7l4hx4YVnMW/tdFw==", "dev": true, "optional": true }, "@esbuild/darwin-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.17.tgz", - "integrity": "sha512-/2agbUEfmxWHi9ARTX6OQ/KgXnOWfsNlTeLcoV7HSuSTv63E4DqtAc+2XqGw1KHxKMHGZgbVCZge7HXWX9Vn+w==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.0.tgz", + "integrity": "sha512-wP/v4cgdWt1m8TS/WmbaBc3NZON10eCbm6XepdVc3zJuqruHCzCKcC9dTSTEk50zX04REcRcbIbdhTMciQoFIg==", "dev": true, "optional": true }, "@esbuild/darwin-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.17.tgz", - "integrity": "sha512-2By45OBHulkd9Svy5IOCZt376Aa2oOkiE9QWUK9fe6Tb+WDr8hXL3dpqi+DeLiMed8tVXspzsTAvd0jUl96wmg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.0.tgz", + "integrity": "sha512-R4WB6D6V9KGO/3LVTT8UlwRJO26IBFatOdo/bRXksfJR0vyOi2/lgmAAMBSpgcnnwvts9QsWiyM++mTTlwRseA==", "dev": true, "optional": true }, "@esbuild/freebsd-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.17.tgz", - "integrity": "sha512-mt+cxZe1tVx489VTb4mBAOo2aKSnJ33L9fr25JXpqQqzbUIw/yzIzi+NHwAXK2qYV1lEFp4OoVeThGjUbmWmdw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.0.tgz", + "integrity": "sha512-FO7+UEZv79gen2df8StFYFHZPI9ADozpFepLZCxY+O8sYLDa1rirvenmLwJiOHmeQRJ5orYedFeLk1PFlZ6t8Q==", "dev": true, "optional": true }, "@esbuild/freebsd-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.17.tgz", - "integrity": "sha512-8ScTdNJl5idAKjH8zGAsN7RuWcyHG3BAvMNpKOBaqqR7EbUhhVHOqXRdL7oZvz8WNHL2pr5+eIT5c65kA6NHug==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.0.tgz", + "integrity": "sha512-qCsNRsVTaC3ekwZcb2sa7l1gwCtJK3EqCWyDgpoQocYf3lRpbAzaCvqZSF2+NOO64cV+JbedXPsFiXU1aaVcIg==", "dev": true, "optional": true }, "@esbuild/linux-arm": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.17.tgz", - "integrity": "sha512-iihzrWbD4gIT7j3caMzKb/RsFFHCwqqbrbH9SqUSRrdXkXaygSZCZg1FybsZz57Ju7N/SHEgPyaR0LZ8Zbe9gQ==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.0.tgz", + "integrity": "sha512-Y2G2NU6155gcfNKvrakVmZV5xUAEhXjsN/uKtbKKRnvee0mHUuaT3OdQJDJKjHVGr6B0898pc3slRpI1PqspoQ==", "dev": true, "optional": true }, "@esbuild/linux-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.17.tgz", - "integrity": "sha512-7S8gJnSlqKGVJunnMCrXHU9Q8Q/tQIxk/xL8BqAP64wchPCTzuM6W3Ra8cIa1HIflAvDnNOt2jaL17vaW+1V0g==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.0.tgz", + "integrity": "sha512-js4Vlch5XJQYISbDVJd2hsI/MsfVUz6d/FrclCE73WkQmniH37vFpuQI42ntWAeBghDIfaPZ6f9GilhwGzVFUg==", "dev": true, "optional": true }, "@esbuild/linux-ia32": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.17.tgz", - "integrity": "sha512-kiX69+wcPAdgl3Lonh1VI7MBr16nktEvOfViszBSxygRQqSpzv7BffMKRPMFwzeJGPxcio0pdD3kYQGpqQ2SSg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.0.tgz", + "integrity": "sha512-7tl/jSPkF59R3zeFDB2/09zLGhcM7DM+tCoOqjJbQjuL6qbMWomGT2RglCqRFpCSdzBx0hukmPPgUAMlmdj0sQ==", "dev": true, "optional": true }, "@esbuild/linux-loong64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.17.tgz", - "integrity": "sha512-dTzNnQwembNDhd654cA4QhbS9uDdXC3TKqMJjgOWsC0yNCbpzfWoXdZvp0mY7HU6nzk5E0zpRGGx3qoQg8T2DQ==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.0.tgz", + "integrity": "sha512-OG356F7dIVVF+EXJx5UfzFr1I5l6ES53GlMNSr3U1MhlaVyrP9um5PnrSJ+7TSDAzUC7YGjxb2GQWqHLd5XFoA==", "dev": true, "optional": true }, "@esbuild/linux-mips64el": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.17.tgz", - "integrity": "sha512-ezbDkp2nDl0PfIUn0CsQ30kxfcLTlcx4Foz2kYv8qdC6ia2oX5Q3E/8m6lq84Dj/6b0FrkgD582fJMIfHhJfSw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.0.tgz", + "integrity": "sha512-LWQJgGpxrjh2x08UYf6G5R+Km7zhkpCvKXtFQ6SX0fimDvy1C8kslgFHGxLS0wjGV8C4BNnENW/HNy57+RB7iA==", "dev": true, "optional": true }, "@esbuild/linux-ppc64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.17.tgz", - "integrity": "sha512-dzS678gYD1lJsW73zrFhDApLVdM3cUF2MvAa1D8K8KtcSKdLBPP4zZSLy6LFZ0jYqQdQ29bjAHJDgz0rVbLB3g==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.0.tgz", + "integrity": "sha512-f40N8fKiTQslUcUuhof2/syOQ+DC9Mqdnm9d063pew+Ptv9r6dBNLQCz4300MOfCLAbb0SdnrcMSzHbMehXWLw==", "dev": true, "optional": true }, "@esbuild/linux-riscv64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.17.tgz", - "integrity": "sha512-ylNlVsxuFjZK8DQtNUwiMskh6nT0vI7kYl/4fZgV1llP5d6+HIeL/vmmm3jpuoo8+NuXjQVZxmKuhDApK0/cKw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.0.tgz", + "integrity": "sha512-sc/pvLexRvxgEbmeq7LfLGnzUBFi/E2MGbnQj3CG8tnQ90tWPTi+9CbZEgIADhj6CAlCCmqxpUclIV1CRVUOTw==", "dev": true, "optional": true }, "@esbuild/linux-s390x": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.17.tgz", - "integrity": "sha512-gzy7nUTO4UA4oZ2wAMXPNBGTzZFP7mss3aKR2hH+/4UUkCOyqmjXiKpzGrY2TlEUhbbejzXVKKGazYcQTZWA/w==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.0.tgz", + "integrity": "sha512-7xq9/kY0vunCL2vjHKdHGI+660pCdeEC6K6TWBVvbTGXvT8s/qacfxMgr8PCeQRbNUZLOA13G6/G1+c0lYXO1A==", "dev": true, "optional": true }, "@esbuild/linux-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.17.tgz", - "integrity": "sha512-mdPjPxfnmoqhgpiEArqi4egmBAMYvaObgn4poorpUaqmvzzbvqbowRllQ+ZgzGVMGKaPkqUmPDOOFQRUFDmeUw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.0.tgz", + "integrity": "sha512-o7FhBLONk1mLT2ytlj/j/WuJcPdhWcVpysSJn1s9+zRdLwLKveipbPi5SIasJIqMq0T4CkQW76pxJYMqz9HrQA==", "dev": true, "optional": true }, "@esbuild/netbsd-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.17.tgz", - "integrity": "sha512-/PzmzD/zyAeTUsduZa32bn0ORug+Jd1EGGAUJvqfeixoEISYpGnAezN6lnJoskauoai0Jrs+XSyvDhppCPoKOA==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.0.tgz", + "integrity": "sha512-V6xXsv71b8vwFCW/ky82Rs//SbyA+ORty6A7Mzkg33/4NbYZ/1Vcbk7qAN5oi0i/gS4Q0+7dYT7NqaiVZ7+Xjw==", "dev": true, "optional": true }, "@esbuild/openbsd-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.17.tgz", - "integrity": "sha512-2yaWJhvxGEz2RiftSk0UObqJa/b+rIAjnODJgv2GbGGpRwAfpgzyrg1WLK8rqA24mfZa9GvpjLcBBg8JHkoodg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.0.tgz", + "integrity": "sha512-StlQor6A0Y9SSDxraytr46Qbz25zsSDmsG3MCaNkBnABKHP3QsngOCfdBikqHVVrXeK0KOTmtX92/ncTGULYgQ==", "dev": true, "optional": true }, "@esbuild/sunos-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.17.tgz", - "integrity": "sha512-xtVUiev38tN0R3g8VhRfN7Zl42YCJvyBhRKw1RJjwE1d2emWTVToPLNEQj/5Qxc6lVFATDiy6LjVHYhIPrLxzw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.0.tgz", + "integrity": "sha512-K64Wqw57j8KrwjR3QjsuzN/qDGK6Cno6QYtIlWAmGab5iYPBZCWz7HFtF2a86/130LmUsdXqOID7J0SmjjRFIQ==", "dev": true, "optional": true }, "@esbuild/win32-arm64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.17.tgz", - "integrity": "sha512-ga8+JqBDHY4b6fQAmOgtJJue36scANy4l/rL97W+0wYmijhxKetzZdKOJI7olaBaMhWt8Pac2McJdZLxXWUEQw==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.0.tgz", + "integrity": "sha512-hly6iSWAf0hf3aHD18/qW7iFQbg9KAQ0RFGG9plcxkhL4uGw43O+lETGcSO/PylNleFowP/UztpF6U4oCYgpPw==", "dev": true, "optional": true }, "@esbuild/win32-ia32": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.17.tgz", - "integrity": "sha512-WnsKaf46uSSF/sZhwnqE4L/F89AYNMiD4YtEcYekBt9Q7nj0DiId2XH2Ng2PHM54qi5oPrQ8luuzGszqi/veig==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.0.tgz", + "integrity": "sha512-aL4EWPh0nyC5uYRfn+CHkTgawd4DjtmwquthNDmGf6Ht6+mUc+bQXyZNH1QIw8x20hSqFc4Tf36aLLWP/TPR3g==", "dev": true, "optional": true }, "@esbuild/win32-x64": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.17.tgz", - "integrity": "sha512-y+EHuSchhL7FjHgvQL/0fnnFmO4T1bhvWANX6gcnqTjtnKWbTvUMCpGnv2+t+31d7RzyEAYAd4u2fnIhHL6N/Q==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.0.tgz", + "integrity": "sha512-W6IIQ9Rt43I/GqfXeBFLk0TvowKBoirs9sw2LPfhHax6ayMlW5PhFzSJ76I1ac9Pk/aRcSMrHWvVyZs8ZPK2wA==", "dev": true, "optional": true }, @@ -16156,33 +16156,33 @@ } }, "esbuild": { - "version": "0.16.17", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.17.tgz", - "integrity": "sha512-G8LEkV0XzDMNwXKgM0Jwu3nY3lSTwSGY6XbxM9cr9+s0T/qSV1q1JVPBGzm3dcjhCic9+emZDmMffkwgPeOeLg==", - "dev": true, - "requires": { - "@esbuild/android-arm": "0.16.17", - "@esbuild/android-arm64": "0.16.17", - "@esbuild/android-x64": "0.16.17", - "@esbuild/darwin-arm64": "0.16.17", - "@esbuild/darwin-x64": "0.16.17", - "@esbuild/freebsd-arm64": "0.16.17", - "@esbuild/freebsd-x64": "0.16.17", - "@esbuild/linux-arm": "0.16.17", - "@esbuild/linux-arm64": "0.16.17", - "@esbuild/linux-ia32": "0.16.17", - "@esbuild/linux-loong64": "0.16.17", - "@esbuild/linux-mips64el": "0.16.17", - "@esbuild/linux-ppc64": "0.16.17", - "@esbuild/linux-riscv64": "0.16.17", - "@esbuild/linux-s390x": "0.16.17", - "@esbuild/linux-x64": "0.16.17", - "@esbuild/netbsd-x64": "0.16.17", - "@esbuild/openbsd-x64": "0.16.17", - "@esbuild/sunos-x64": "0.16.17", - "@esbuild/win32-arm64": "0.16.17", - "@esbuild/win32-ia32": "0.16.17", - "@esbuild/win32-x64": "0.16.17" + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.0.tgz", + "integrity": "sha512-4yGk3rD95iS/wGzrx0Ji5czZcx1j2wvfF1iAJaX2FIYLB6sU6wYkDeplpZHzfwQw2yXGXsAoxmO6LnMQkl04Kg==", + "dev": true, + "requires": { + "@esbuild/android-arm": "0.17.0", + "@esbuild/android-arm64": "0.17.0", + "@esbuild/android-x64": "0.17.0", + "@esbuild/darwin-arm64": "0.17.0", + "@esbuild/darwin-x64": "0.17.0", + "@esbuild/freebsd-arm64": "0.17.0", + "@esbuild/freebsd-x64": "0.17.0", + "@esbuild/linux-arm": "0.17.0", + "@esbuild/linux-arm64": "0.17.0", + "@esbuild/linux-ia32": "0.17.0", + "@esbuild/linux-loong64": "0.17.0", + "@esbuild/linux-mips64el": "0.17.0", + "@esbuild/linux-ppc64": "0.17.0", + "@esbuild/linux-riscv64": "0.17.0", + "@esbuild/linux-s390x": "0.17.0", + "@esbuild/linux-x64": "0.17.0", + "@esbuild/netbsd-x64": "0.17.0", + "@esbuild/openbsd-x64": "0.17.0", + "@esbuild/sunos-x64": "0.17.0", + "@esbuild/win32-arm64": "0.17.0", + "@esbuild/win32-ia32": "0.17.0", + "@esbuild/win32-x64": "0.17.0" } }, "escalade": { diff --git a/package.json b/package.json index 33e5fe0b..00c996ea 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@typescript-eslint/parser": "^5", "aws-cdk-lib": "2.0.0", "constructs": "10.0.5", - "esbuild": "^0.16.0", + "esbuild": "^0.17.0", "eslint": "^8", "eslint-import-resolver-node": "^0.3.7", "eslint-import-resolver-typescript": "^2.7.1", @@ -167,7 +167,7 @@ "@types/babel__traverse": "7.18.2" }, "optionalDependencies": { - "esbuild": "^0.16.0" + "esbuild": "^0.17.0" }, "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." } diff --git a/src/esbuild-source.ts b/src/esbuild-source.ts index fcedc74c..f29cbfea 100644 --- a/src/esbuild-source.ts +++ b/src/esbuild-source.ts @@ -1,6 +1,6 @@ import { DynamicPackage } from './dynamic-package'; -const dynamicEsbuild = new DynamicPackage('esbuild@^0.16.0'); +const dynamicEsbuild = new DynamicPackage('esbuild@^0.17.0'); export const Esbuild = { name: dynamicEsbuild.name, diff --git a/src/esbuild-types.ts b/src/esbuild-types.ts index bad12b02..bd85f451 100644 --- a/src/esbuild-types.ts +++ b/src/esbuild-types.ts @@ -134,18 +134,12 @@ export interface BuildOptions extends CommonOptions { readonly banner?: { [type: string]: string }; /** Documentation: https://esbuild.github.io/api/#footer */ readonly footer?: { [type: string]: string }; - /** Documentation: https://esbuild.github.io/api/#incremental */ - readonly incremental?: boolean; /** Documentation: https://esbuild.github.io/api/#working-directory */ readonly absWorkingDir?: string; /** Documentation: https://esbuild.github.io/api/#node-paths */ readonly nodePaths?: string[]; // The "NODE_PATH" variable from Node.js } -export interface WatchMode { - onRebuild?: (error: BuildFailure | null, result: BuildResult | null) => void; -} - export interface StdinOptions { contents: string | Uint8Array; resolveDir?: string; @@ -193,28 +187,15 @@ export interface OutputFile { readonly text: string; } -export interface BuildInvalidate { - (): Promise; - dispose(): void; -} - -export interface BuildIncremental extends BuildResult { - rebuild: BuildInvalidate; -} - -export interface BuildResult { +export interface BuildResult { errors: Message[]; warnings: Message[]; /** Only when "write: false" */ - outputFiles?: OutputFile[]; - /** Only when "incremental: true" */ - rebuild?: BuildInvalidate; - /** Only when "watch: true" */ - stop?: () => void; + outputFiles: OutputFile[] | (SpecificOptions['write'] extends false ? never : undefined); /** Only when "metafile: true" */ - metafile?: Metafile; + metafile: Metafile | (SpecificOptions['metafile'] extends true ? never : undefined); /** Only when "mangleCache" is present */ - mangleCache?: Record; + mangleCache: Record | (SpecificOptions['mangleCache'] extends Object ? never : undefined); } export interface BuildFailure extends Error { @@ -227,6 +208,8 @@ export interface ServeOptions { port?: number; host?: string; servedir?: string; + keyfile?: string; + certfile?: string; onRequest?: (args: ServeOnRequestArgs) => void; } @@ -243,8 +226,6 @@ export interface ServeOnRequestArgs { export interface ServeResult { port: number; host: string; - wait: Promise; - stop: () => void; } export interface TransformOptions extends CommonOptions { @@ -256,14 +237,14 @@ export interface TransformOptions extends CommonOptions { readonly footer?: string; } -export interface TransformResult { +export interface TransformResult { code: string; map: string; warnings: Message[]; /** Only when "mangleCache" is present */ - mangleCache?: Record; + mangleCache: Record | (SpecificOptions['mangleCache'] extends Object ? never : undefined); /** Only when "legalComments" is "external" */ - legalComments?: string; + legalComments: string | (SpecificOptions['legalComments'] extends 'external' ? never : undefined); } export interface TransformFailure extends Error { @@ -283,7 +264,7 @@ export interface PluginBuild { onStart(callback: () => (OnStartResult | null | void | Promise)): void; onEnd(callback: (result: BuildResult) => - (void | Promise)): void; + (OnEndResult | null | void | Promise)): void; onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) => (OnResolveResult | null | undefined | Promise)): void; onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) => @@ -291,7 +272,7 @@ export interface PluginBuild { // This is a full copy of the esbuild library in case you need it esbuild: { - serve: typeof serve; + context: typeof context; build: typeof build; buildSync: typeof buildSync; transform: typeof transform; @@ -331,6 +312,11 @@ export interface OnStartResult { warnings?: PartialMessage[]; } +export interface OnEndResult { + errors?: PartialMessage[]; + warnings?: PartialMessage[]; +} + export interface OnResolveOptions { filter: RegExp; namespace?: string; @@ -460,6 +446,16 @@ export interface AnalyzeMetafileOptions { verbose?: boolean; } +export interface WatchOptions { +} + +export interface BuildContext { + rebuild(): Promise>; + watch(options?: WatchOptions): void; + serve(options?: ServeOptions): Promise; + dispose(): Promise; +} + /** * This function invokes the "esbuild" command-line tool for you. It returns a * promise that either resolves with a "BuildResult" object or rejects with a @@ -470,22 +466,20 @@ export interface AnalyzeMetafileOptions { * * Documentation: https://esbuild.github.io/api/#build-api */ -export declare function build(options: BuildOptions & { write: false }): Promise; -export declare function build(options: BuildOptions & { incremental: true; metafile: true }): Promise; -export declare function build(options: BuildOptions & { incremental: true }): Promise; -export declare function build(options: BuildOptions & { metafile: true }): Promise; +export declare function build(options: SpecificOptions): Promise>; export declare function build(options: BuildOptions): Promise; /** - * This function is similar to "build" but it serves the resulting files over - * HTTP on a localhost address with the specified port. + * This is the advanced long-running form of "build" that supports additional + * features such as watch mode and a local development server. * * - Works in node: yes * - Works in browser: no * - * Documentation: https://esbuild.github.io/api/#serve + * Documentation: https://esbuild.github.io/api/#context-api */ -export declare function serve(serveOptions: ServeOptions, buildOptions: BuildOptions): Promise; +export declare function context(options: T): Promise>; +export declare function context(options: BuildOptions): Promise; /** * This function transforms a single JavaScript file. It can be used to minify @@ -498,6 +492,7 @@ export declare function serve(serveOptions: ServeOptions, buildOptions: BuildOpt * * Documentation: https://esbuild.github.io/api/#transform-api */ +export declare function transform(input: string | Uint8Array, options?: SpecificOptions): Promise>; export declare function transform(input: string | Uint8Array, options?: TransformOptions): Promise; /** @@ -530,7 +525,7 @@ export declare function analyzeMetafile(metafile: Metafile | string, options?: A * * Documentation: https://esbuild.github.io/api/#build-api */ -export declare function buildSync(options: BuildOptions & { write: false }): BuildResult & { outputFiles: OutputFile[] }; +export declare function buildSync(options: SpecificOptions): BuildResult; export declare function buildSync(options: BuildOptions): BuildResult; /** @@ -541,7 +536,8 @@ export declare function buildSync(options: BuildOptions): BuildResult; * * Documentation: https://esbuild.github.io/api/#transform-api */ -export declare function transformSync(input: string, options?: TransformOptions): TransformResult; +export declare function transformSync(input: string, options?: SpecificOptions): TransformResult; +export declare function transformSync(input: string | Uint8Array, options?: TransformOptions): TransformResult; /** * A synchronous version of "formatMessages".