@mrgrain/cdk-esbuild 3.5.0 → 3.7.2
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 +581 -355
- package/.projenrc.ts +63 -24
- package/API.md +463 -179
- package/CHANGELOG.md +400 -0
- package/README.md +16 -6
- package/lib/asset.d.ts +20 -6
- package/lib/asset.js +33 -18
- package/lib/bundler.d.ts +44 -6
- package/lib/bundler.js +31 -14
- package/lib/code.d.ts +83 -27
- package/lib/code.js +85 -24
- package/lib/esbuild-types.d.ts +7 -4
- 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 +81 -6
- package/lib/source.js +84 -8
- package/package.json +13 -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/.jsii
CHANGED
|
@@ -2777,7 +2777,7 @@
|
|
|
2777
2777
|
"stability": "stable"
|
|
2778
2778
|
},
|
|
2779
2779
|
"homepage": "https://github.com/mrgrain/cdk-esbuild",
|
|
2780
|
-
"jsiiVersion": "1.
|
|
2780
|
+
"jsiiVersion": "1.62.0 (build 293ac17)",
|
|
2781
2781
|
"keywords": [
|
|
2782
2782
|
"aws-cdk",
|
|
2783
2783
|
"bundler",
|
|
@@ -2800,11 +2800,11 @@
|
|
|
2800
2800
|
},
|
|
2801
2801
|
"name": "@mrgrain/cdk-esbuild",
|
|
2802
2802
|
"readme": {
|
|
2803
|
-
"markdown": "# cdk-esbuild\n\n_CDK constructs for [esbuild](https://github.com/evanw/esbuild), an extremely fast JavaScript bundler_\n\n[Getting started](#getting-started) | [Migrating to v3](#migrating-to-v3) |\n[Documentation](#documentation) | [API Reference](#api-reference) | [Versioning](#versioning)\n\n> This version is compatible with AWS CDK v2. For the previous, AWS CDK v1 compatible release, see [cdk-esbuild@v2](https://github.com/mrgrain/cdk-esbuild/tree/v2).\n\n## Why?\n\n_esbuild_ is an extremely fast bundler and minifier for Typescript and JavaScript.\nThis package makes _esbuild_ available to deploy lambda functions, static websites or to publish build artefacts (assets) for further use.\n\nAWS CDK [supports _esbuild_ with Lambda Functions](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html). However the implementation cannot be used with any other Constructs and doesn't expose all of _esbuild_'s build interface.\n\nThis package is running _esbuild_ directly in Node.js and bypasses Docker which the AWS CDK implementation uses. The approach is quicker and easier to use for Node.js users, but incompatible with other languages.\n\n**Production readiness**\n\nThis package is stable and ready to be used in production, as many do. However _esbuild_ has not yet released a version 1.0.0 and its API is still in active development. Please read the guide on [esbuild's production readiness](https://esbuild.github.io/faq/#production-readiness).\n\nNotably upgrades of the _esbuild_ minimum version requirement will be introduced in **minor versions** of this package and will inherit breaking changes from _esbuild_.\n\n## Getting started\n\nInstall `cdk-esbuild`:\n\n```\nnpm install @mrgrain/cdk-esbuild@3\n```\n\nIf _peer_ or _optional dependencies_ are not installed automatically (e.g. when using npm v4-6), please use this command to install all of them:\n\n```\nnpm install @mrgrain/cdk-esbuild@3 esbuild\n```\n\n### AWS Lambda: Serverless function\n\n> 💡 See [Lambda Function](examples/lambda) for a complete working example of a how to deploy a lambda function.\n\nUse `TypeScriptCode` as the `code` of a [lambda function](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#code):\n\n```ts\nimport * as lambda from \"aws-cdk-lib/aws-lambda\";\nimport { TypeScriptCode } from \"@mrgrain/cdk-esbuild\";\n\nconst bundledCode = new TypeScriptCode(\"src/index.ts\");\n\nconst fn = new lambda.Function(stack, \"MyFunction\", {\n runtime: lambda.Runtime.NODEJS_16_X,\n handler: \"index.handler\",\n code: bundledCode,\n});\n```\n\n### AWS S3: Static Website\n\n> 💡 See [Static Website with React](examples/website) for a complete working example of a how to deploy a React app to S3.\n\nUse `TypeScriptSource` as one of the `sources` of a [static website deployment](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html#roadmap):\n\n```ts\nimport * as s3 from \"aws-cdk-lib/aws-s3\";\nimport * as s3deploy from \"aws-cdk-lib/aws-s3-deployment\";\nimport { TypeScriptSource } from \"@mrgrain/cdk-esbuild\";\n\nconst websiteBundle = new TypeScriptSource(\"src/index.tsx\");\n\nconst websiteBucket = new s3.Bucket(stack, \"WebsiteBucket\", {\n autoDeleteObjects: true,\n publicReadAccess: true,\n removalPolicy: RemovalPolicy.DESTROY,\n websiteIndexDocument: \"index.html\",\n});\n\nnew s3deploy.BucketDeployment(stack, \"DeployWebsite\", {\n destinationBucket: websiteBucket,\n sources: [websiteBundle],\n});\n```\n\n### Amazon CloudWatch Synthetics: Canary monitoring\n\n> 💡 See [Monitored Website](examples/website) for a complete working example of a deployed and monitored website.\n\nSynthetics runs a canary to produce traffic to an application for monitoring purposes. Use `TypeScriptCode` as the `code` of a Canary test:\n\n> ℹ️ This feature depends on the `@aws-cdk/aws-synthetics-alpha` package which is a developer preview. You may need to update your source code when upgrading to a newer version of this package.\n>\n> ```\n> npm i @aws-cdk/aws-synthetics-alpha\n> ```\n\n```ts\nimport * as synthetics from \"@aws-cdk/aws-synthetics-alpha\";\nimport { TypeScriptCode } from \"@mrgrain/cdk-esbuild\";\n\nconst bundledCode = new TypeScriptCode(\"src/index.ts\", {\n buildOptions: {\n outdir: \"nodejs/node_modules\", // This is required by Synthetics\n },\n});\n\nconst canary = new synthetics.Canary(stack, \"MyCanary\", {\n runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_2,\n test: synthetics.Test.custom({\n code: bundledCode,\n handler: \"index.handler\",\n });\n});\n```\n\n## Documentation\n\nThe package exports various different constructs for use with existing CDK features. A major guiding design principal for this package is to _extend, don't replace_. Expect constructs that you can provide as props, not complete replacements.\n\nFor use in **Lambda Functions** and **Synthetic Canaries**, the following classes implement `lambda.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Code.html)) and `synthetics.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-synthetics-alpha.Code.html)):\n\n- `TypeScriptCode` & `JavaScriptCode`\n\nInline code is only supported by **Lambda**:\n\n- `InlineTypeScriptCode` & `InlineJavaScriptCode`\n- `InlineTsxCode` & `InlineJsxCode`\n\nFor use with **S3 bucket deployments**, classes implementing `s3deploy.ISource` ([reference](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html)):\n\n- `TypeScriptSource` & `JavaScriptSource`\n\n> _Code and Source constructs seamlessly plug-in to other high-level CDK constructs. They share the same set of parameters, props and build options._\n\nThe following classes power the other features. You normally won't have to use them, but they are there if you need them:\n\n- `TypeScriptAsset` & `JavaScriptAsset` implements `s3.Asset` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)) \\\n creates an asset uploaded to S3 which can be referenced by other constructs\n\n- `EsbuildBundler` implements `core.BundlingOptions` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.BundlingOptions.html)) \\\n provides an interface for a _esbuild_ bundler wherever needed\n\n### [API Reference](API.md)\n\nAuto-generated reference for classes and structs. This information is also available as part of your IDE's code completion.\n\n### Escape hatches\n\nIt's possible that you want to use an implementation of esbuild that's different to the default one. Common reasons are:\n\n- The current version constraints for esbuild are not suitable\n- To use a version of esbuild that is installed by any other means than `npm`, including Docker\n- Plugin support is needed for building\n\nFor these situations, this package offers an escape hatch to bypass regular the implementation and provide a custom build and transform function.\n\n#### Custom build function\n\n> 💡 See [Using esbuild with plugins](examples/esbuild-with-plugins) for a complete working example of a custom build function using this escape hatch.\n\nConstructs that result in starting a build, take a `buildFn` as optional prop. While the defined type for this function is `any`, it must implement the same signature as esbuild's `buildSync` function.\n\n```ts\nnew TypeScriptCode(\"fixtures/handlers/ts-handler.ts\", {\n buildFn: (options: BuildOptions): BuildResult => {\n try {\n // custom implementation returning BuildResult\n } catch (error) {\n // throw BuildFailure exception here\n }\n },\n});\n```\n\nInstead of esbuild, the provided function will be invoked with the calculated build options. The custom build function can amend, change or discard any of these. However integration with CDK relies heavily on the values `outdir`/`outfile` are set to and it's usually required to use them unchanged.\n\nFailures have to cause a `BuildFailure` exception in order to be fully handled.\n\n#### Custom transform function\n\nConstructs that result in starting a transformation, take a `transformFn` as optional prop. While the defined type for this function is `any`, it must implement the same signature as esbuild's `transformSync` function.\n\n```ts\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformFn: (options: TransformOptions): TransformResult => {\n try {\n // custom implementation returning TransformResult\n } catch (error) {\n // throw TransformFailure exception here\n }\n },,\n});\n```\n\nInstead of esbuild, the provided function will be invoked with the calculated transform options. The custom transform function can amend, change or discard any of these.\n\nFailures have to cause a `TransformFailure` exception in order to be fully handled.\n\n### Migrating to v3\n\nThe release of cdk-esbuild v3 brings compatibility with AWS CDK v2. Furthermore all deprecated properties and classes have been removed. In particular `InlineCode` classes now take `TransformerProps` as second parameter instead of transform options.\n\n#### Upgrading\n\n- This version requires AWS CDK v2. Follow the [official migration guide](https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-v2.html) to upgrade.\n- Update the package dependency to v3: `npm install --save @mrgrain/cdk-esbuild@^3.0.0`\n- `esbuild` is installed as an optional dependency. If your setup does not automatically install optional dependencies, make sure to add it as an explicit dependency.\n- Any use of `InlineCode` variations has to be updated. Previously the second parameter was either of type `TransformerProps` or `TransformOptions`. Now it must be `TransformerProps`.\\\n If the passed value is of type `TransformOptions`, turn it into the correct type like this:\n\n ```ts\n const oldOptions: TransformOptions = {...}\n\n new InlineTypeScriptCode('// inline code', {\n transformOptions: oldOptions\n });\n ```\n\n## Versioning\n\nThis package follows [Semantic Versioning](https://semver.org/), with the exception of upgrades to `esbuild`. These will be released as **minor versions** and often include breaking changes from `esbuild`.\n\n### Npm Tags\n\nSome users prefer to use tags over version ranges. The following stable tags are available for use:\n\n- `cdk-v1`, `cdk-v2` are provided for the latest release compatible with each version of the AWS CDK.\n\n- `latest` is the most recent stable release.\n\nThese tags also exist, but usage is strongly not recommended:\n\n- `unstable`, `next` are used for pre-release of the current and next major version respectively.\n\n- ~~`cdk-1.x.x`~~ tags have been deprecated in favour of `cdk-v1`. Use that one instead.\n\n## Roadmap & Contributions\n\n[The project's roadmap is available on GitHub.](https://github.com/mrgrain/cdk-esbuild/projects/1) Please submit any feature requests as issues to the repository.\n\nAll contributions are welcome, no matter if they are for already planned or completely new features.\n\n## Library authors\n\nBuilding a library consumed by other packages that relies on `cdk-esbuild` might require you to set `buildOptions.absWorkingDir`. The easiest way to do this, is to resolve based on the directory name of the calling file, and traverse the tree upwards to the root of your library package (that's where `package.json` and `tsconfig.json` are):\n\n```ts\n// file: project/src/index.ts\nconst props = {\n buildOptions: {\n absWorkingDir: path.resolve(__dirname, \"..\"), // now: /user/project\n },\n};\n```\n\nThis will dynamically resolve to the correct path, wherever the package is installed.\n\nPlease open an issue if you encounter any difficulties.\n"
|
|
2803
|
+
"markdown": "# cdk-esbuild\n\n_CDK constructs for [esbuild](https://github.com/evanw/esbuild), an extremely fast JavaScript bundler_\n\n[Getting started](#getting-started)\n[Documentation](#documentation) | [API Reference](#api-reference) | [Versioning](#versioning) | [Upgrading from AWS CDK v1](#upgrading-from-aws-cdk-v1)\n\n[](https://constructs.dev/packages/@mrgrain/cdk-esbuild)\n\n## Why?\n\n_esbuild_ is an extremely fast bundler and minifier for Typescript and JavaScript.\nThis package makes _esbuild_ available to deploy lambda functions, static websites or to publish build artefacts (assets) for further use.\n\nAWS CDK [supports _esbuild_ with Lambda Functions](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html). However the implementation cannot be used with any other Constructs and doesn't expose all of _esbuild_'s build interface.\n\nThis package is running _esbuild_ directly in Node.js and bypasses Docker which the AWS CDK implementation uses. The approach is quicker and easier to use for Node.js users, but incompatible with other languages.\n\n**Production readiness**\n\nThis package is stable and ready to be used in production, as many do. However _esbuild_ has not yet released a version 1.0.0 and its API is still in active development. Please read the guide on [esbuild's production readiness](https://esbuild.github.io/faq/#production-readiness).\n\nNotably upgrades of the _esbuild_ minimum version requirement will be introduced in **minor versions** of this package and will inherit breaking changes from _esbuild_.\n\n## Getting started\n\nInstall `cdk-esbuild`:\n\n```\nnpm install @mrgrain/cdk-esbuild@3\n```\n\nIf _peer_ or _optional dependencies_ are not installed automatically (e.g. when using npm v4-6), please use this command to install all of them:\n\n```\nnpm install @mrgrain/cdk-esbuild@3 esbuild\n```\n\n### AWS Lambda: Serverless function\n\n> 💡 See [Lambda Function](examples/lambda) for a complete working example of a how to deploy a lambda function.\n\nUse `TypeScriptCode` as the `code` of a [lambda function](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#code):\n\n```ts\nimport * as lambda from \"aws-cdk-lib/aws-lambda\";\nimport { TypeScriptCode } from \"@mrgrain/cdk-esbuild\";\n\nconst bundledCode = new TypeScriptCode(\"src/index.ts\");\n\nconst fn = new lambda.Function(stack, \"MyFunction\", {\n runtime: lambda.Runtime.NODEJS_16_X,\n handler: \"index.handler\",\n code: bundledCode,\n});\n```\n\n### AWS S3: Static Website\n\n> 💡 See [Static Website with React](examples/website) for a complete working example of a how to deploy a React app to S3.\n\nUse `TypeScriptSource` as one of the `sources` of a [static website deployment](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html#roadmap):\n\n```ts\nimport * as s3 from \"aws-cdk-lib/aws-s3\";\nimport * as s3deploy from \"aws-cdk-lib/aws-s3-deployment\";\nimport { TypeScriptSource } from \"@mrgrain/cdk-esbuild\";\n\nconst websiteBundle = new TypeScriptSource(\"src/index.tsx\");\n\nconst websiteBucket = new s3.Bucket(stack, \"WebsiteBucket\", {\n autoDeleteObjects: true,\n publicReadAccess: true,\n removalPolicy: RemovalPolicy.DESTROY,\n websiteIndexDocument: \"index.html\",\n});\n\nnew s3deploy.BucketDeployment(stack, \"DeployWebsite\", {\n destinationBucket: websiteBucket,\n sources: [websiteBundle],\n});\n```\n\n### Amazon CloudWatch Synthetics: Canary monitoring\n\n> 💡 See [Monitored Website](examples/website) for a complete working example of a deployed and monitored website.\n\nSynthetics runs a canary to produce traffic to an application for monitoring purposes. Use `TypeScriptCode` as the `code` of a Canary test:\n\n> ℹ️ This feature depends on the `@aws-cdk/aws-synthetics-alpha` package which is a developer preview. You may need to update your source code when upgrading to a newer version of this package.\n>\n> ```\n> npm i @aws-cdk/aws-synthetics-alpha\n> ```\n\n```ts\nimport * as synthetics from \"@aws-cdk/aws-synthetics-alpha\";\nimport { TypeScriptCode } from \"@mrgrain/cdk-esbuild\";\n\nconst bundledCode = new TypeScriptCode(\"src/index.ts\", {\n buildOptions: {\n outdir: \"nodejs/node_modules\", // This is required by Synthetics\n },\n});\n\nconst canary = new synthetics.Canary(stack, \"MyCanary\", {\n runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_2,\n test: synthetics.Test.custom({\n code: bundledCode,\n handler: \"index.handler\",\n });\n});\n```\n\n## Documentation\n\nThe package exports various different constructs for use with existing CDK features. A major guiding design principal for this package is to _extend, don't replace_. Expect constructs that you can provide as props, not complete replacements.\n\nFor use in **Lambda Functions** and **Synthetic Canaries**, the following classes implement `lambda.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Code.html)) and `synthetics.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-synthetics-alpha.Code.html)):\n\n- `TypeScriptCode` & `JavaScriptCode`\n\nInline code is only supported by **Lambda**:\n\n- `InlineTypeScriptCode` & `InlineJavaScriptCode`\n- `InlineTsxCode` & `InlineJsxCode`\n\nFor use with **S3 bucket deployments**, classes implementing `s3deploy.ISource` ([reference](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html)):\n\n- `TypeScriptSource` & `JavaScriptSource`\n\n> _Code and Source constructs seamlessly plug-in to other high-level CDK constructs. They share the same set of parameters, props and build options._\n\nThe following classes power the other features. You normally won't have to use them, but they are there if you need them:\n\n- `TypeScriptAsset` & `JavaScriptAsset` implements `s3.Asset` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)) \\\n creates an asset uploaded to S3 which can be referenced by other constructs\n\n- `EsbuildBundler` implements `core.BundlingOptions` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.BundlingOptions.html)) \\\n provides an interface for a _esbuild_ bundler wherever needed\n\n### [API Reference](API.md)\n\nAuto-generated reference for classes and structs. This information is also available as part of your IDE's code completion.\n\n### Escape hatches\n\nIt's possible that you want to use an implementation of esbuild that's different to the default one. Common reasons are:\n\n- The current version constraints for esbuild are not suitable\n- To use a version of esbuild that is installed by any other means than `npm`, including Docker\n- Plugin support is needed for building\n\nFor these situations, this package offers an escape hatch to bypass regular the implementation and provide a custom build and transform function.\n\n#### Esbuild binary path\n\nIt is possible to override the binary used by esbuild. The usual way to do this is to set the `ESBUILD_BINARY_PATH` environment variable. For convenience this package allows to set the binary path as a prop:\n\n```ts\nnew TypeScriptCode(\"fixtures/handlers/ts-handler.ts\", {\n esbuildBinaryPath: \"path/to/esbuild/binary\"\n});\n```\n\n#### Custom build function\n\n> 💡 See [Using esbuild with plugins](examples/esbuild-with-plugins) for a complete working example of a custom build function using this escape hatch.\n\nConstructs that result in starting a build, take a `buildFn` as optional prop. While the defined type for this function is `any`, it must implement the same signature as esbuild's `buildSync` function.\n\n```ts\nnew TypeScriptCode(\"fixtures/handlers/ts-handler.ts\", {\n buildFn: (options: BuildOptions): BuildResult => {\n try {\n // custom implementation returning BuildResult\n } catch (error) {\n // throw BuildFailure exception here\n }\n },\n});\n```\n\nInstead of esbuild, the provided function will be invoked with the calculated build options. The custom build function can amend, change or discard any of these. However integration with CDK relies heavily on the values `outdir`/`outfile` are set to and it's usually required to use them unchanged.\n\nFailures have to cause a `BuildFailure` exception in order to be fully handled.\n\n#### Custom transform function\n\nConstructs that result in starting a transformation, take a `transformFn` as optional prop. While the defined type for this function is `any`, it must implement the same signature as esbuild's `transformSync` function.\n\n```ts\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformFn: (options: TransformOptions): TransformResult => {\n try {\n // custom implementation returning TransformResult\n } catch (error) {\n // throw TransformFailure exception here\n }\n },,\n});\n```\n\nInstead of esbuild, the provided function will be invoked with the calculated transform options. The custom transform function can amend, change or discard any of these.\n\nFailures have to cause a `TransformFailure` exception in order to be fully handled.\n\n### Upgrading from AWS CDK v1\n\nThis version is compatible with AWS CDK v2. For the previous, AWS CDK v1 compatible release, see [cdk-esbuild@v2](https://github.com/mrgrain/cdk-esbuild/tree/v2).\n\nTo upgrade from AWS CDK v1 and cdk-esbuild@v2, please follow these steps:\n\n- This version requires AWS CDK v2. Follow the [official migration guide](https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-v2.html) to upgrade.\n- Update the package dependency to v3: `npm install --save @mrgrain/cdk-esbuild@^3.0.0`\n- `esbuild` is installed as an optional dependency. If your setup does not automatically install optional dependencies, make sure to add it as an explicit dependency.\n- Any use of `InlineCode` variations has to be updated. Previously the second parameter was either of type `TransformerProps` or `TransformOptions`. Now it must be `TransformerProps`.\\\n If the passed value is of type `TransformOptions`, turn it into the correct type like this:\n\n ```ts\n const oldOptions: TransformOptions = {...}\n\n new InlineTypeScriptCode('// inline code', {\n transformOptions: oldOptions\n });\n ```\n\n## Versioning\n\nThis package follows [Semantic Versioning](https://semver.org/), with the exception of upgrades to `esbuild`. These will be released as **minor versions** and often include breaking changes from `esbuild`.\n\n### Npm Tags\n\nSome users prefer to use tags over version ranges. The following stable tags are available for use:\n\n- `cdk-v1`, `cdk-v2` are provided for the latest release compatible with each version of the AWS CDK.\n\n- `latest` is the most recent stable release.\n\nThese tags also exist, but usage is strongly not recommended:\n\n- `unstable`, `next` are used for pre-release of the current and next major version respectively.\n\n- ~~`cdk-1.x.x`~~ tags have been deprecated in favour of `cdk-v1`. Use that one instead.\n\n## Roadmap & Contributions\n\n[The project's roadmap is available on GitHub.](https://github.com/mrgrain/cdk-esbuild/projects/1) Please submit any feature requests as issues to the repository.\n\nAll contributions are welcome, no matter if they are for already planned or completely new features.\n\n## Library authors\n\nBuilding a library consumed by other packages that relies on `cdk-esbuild` might require you to set `buildOptions.absWorkingDir`. The easiest way to do this, is to resolve based on the directory name of the calling file, and traverse the tree upwards to the root of your library package (that's where `package.json` and `tsconfig.json` are):\n\n```ts\n// file: project/src/index.ts\nconst props = {\n buildOptions: {\n absWorkingDir: path.resolve(__dirname, \"..\"), // now: /user/project\n },\n};\n```\n\nThis will dynamically resolve to the correct path, wherever the package is installed.\n\nPlease open an issue if you encounter any difficulties.\n"
|
|
2804
2804
|
},
|
|
2805
2805
|
"repository": {
|
|
2806
2806
|
"type": "git",
|
|
2807
|
-
"url": "
|
|
2807
|
+
"url": "https://github.com/mrgrain/cdk-esbuild"
|
|
2808
2808
|
},
|
|
2809
2809
|
"schema": "jsii/0.10.0",
|
|
2810
2810
|
"targets": {
|
|
@@ -2833,14 +2833,14 @@
|
|
|
2833
2833
|
{
|
|
2834
2834
|
"abstract": true,
|
|
2835
2835
|
"docs": {
|
|
2836
|
-
"remarks": "
|
|
2836
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
2837
2837
|
"stability": "stable",
|
|
2838
|
-
"summary": "A
|
|
2838
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
2839
2839
|
},
|
|
2840
2840
|
"immutable": true,
|
|
2841
2841
|
"locationInModule": {
|
|
2842
2842
|
"filename": "src/asset.ts",
|
|
2843
|
-
"line":
|
|
2843
|
+
"line": 40
|
|
2844
2844
|
},
|
|
2845
2845
|
"name": "entryPoints",
|
|
2846
2846
|
"type": {
|
|
@@ -2900,7 +2900,7 @@
|
|
|
2900
2900
|
"kind": "interface",
|
|
2901
2901
|
"locationInModule": {
|
|
2902
2902
|
"filename": "src/esbuild-types.ts",
|
|
2903
|
-
"line":
|
|
2903
|
+
"line": 78
|
|
2904
2904
|
},
|
|
2905
2905
|
"name": "BuildOptions",
|
|
2906
2906
|
"properties": [
|
|
@@ -2913,7 +2913,7 @@
|
|
|
2913
2913
|
"immutable": true,
|
|
2914
2914
|
"locationInModule": {
|
|
2915
2915
|
"filename": "src/esbuild-types.ts",
|
|
2916
|
-
"line":
|
|
2916
|
+
"line": 130
|
|
2917
2917
|
},
|
|
2918
2918
|
"name": "absWorkingDir",
|
|
2919
2919
|
"optional": true,
|
|
@@ -2930,7 +2930,7 @@
|
|
|
2930
2930
|
"immutable": true,
|
|
2931
2931
|
"locationInModule": {
|
|
2932
2932
|
"filename": "src/esbuild-types.ts",
|
|
2933
|
-
"line":
|
|
2933
|
+
"line": 108
|
|
2934
2934
|
},
|
|
2935
2935
|
"name": "allowOverwrite",
|
|
2936
2936
|
"optional": true,
|
|
@@ -2947,7 +2947,7 @@
|
|
|
2947
2947
|
"immutable": true,
|
|
2948
2948
|
"locationInModule": {
|
|
2949
2949
|
"filename": "src/esbuild-types.ts",
|
|
2950
|
-
"line":
|
|
2950
|
+
"line": 120
|
|
2951
2951
|
},
|
|
2952
2952
|
"name": "assetNames",
|
|
2953
2953
|
"optional": true,
|
|
@@ -2964,7 +2964,7 @@
|
|
|
2964
2964
|
"immutable": true,
|
|
2965
2965
|
"locationInModule": {
|
|
2966
2966
|
"filename": "src/esbuild-types.ts",
|
|
2967
|
-
"line":
|
|
2967
|
+
"line": 124
|
|
2968
2968
|
},
|
|
2969
2969
|
"name": "banner",
|
|
2970
2970
|
"optional": true,
|
|
@@ -2986,7 +2986,7 @@
|
|
|
2986
2986
|
"immutable": true,
|
|
2987
2987
|
"locationInModule": {
|
|
2988
2988
|
"filename": "src/esbuild-types.ts",
|
|
2989
|
-
"line":
|
|
2989
|
+
"line": 80
|
|
2990
2990
|
},
|
|
2991
2991
|
"name": "bundle",
|
|
2992
2992
|
"optional": true,
|
|
@@ -3003,7 +3003,7 @@
|
|
|
3003
3003
|
"immutable": true,
|
|
3004
3004
|
"locationInModule": {
|
|
3005
3005
|
"filename": "src/esbuild-types.ts",
|
|
3006
|
-
"line":
|
|
3006
|
+
"line": 48
|
|
3007
3007
|
},
|
|
3008
3008
|
"name": "charset",
|
|
3009
3009
|
"optional": true,
|
|
@@ -3020,7 +3020,7 @@
|
|
|
3020
3020
|
"immutable": true,
|
|
3021
3021
|
"locationInModule": {
|
|
3022
3022
|
"filename": "src/esbuild-types.ts",
|
|
3023
|
-
"line":
|
|
3023
|
+
"line": 118
|
|
3024
3024
|
},
|
|
3025
3025
|
"name": "chunkNames",
|
|
3026
3026
|
"optional": true,
|
|
@@ -3037,7 +3037,7 @@
|
|
|
3037
3037
|
"immutable": true,
|
|
3038
3038
|
"locationInModule": {
|
|
3039
3039
|
"filename": "src/esbuild-types.ts",
|
|
3040
|
-
"line":
|
|
3040
|
+
"line": 69
|
|
3041
3041
|
},
|
|
3042
3042
|
"name": "color",
|
|
3043
3043
|
"optional": true,
|
|
@@ -3054,7 +3054,7 @@
|
|
|
3054
3054
|
"immutable": true,
|
|
3055
3055
|
"locationInModule": {
|
|
3056
3056
|
"filename": "src/esbuild-types.ts",
|
|
3057
|
-
"line":
|
|
3057
|
+
"line": 104
|
|
3058
3058
|
},
|
|
3059
3059
|
"name": "conditions",
|
|
3060
3060
|
"optional": true,
|
|
@@ -3076,7 +3076,7 @@
|
|
|
3076
3076
|
"immutable": true,
|
|
3077
3077
|
"locationInModule": {
|
|
3078
3078
|
"filename": "src/esbuild-types.ts",
|
|
3079
|
-
"line":
|
|
3079
|
+
"line": 62
|
|
3080
3080
|
},
|
|
3081
3081
|
"name": "define",
|
|
3082
3082
|
"optional": true,
|
|
@@ -3098,7 +3098,7 @@
|
|
|
3098
3098
|
"immutable": true,
|
|
3099
3099
|
"locationInModule": {
|
|
3100
3100
|
"filename": "src/esbuild-types.ts",
|
|
3101
|
-
"line":
|
|
3101
|
+
"line": 38
|
|
3102
3102
|
},
|
|
3103
3103
|
"name": "drop",
|
|
3104
3104
|
"optional": true,
|
|
@@ -3120,7 +3120,7 @@
|
|
|
3120
3120
|
"immutable": true,
|
|
3121
3121
|
"locationInModule": {
|
|
3122
3122
|
"filename": "src/esbuild-types.ts",
|
|
3123
|
-
"line":
|
|
3123
|
+
"line": 116
|
|
3124
3124
|
},
|
|
3125
3125
|
"name": "entryNames",
|
|
3126
3126
|
"optional": true,
|
|
@@ -3137,7 +3137,7 @@
|
|
|
3137
3137
|
"immutable": true,
|
|
3138
3138
|
"locationInModule": {
|
|
3139
3139
|
"filename": "src/esbuild-types.ts",
|
|
3140
|
-
"line":
|
|
3140
|
+
"line": 96
|
|
3141
3141
|
},
|
|
3142
3142
|
"name": "external",
|
|
3143
3143
|
"optional": true,
|
|
@@ -3159,7 +3159,7 @@
|
|
|
3159
3159
|
"immutable": true,
|
|
3160
3160
|
"locationInModule": {
|
|
3161
3161
|
"filename": "src/esbuild-types.ts",
|
|
3162
|
-
"line":
|
|
3162
|
+
"line": 126
|
|
3163
3163
|
},
|
|
3164
3164
|
"name": "footer",
|
|
3165
3165
|
"optional": true,
|
|
@@ -3193,7 +3193,7 @@
|
|
|
3193
3193
|
"abstract": true,
|
|
3194
3194
|
"docs": {
|
|
3195
3195
|
"stability": "stable",
|
|
3196
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
3196
|
+
"summary": "Documentation: https://esbuild.github.io/api/#global-name."
|
|
3197
3197
|
},
|
|
3198
3198
|
"immutable": true,
|
|
3199
3199
|
"locationInModule": {
|
|
@@ -3215,7 +3215,7 @@
|
|
|
3215
3215
|
"immutable": true,
|
|
3216
3216
|
"locationInModule": {
|
|
3217
3217
|
"filename": "src/esbuild-types.ts",
|
|
3218
|
-
"line":
|
|
3218
|
+
"line": 52
|
|
3219
3219
|
},
|
|
3220
3220
|
"name": "ignoreAnnotations",
|
|
3221
3221
|
"optional": true,
|
|
@@ -3232,7 +3232,7 @@
|
|
|
3232
3232
|
"immutable": true,
|
|
3233
3233
|
"locationInModule": {
|
|
3234
3234
|
"filename": "src/esbuild-types.ts",
|
|
3235
|
-
"line":
|
|
3235
|
+
"line": 128
|
|
3236
3236
|
},
|
|
3237
3237
|
"name": "incremental",
|
|
3238
3238
|
"optional": true,
|
|
@@ -3249,7 +3249,7 @@
|
|
|
3249
3249
|
"immutable": true,
|
|
3250
3250
|
"locationInModule": {
|
|
3251
3251
|
"filename": "src/esbuild-types.ts",
|
|
3252
|
-
"line":
|
|
3252
|
+
"line": 122
|
|
3253
3253
|
},
|
|
3254
3254
|
"name": "inject",
|
|
3255
3255
|
"optional": true,
|
|
@@ -3271,7 +3271,7 @@
|
|
|
3271
3271
|
"immutable": true,
|
|
3272
3272
|
"locationInModule": {
|
|
3273
3273
|
"filename": "src/esbuild-types.ts",
|
|
3274
|
-
"line":
|
|
3274
|
+
"line": 55
|
|
3275
3275
|
},
|
|
3276
3276
|
"name": "jsx",
|
|
3277
3277
|
"optional": true,
|
|
@@ -3288,7 +3288,7 @@
|
|
|
3288
3288
|
"immutable": true,
|
|
3289
3289
|
"locationInModule": {
|
|
3290
3290
|
"filename": "src/esbuild-types.ts",
|
|
3291
|
-
"line":
|
|
3291
|
+
"line": 57
|
|
3292
3292
|
},
|
|
3293
3293
|
"name": "jsxFactory",
|
|
3294
3294
|
"optional": true,
|
|
@@ -3305,7 +3305,7 @@
|
|
|
3305
3305
|
"immutable": true,
|
|
3306
3306
|
"locationInModule": {
|
|
3307
3307
|
"filename": "src/esbuild-types.ts",
|
|
3308
|
-
"line":
|
|
3308
|
+
"line": 59
|
|
3309
3309
|
},
|
|
3310
3310
|
"name": "jsxFragment",
|
|
3311
3311
|
"optional": true,
|
|
@@ -3322,7 +3322,7 @@
|
|
|
3322
3322
|
"immutable": true,
|
|
3323
3323
|
"locationInModule": {
|
|
3324
3324
|
"filename": "src/esbuild-types.ts",
|
|
3325
|
-
"line":
|
|
3325
|
+
"line": 66
|
|
3326
3326
|
},
|
|
3327
3327
|
"name": "keepNames",
|
|
3328
3328
|
"optional": true,
|
|
@@ -3356,7 +3356,7 @@
|
|
|
3356
3356
|
"immutable": true,
|
|
3357
3357
|
"locationInModule": {
|
|
3358
3358
|
"filename": "src/esbuild-types.ts",
|
|
3359
|
-
"line":
|
|
3359
|
+
"line": 98
|
|
3360
3360
|
},
|
|
3361
3361
|
"name": "loader",
|
|
3362
3362
|
"optional": true,
|
|
@@ -3378,7 +3378,7 @@
|
|
|
3378
3378
|
"immutable": true,
|
|
3379
3379
|
"locationInModule": {
|
|
3380
3380
|
"filename": "src/esbuild-types.ts",
|
|
3381
|
-
"line":
|
|
3381
|
+
"line": 71
|
|
3382
3382
|
},
|
|
3383
3383
|
"name": "logLevel",
|
|
3384
3384
|
"optional": true,
|
|
@@ -3395,7 +3395,7 @@
|
|
|
3395
3395
|
"immutable": true,
|
|
3396
3396
|
"locationInModule": {
|
|
3397
3397
|
"filename": "src/esbuild-types.ts",
|
|
3398
|
-
"line":
|
|
3398
|
+
"line": 73
|
|
3399
3399
|
},
|
|
3400
3400
|
"name": "logLimit",
|
|
3401
3401
|
"optional": true,
|
|
@@ -3412,7 +3412,7 @@
|
|
|
3412
3412
|
"immutable": true,
|
|
3413
3413
|
"locationInModule": {
|
|
3414
3414
|
"filename": "src/esbuild-types.ts",
|
|
3415
|
-
"line":
|
|
3415
|
+
"line": 75
|
|
3416
3416
|
},
|
|
3417
3417
|
"name": "logOverride",
|
|
3418
3418
|
"optional": true,
|
|
@@ -3429,12 +3429,12 @@
|
|
|
3429
3429
|
"abstract": true,
|
|
3430
3430
|
"docs": {
|
|
3431
3431
|
"stability": "stable",
|
|
3432
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
3432
|
+
"summary": "Documentation: https://esbuild.github.io/api/#main-fields."
|
|
3433
3433
|
},
|
|
3434
3434
|
"immutable": true,
|
|
3435
3435
|
"locationInModule": {
|
|
3436
3436
|
"filename": "src/esbuild-types.ts",
|
|
3437
|
-
"line":
|
|
3437
|
+
"line": 102
|
|
3438
3438
|
},
|
|
3439
3439
|
"name": "mainFields",
|
|
3440
3440
|
"optional": true,
|
|
@@ -3456,7 +3456,7 @@
|
|
|
3456
3456
|
"immutable": true,
|
|
3457
3457
|
"locationInModule": {
|
|
3458
3458
|
"filename": "src/esbuild-types.ts",
|
|
3459
|
-
"line":
|
|
3459
|
+
"line": 36
|
|
3460
3460
|
},
|
|
3461
3461
|
"name": "mangleCache",
|
|
3462
3462
|
"optional": true,
|
|
@@ -3487,7 +3487,7 @@
|
|
|
3487
3487
|
"immutable": true,
|
|
3488
3488
|
"locationInModule": {
|
|
3489
3489
|
"filename": "src/esbuild-types.ts",
|
|
3490
|
-
"line":
|
|
3490
|
+
"line": 30
|
|
3491
3491
|
},
|
|
3492
3492
|
"name": "mangleProps",
|
|
3493
3493
|
"optional": true,
|
|
@@ -3504,7 +3504,7 @@
|
|
|
3504
3504
|
"immutable": true,
|
|
3505
3505
|
"locationInModule": {
|
|
3506
3506
|
"filename": "src/esbuild-types.ts",
|
|
3507
|
-
"line":
|
|
3507
|
+
"line": 34
|
|
3508
3508
|
},
|
|
3509
3509
|
"name": "mangleQuoted",
|
|
3510
3510
|
"optional": true,
|
|
@@ -3521,7 +3521,7 @@
|
|
|
3521
3521
|
"immutable": true,
|
|
3522
3522
|
"locationInModule": {
|
|
3523
3523
|
"filename": "src/esbuild-types.ts",
|
|
3524
|
-
"line":
|
|
3524
|
+
"line": 88
|
|
3525
3525
|
},
|
|
3526
3526
|
"name": "metafile",
|
|
3527
3527
|
"optional": true,
|
|
@@ -3538,7 +3538,7 @@
|
|
|
3538
3538
|
"immutable": true,
|
|
3539
3539
|
"locationInModule": {
|
|
3540
3540
|
"filename": "src/esbuild-types.ts",
|
|
3541
|
-
"line":
|
|
3541
|
+
"line": 40
|
|
3542
3542
|
},
|
|
3543
3543
|
"name": "minify",
|
|
3544
3544
|
"optional": true,
|
|
@@ -3555,7 +3555,7 @@
|
|
|
3555
3555
|
"immutable": true,
|
|
3556
3556
|
"locationInModule": {
|
|
3557
3557
|
"filename": "src/esbuild-types.ts",
|
|
3558
|
-
"line":
|
|
3558
|
+
"line": 44
|
|
3559
3559
|
},
|
|
3560
3560
|
"name": "minifyIdentifiers",
|
|
3561
3561
|
"optional": true,
|
|
@@ -3572,7 +3572,7 @@
|
|
|
3572
3572
|
"immutable": true,
|
|
3573
3573
|
"locationInModule": {
|
|
3574
3574
|
"filename": "src/esbuild-types.ts",
|
|
3575
|
-
"line":
|
|
3575
|
+
"line": 46
|
|
3576
3576
|
},
|
|
3577
3577
|
"name": "minifySyntax",
|
|
3578
3578
|
"optional": true,
|
|
@@ -3589,7 +3589,7 @@
|
|
|
3589
3589
|
"immutable": true,
|
|
3590
3590
|
"locationInModule": {
|
|
3591
3591
|
"filename": "src/esbuild-types.ts",
|
|
3592
|
-
"line":
|
|
3592
|
+
"line": 42
|
|
3593
3593
|
},
|
|
3594
3594
|
"name": "minifyWhitespace",
|
|
3595
3595
|
"optional": true,
|
|
@@ -3606,7 +3606,7 @@
|
|
|
3606
3606
|
"immutable": true,
|
|
3607
3607
|
"locationInModule": {
|
|
3608
3608
|
"filename": "src/esbuild-types.ts",
|
|
3609
|
-
"line":
|
|
3609
|
+
"line": 132
|
|
3610
3610
|
},
|
|
3611
3611
|
"name": "nodePaths",
|
|
3612
3612
|
"optional": true,
|
|
@@ -3628,7 +3628,7 @@
|
|
|
3628
3628
|
"immutable": true,
|
|
3629
3629
|
"locationInModule": {
|
|
3630
3630
|
"filename": "src/esbuild-types.ts",
|
|
3631
|
-
"line":
|
|
3631
|
+
"line": 92
|
|
3632
3632
|
},
|
|
3633
3633
|
"name": "outbase",
|
|
3634
3634
|
"optional": true,
|
|
@@ -3645,7 +3645,7 @@
|
|
|
3645
3645
|
"immutable": true,
|
|
3646
3646
|
"locationInModule": {
|
|
3647
3647
|
"filename": "src/esbuild-types.ts",
|
|
3648
|
-
"line":
|
|
3648
|
+
"line": 90
|
|
3649
3649
|
},
|
|
3650
3650
|
"name": "outdir",
|
|
3651
3651
|
"optional": true,
|
|
@@ -3662,7 +3662,7 @@
|
|
|
3662
3662
|
"immutable": true,
|
|
3663
3663
|
"locationInModule": {
|
|
3664
3664
|
"filename": "src/esbuild-types.ts",
|
|
3665
|
-
"line":
|
|
3665
|
+
"line": 112
|
|
3666
3666
|
},
|
|
3667
3667
|
"name": "outExtension",
|
|
3668
3668
|
"optional": true,
|
|
@@ -3684,7 +3684,7 @@
|
|
|
3684
3684
|
"immutable": true,
|
|
3685
3685
|
"locationInModule": {
|
|
3686
3686
|
"filename": "src/esbuild-types.ts",
|
|
3687
|
-
"line":
|
|
3687
|
+
"line": 86
|
|
3688
3688
|
},
|
|
3689
3689
|
"name": "outfile",
|
|
3690
3690
|
"optional": true,
|
|
@@ -3701,7 +3701,7 @@
|
|
|
3701
3701
|
"immutable": true,
|
|
3702
3702
|
"locationInModule": {
|
|
3703
3703
|
"filename": "src/esbuild-types.ts",
|
|
3704
|
-
"line":
|
|
3704
|
+
"line": 94
|
|
3705
3705
|
},
|
|
3706
3706
|
"name": "platform",
|
|
3707
3707
|
"optional": true,
|
|
@@ -3718,7 +3718,7 @@
|
|
|
3718
3718
|
"immutable": true,
|
|
3719
3719
|
"locationInModule": {
|
|
3720
3720
|
"filename": "src/esbuild-types.ts",
|
|
3721
|
-
"line":
|
|
3721
|
+
"line": 84
|
|
3722
3722
|
},
|
|
3723
3723
|
"name": "preserveSymlinks",
|
|
3724
3724
|
"optional": true,
|
|
@@ -3735,7 +3735,7 @@
|
|
|
3735
3735
|
"immutable": true,
|
|
3736
3736
|
"locationInModule": {
|
|
3737
3737
|
"filename": "src/esbuild-types.ts",
|
|
3738
|
-
"line":
|
|
3738
|
+
"line": 114
|
|
3739
3739
|
},
|
|
3740
3740
|
"name": "publicPath",
|
|
3741
3741
|
"optional": true,
|
|
@@ -3752,7 +3752,7 @@
|
|
|
3752
3752
|
"immutable": true,
|
|
3753
3753
|
"locationInModule": {
|
|
3754
3754
|
"filename": "src/esbuild-types.ts",
|
|
3755
|
-
"line":
|
|
3755
|
+
"line": 64
|
|
3756
3756
|
},
|
|
3757
3757
|
"name": "pure",
|
|
3758
3758
|
"optional": true,
|
|
@@ -3774,7 +3774,7 @@
|
|
|
3774
3774
|
"immutable": true,
|
|
3775
3775
|
"locationInModule": {
|
|
3776
3776
|
"filename": "src/esbuild-types.ts",
|
|
3777
|
-
"line":
|
|
3777
|
+
"line": 32
|
|
3778
3778
|
},
|
|
3779
3779
|
"name": "reserveProps",
|
|
3780
3780
|
"optional": true,
|
|
@@ -3791,7 +3791,7 @@
|
|
|
3791
3791
|
"immutable": true,
|
|
3792
3792
|
"locationInModule": {
|
|
3793
3793
|
"filename": "src/esbuild-types.ts",
|
|
3794
|
-
"line":
|
|
3794
|
+
"line": 100
|
|
3795
3795
|
},
|
|
3796
3796
|
"name": "resolveExtensions",
|
|
3797
3797
|
"optional": true,
|
|
@@ -3873,7 +3873,7 @@
|
|
|
3873
3873
|
"immutable": true,
|
|
3874
3874
|
"locationInModule": {
|
|
3875
3875
|
"filename": "src/esbuild-types.ts",
|
|
3876
|
-
"line":
|
|
3876
|
+
"line": 82
|
|
3877
3877
|
},
|
|
3878
3878
|
"name": "splitting",
|
|
3879
3879
|
"optional": true,
|
|
@@ -3881,6 +3881,28 @@
|
|
|
3881
3881
|
"primitive": "boolean"
|
|
3882
3882
|
}
|
|
3883
3883
|
},
|
|
3884
|
+
{
|
|
3885
|
+
"abstract": true,
|
|
3886
|
+
"docs": {
|
|
3887
|
+
"stability": "stable",
|
|
3888
|
+
"summary": "Documentation: https://esbuild.github.io/api/#supported."
|
|
3889
|
+
},
|
|
3890
|
+
"immutable": true,
|
|
3891
|
+
"locationInModule": {
|
|
3892
|
+
"filename": "src/esbuild-types.ts",
|
|
3893
|
+
"line": 27
|
|
3894
|
+
},
|
|
3895
|
+
"name": "supported",
|
|
3896
|
+
"optional": true,
|
|
3897
|
+
"type": {
|
|
3898
|
+
"collection": {
|
|
3899
|
+
"elementtype": {
|
|
3900
|
+
"primitive": "boolean"
|
|
3901
|
+
},
|
|
3902
|
+
"kind": "map"
|
|
3903
|
+
}
|
|
3904
|
+
}
|
|
3905
|
+
},
|
|
3884
3906
|
{
|
|
3885
3907
|
"abstract": true,
|
|
3886
3908
|
"docs": {
|
|
@@ -3921,7 +3943,7 @@
|
|
|
3921
3943
|
"immutable": true,
|
|
3922
3944
|
"locationInModule": {
|
|
3923
3945
|
"filename": "src/esbuild-types.ts",
|
|
3924
|
-
"line":
|
|
3946
|
+
"line": 50
|
|
3925
3947
|
},
|
|
3926
3948
|
"name": "treeShaking",
|
|
3927
3949
|
"optional": true,
|
|
@@ -3938,7 +3960,7 @@
|
|
|
3938
3960
|
"immutable": true,
|
|
3939
3961
|
"locationInModule": {
|
|
3940
3962
|
"filename": "src/esbuild-types.ts",
|
|
3941
|
-
"line":
|
|
3963
|
+
"line": 110
|
|
3942
3964
|
},
|
|
3943
3965
|
"name": "tsconfig",
|
|
3944
3966
|
"optional": true,
|
|
@@ -3955,7 +3977,7 @@
|
|
|
3955
3977
|
"immutable": true,
|
|
3956
3978
|
"locationInModule": {
|
|
3957
3979
|
"filename": "src/esbuild-types.ts",
|
|
3958
|
-
"line":
|
|
3980
|
+
"line": 106
|
|
3959
3981
|
},
|
|
3960
3982
|
"name": "write",
|
|
3961
3983
|
"optional": true,
|
|
@@ -3976,7 +3998,7 @@
|
|
|
3976
3998
|
"kind": "interface",
|
|
3977
3999
|
"locationInModule": {
|
|
3978
4000
|
"filename": "src/bundler.ts",
|
|
3979
|
-
"line":
|
|
4001
|
+
"line": 34
|
|
3980
4002
|
},
|
|
3981
4003
|
"name": "BundlerProps",
|
|
3982
4004
|
"properties": [
|
|
@@ -3996,7 +4018,7 @@
|
|
|
3996
4018
|
"immutable": true,
|
|
3997
4019
|
"locationInModule": {
|
|
3998
4020
|
"filename": "src/bundler.ts",
|
|
3999
|
-
"line":
|
|
4021
|
+
"line": 90
|
|
4000
4022
|
},
|
|
4001
4023
|
"name": "buildFn",
|
|
4002
4024
|
"optional": true,
|
|
@@ -4015,7 +4037,7 @@
|
|
|
4015
4037
|
"immutable": true,
|
|
4016
4038
|
"locationInModule": {
|
|
4017
4039
|
"filename": "src/bundler.ts",
|
|
4018
|
-
"line":
|
|
4040
|
+
"line": 53
|
|
4019
4041
|
},
|
|
4020
4042
|
"name": "buildOptions",
|
|
4021
4043
|
"optional": true,
|
|
@@ -4033,7 +4055,7 @@
|
|
|
4033
4055
|
"immutable": true,
|
|
4034
4056
|
"locationInModule": {
|
|
4035
4057
|
"filename": "src/bundler.ts",
|
|
4036
|
-
"line":
|
|
4058
|
+
"line": 76
|
|
4037
4059
|
},
|
|
4038
4060
|
"name": "copyDir",
|
|
4039
4061
|
"optional": true,
|
|
@@ -4076,6 +4098,24 @@
|
|
|
4076
4098
|
]
|
|
4077
4099
|
}
|
|
4078
4100
|
}
|
|
4101
|
+
},
|
|
4102
|
+
{
|
|
4103
|
+
"abstract": true,
|
|
4104
|
+
"docs": {
|
|
4105
|
+
"remarks": "This is the same as setting the ESBUILD_BINARY_PATH environment variable.",
|
|
4106
|
+
"stability": "experimental",
|
|
4107
|
+
"summary": "Path to the binary used by esbuild."
|
|
4108
|
+
},
|
|
4109
|
+
"immutable": true,
|
|
4110
|
+
"locationInModule": {
|
|
4111
|
+
"filename": "src/bundler.ts",
|
|
4112
|
+
"line": 99
|
|
4113
|
+
},
|
|
4114
|
+
"name": "esbuildBinaryPath",
|
|
4115
|
+
"optional": true,
|
|
4116
|
+
"type": {
|
|
4117
|
+
"primitive": "string"
|
|
4118
|
+
}
|
|
4079
4119
|
}
|
|
4080
4120
|
],
|
|
4081
4121
|
"symbolId": "src/bundler:BundlerProps"
|
|
@@ -4084,34 +4124,119 @@
|
|
|
4084
4124
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4085
4125
|
"datatype": true,
|
|
4086
4126
|
"docs": {
|
|
4087
|
-
"stability": "stable"
|
|
4127
|
+
"stability": "stable",
|
|
4128
|
+
"summary": "Result of binding `Code` into a `Function`."
|
|
4088
4129
|
},
|
|
4089
4130
|
"fqn": "@mrgrain/cdk-esbuild.CodeConfig",
|
|
4090
4131
|
"kind": "interface",
|
|
4091
4132
|
"locationInModule": {
|
|
4092
|
-
"filename": "
|
|
4093
|
-
"line":
|
|
4133
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4134
|
+
"line": 94
|
|
4094
4135
|
},
|
|
4095
4136
|
"name": "CodeConfig",
|
|
4096
4137
|
"properties": [
|
|
4097
4138
|
{
|
|
4098
4139
|
"abstract": true,
|
|
4099
4140
|
"docs": {
|
|
4141
|
+
"default": "- code is not an ECR container image",
|
|
4100
4142
|
"stability": "stable",
|
|
4101
|
-
"summary": "
|
|
4143
|
+
"summary": "Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`)."
|
|
4102
4144
|
},
|
|
4103
4145
|
"immutable": true,
|
|
4104
4146
|
"locationInModule": {
|
|
4105
|
-
"filename": "
|
|
4106
|
-
"line":
|
|
4147
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4148
|
+
"line": 115
|
|
4149
|
+
},
|
|
4150
|
+
"name": "image",
|
|
4151
|
+
"optional": true,
|
|
4152
|
+
"type": {
|
|
4153
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeImageConfig"
|
|
4154
|
+
}
|
|
4155
|
+
},
|
|
4156
|
+
{
|
|
4157
|
+
"abstract": true,
|
|
4158
|
+
"docs": {
|
|
4159
|
+
"default": "- code is not inline code",
|
|
4160
|
+
"stability": "stable",
|
|
4161
|
+
"summary": "Inline code (mutually exclusive with `s3Location` and `image`)."
|
|
4162
|
+
},
|
|
4163
|
+
"immutable": true,
|
|
4164
|
+
"locationInModule": {
|
|
4165
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4166
|
+
"line": 108
|
|
4167
|
+
},
|
|
4168
|
+
"name": "inlineCode",
|
|
4169
|
+
"optional": true,
|
|
4170
|
+
"type": {
|
|
4171
|
+
"primitive": "string"
|
|
4172
|
+
}
|
|
4173
|
+
},
|
|
4174
|
+
{
|
|
4175
|
+
"abstract": true,
|
|
4176
|
+
"docs": {
|
|
4177
|
+
"default": "- code is not an s3 location",
|
|
4178
|
+
"stability": "stable",
|
|
4179
|
+
"summary": "The location of the code in S3 (mutually exclusive with `inlineCode` and `image`)."
|
|
4180
|
+
},
|
|
4181
|
+
"immutable": true,
|
|
4182
|
+
"locationInModule": {
|
|
4183
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4184
|
+
"line": 101
|
|
4107
4185
|
},
|
|
4108
4186
|
"name": "s3Location",
|
|
4187
|
+
"optional": true,
|
|
4109
4188
|
"type": {
|
|
4110
4189
|
"fqn": "aws-cdk-lib.aws_s3.Location"
|
|
4111
4190
|
}
|
|
4112
4191
|
}
|
|
4113
4192
|
],
|
|
4114
|
-
"symbolId": "
|
|
4193
|
+
"symbolId": "aws-lambda/lib/code:CodeConfig"
|
|
4194
|
+
},
|
|
4195
|
+
"@mrgrain/cdk-esbuild.EsbuildAsset": {
|
|
4196
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
4197
|
+
"base": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
4198
|
+
"docs": {
|
|
4199
|
+
"remarks": "You should always use `TypeScriptAsset` or `JavaScriptAsset`.",
|
|
4200
|
+
"stability": "experimental",
|
|
4201
|
+
"summary": "Represents a generic esbuild asset."
|
|
4202
|
+
},
|
|
4203
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
4204
|
+
"initializer": {
|
|
4205
|
+
"docs": {
|
|
4206
|
+
"stability": "stable"
|
|
4207
|
+
},
|
|
4208
|
+
"locationInModule": {
|
|
4209
|
+
"filename": "src/asset.ts",
|
|
4210
|
+
"line": 57
|
|
4211
|
+
},
|
|
4212
|
+
"parameters": [
|
|
4213
|
+
{
|
|
4214
|
+
"name": "scope",
|
|
4215
|
+
"type": {
|
|
4216
|
+
"fqn": "constructs.Construct"
|
|
4217
|
+
}
|
|
4218
|
+
},
|
|
4219
|
+
{
|
|
4220
|
+
"name": "id",
|
|
4221
|
+
"type": {
|
|
4222
|
+
"primitive": "string"
|
|
4223
|
+
}
|
|
4224
|
+
},
|
|
4225
|
+
{
|
|
4226
|
+
"name": "props",
|
|
4227
|
+
"type": {
|
|
4228
|
+
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
4229
|
+
}
|
|
4230
|
+
}
|
|
4231
|
+
]
|
|
4232
|
+
},
|
|
4233
|
+
"kind": "class",
|
|
4234
|
+
"locationInModule": {
|
|
4235
|
+
"filename": "src/asset.ts",
|
|
4236
|
+
"line": 53
|
|
4237
|
+
},
|
|
4238
|
+
"name": "EsbuildAsset",
|
|
4239
|
+
"symbolId": "src/asset:EsbuildAsset"
|
|
4115
4240
|
},
|
|
4116
4241
|
"@mrgrain/cdk-esbuild.EsbuildBundler": {
|
|
4117
4242
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
@@ -4127,14 +4252,14 @@
|
|
|
4127
4252
|
},
|
|
4128
4253
|
"locationInModule": {
|
|
4129
4254
|
"filename": "src/bundler.ts",
|
|
4130
|
-
"line":
|
|
4255
|
+
"line": 126
|
|
4131
4256
|
},
|
|
4132
4257
|
"parameters": [
|
|
4133
4258
|
{
|
|
4134
4259
|
"docs": {
|
|
4135
|
-
"remarks": "
|
|
4260
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4136
4261
|
"stability": "experimental",
|
|
4137
|
-
"summary": "A
|
|
4262
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4138
4263
|
},
|
|
4139
4264
|
"name": "entryPoints",
|
|
4140
4265
|
"type": {
|
|
@@ -4178,20 +4303,20 @@
|
|
|
4178
4303
|
"kind": "class",
|
|
4179
4304
|
"locationInModule": {
|
|
4180
4305
|
"filename": "src/bundler.ts",
|
|
4181
|
-
"line":
|
|
4306
|
+
"line": 108
|
|
4182
4307
|
},
|
|
4183
4308
|
"name": "EsbuildBundler",
|
|
4184
4309
|
"properties": [
|
|
4185
4310
|
{
|
|
4186
4311
|
"docs": {
|
|
4187
|
-
"remarks": "
|
|
4312
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4188
4313
|
"stability": "experimental",
|
|
4189
|
-
"summary": "A
|
|
4314
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4190
4315
|
},
|
|
4191
4316
|
"immutable": true,
|
|
4192
4317
|
"locationInModule": {
|
|
4193
4318
|
"filename": "src/bundler.ts",
|
|
4194
|
-
"line":
|
|
4319
|
+
"line": 143
|
|
4195
4320
|
},
|
|
4196
4321
|
"name": "entryPoints",
|
|
4197
4322
|
"type": {
|
|
@@ -4228,7 +4353,7 @@
|
|
|
4228
4353
|
"immutable": true,
|
|
4229
4354
|
"locationInModule": {
|
|
4230
4355
|
"filename": "src/bundler.ts",
|
|
4231
|
-
"line":
|
|
4356
|
+
"line": 121
|
|
4232
4357
|
},
|
|
4233
4358
|
"name": "image",
|
|
4234
4359
|
"type": {
|
|
@@ -4243,7 +4368,7 @@
|
|
|
4243
4368
|
"immutable": true,
|
|
4244
4369
|
"locationInModule": {
|
|
4245
4370
|
"filename": "src/bundler.ts",
|
|
4246
|
-
"line":
|
|
4371
|
+
"line": 114
|
|
4247
4372
|
},
|
|
4248
4373
|
"name": "local",
|
|
4249
4374
|
"type": {
|
|
@@ -4258,7 +4383,7 @@
|
|
|
4258
4383
|
"immutable": true,
|
|
4259
4384
|
"locationInModule": {
|
|
4260
4385
|
"filename": "src/bundler.ts",
|
|
4261
|
-
"line":
|
|
4386
|
+
"line": 150
|
|
4262
4387
|
},
|
|
4263
4388
|
"name": "props",
|
|
4264
4389
|
"type": {
|
|
@@ -4268,50 +4393,72 @@
|
|
|
4268
4393
|
],
|
|
4269
4394
|
"symbolId": "src/bundler:EsbuildBundler"
|
|
4270
4395
|
},
|
|
4271
|
-
"@mrgrain/cdk-esbuild.
|
|
4396
|
+
"@mrgrain/cdk-esbuild.EsbuildCode": {
|
|
4272
4397
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4273
|
-
"base": "aws-cdk-lib.aws_lambda.
|
|
4398
|
+
"base": "aws-cdk-lib.aws_lambda.Code",
|
|
4274
4399
|
"docs": {
|
|
4400
|
+
"remarks": "You should always use `TypeScriptCode` or `JavaScriptCode`.",
|
|
4275
4401
|
"stability": "experimental",
|
|
4276
|
-
"summary": "
|
|
4402
|
+
"summary": "Represents a generic esbuild code bundle."
|
|
4277
4403
|
},
|
|
4278
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4404
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4279
4405
|
"initializer": {
|
|
4280
4406
|
"docs": {
|
|
4281
4407
|
"stability": "experimental"
|
|
4282
4408
|
},
|
|
4283
4409
|
"locationInModule": {
|
|
4284
|
-
"filename": "src/
|
|
4285
|
-
"line":
|
|
4410
|
+
"filename": "src/code.ts",
|
|
4411
|
+
"line": 51
|
|
4286
4412
|
},
|
|
4287
4413
|
"parameters": [
|
|
4288
4414
|
{
|
|
4289
4415
|
"docs": {
|
|
4290
|
-
"
|
|
4291
|
-
"
|
|
4416
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4417
|
+
"stability": "stable",
|
|
4418
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4292
4419
|
},
|
|
4293
|
-
"name": "
|
|
4420
|
+
"name": "entryPoints",
|
|
4294
4421
|
"type": {
|
|
4295
|
-
"
|
|
4422
|
+
"union": {
|
|
4423
|
+
"types": [
|
|
4424
|
+
{
|
|
4425
|
+
"primitive": "string"
|
|
4426
|
+
},
|
|
4427
|
+
{
|
|
4428
|
+
"collection": {
|
|
4429
|
+
"elementtype": {
|
|
4430
|
+
"primitive": "string"
|
|
4431
|
+
},
|
|
4432
|
+
"kind": "array"
|
|
4433
|
+
}
|
|
4434
|
+
},
|
|
4435
|
+
{
|
|
4436
|
+
"collection": {
|
|
4437
|
+
"elementtype": {
|
|
4438
|
+
"primitive": "string"
|
|
4439
|
+
},
|
|
4440
|
+
"kind": "map"
|
|
4441
|
+
}
|
|
4442
|
+
}
|
|
4443
|
+
]
|
|
4444
|
+
}
|
|
4296
4445
|
}
|
|
4297
4446
|
},
|
|
4298
4447
|
{
|
|
4299
4448
|
"docs": {
|
|
4300
|
-
"remarks": "
|
|
4301
|
-
"
|
|
4302
|
-
"
|
|
4303
|
-
"summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
|
|
4449
|
+
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
4450
|
+
"stability": "stable",
|
|
4451
|
+
"summary": "Props to change the behavior of the bundler."
|
|
4304
4452
|
},
|
|
4305
4453
|
"name": "props",
|
|
4306
|
-
"optional": true,
|
|
4307
4454
|
"type": {
|
|
4308
4455
|
"union": {
|
|
4309
4456
|
"types": [
|
|
4310
4457
|
{
|
|
4311
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4458
|
+
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
4312
4459
|
},
|
|
4313
4460
|
{
|
|
4314
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4461
|
+
"fqn": "@mrgrain/cdk-esbuild.TypeScriptCodeProps"
|
|
4315
4462
|
}
|
|
4316
4463
|
]
|
|
4317
4464
|
}
|
|
@@ -4321,14 +4468,235 @@
|
|
|
4321
4468
|
},
|
|
4322
4469
|
"kind": "class",
|
|
4323
4470
|
"locationInModule": {
|
|
4324
|
-
"filename": "src/
|
|
4325
|
-
"line":
|
|
4471
|
+
"filename": "src/code.ts",
|
|
4472
|
+
"line": 29
|
|
4326
4473
|
},
|
|
4327
|
-
"
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4474
|
+
"methods": [
|
|
4475
|
+
{
|
|
4476
|
+
"docs": {
|
|
4477
|
+
"stability": "experimental",
|
|
4478
|
+
"summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
|
|
4479
|
+
},
|
|
4480
|
+
"locationInModule": {
|
|
4481
|
+
"filename": "src/code.ts",
|
|
4482
|
+
"line": 101
|
|
4483
|
+
},
|
|
4484
|
+
"name": "bind",
|
|
4485
|
+
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
4486
|
+
"parameters": [
|
|
4487
|
+
{
|
|
4488
|
+
"name": "scope",
|
|
4489
|
+
"type": {
|
|
4490
|
+
"fqn": "constructs.Construct"
|
|
4491
|
+
}
|
|
4492
|
+
}
|
|
4493
|
+
],
|
|
4494
|
+
"returns": {
|
|
4495
|
+
"type": {
|
|
4496
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
},
|
|
4500
|
+
{
|
|
4501
|
+
"docs": {
|
|
4502
|
+
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
4503
|
+
"stability": "stable",
|
|
4504
|
+
"summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
|
|
4505
|
+
},
|
|
4506
|
+
"locationInModule": {
|
|
4507
|
+
"filename": "src/code.ts",
|
|
4508
|
+
"line": 129
|
|
4509
|
+
},
|
|
4510
|
+
"name": "bindToResource",
|
|
4511
|
+
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
4512
|
+
"parameters": [
|
|
4513
|
+
{
|
|
4514
|
+
"name": "resource",
|
|
4515
|
+
"type": {
|
|
4516
|
+
"fqn": "aws-cdk-lib.CfnResource"
|
|
4517
|
+
}
|
|
4518
|
+
},
|
|
4519
|
+
{
|
|
4520
|
+
"name": "options",
|
|
4521
|
+
"optional": true,
|
|
4522
|
+
"type": {
|
|
4523
|
+
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
4524
|
+
}
|
|
4525
|
+
}
|
|
4526
|
+
]
|
|
4527
|
+
},
|
|
4528
|
+
{
|
|
4529
|
+
"docs": {
|
|
4530
|
+
"stability": "experimental"
|
|
4531
|
+
},
|
|
4532
|
+
"locationInModule": {
|
|
4533
|
+
"filename": "src/code.ts",
|
|
4534
|
+
"line": 32
|
|
4535
|
+
},
|
|
4536
|
+
"name": "getAsset",
|
|
4537
|
+
"parameters": [
|
|
4538
|
+
{
|
|
4539
|
+
"name": "scope",
|
|
4540
|
+
"type": {
|
|
4541
|
+
"fqn": "constructs.Construct"
|
|
4542
|
+
}
|
|
4543
|
+
}
|
|
4544
|
+
],
|
|
4545
|
+
"protected": true,
|
|
4546
|
+
"returns": {
|
|
4547
|
+
"type": {
|
|
4548
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
}
|
|
4552
|
+
],
|
|
4553
|
+
"name": "EsbuildCode",
|
|
4554
|
+
"properties": [
|
|
4555
|
+
{
|
|
4556
|
+
"docs": {
|
|
4557
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4558
|
+
"stability": "stable",
|
|
4559
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4560
|
+
},
|
|
4561
|
+
"immutable": true,
|
|
4562
|
+
"locationInModule": {
|
|
4563
|
+
"filename": "src/code.ts",
|
|
4564
|
+
"line": 68
|
|
4565
|
+
},
|
|
4566
|
+
"name": "entryPoints",
|
|
4567
|
+
"type": {
|
|
4568
|
+
"union": {
|
|
4569
|
+
"types": [
|
|
4570
|
+
{
|
|
4571
|
+
"primitive": "string"
|
|
4572
|
+
},
|
|
4573
|
+
{
|
|
4574
|
+
"collection": {
|
|
4575
|
+
"elementtype": {
|
|
4576
|
+
"primitive": "string"
|
|
4577
|
+
},
|
|
4578
|
+
"kind": "array"
|
|
4579
|
+
}
|
|
4580
|
+
},
|
|
4581
|
+
{
|
|
4582
|
+
"collection": {
|
|
4583
|
+
"elementtype": {
|
|
4584
|
+
"primitive": "string"
|
|
4585
|
+
},
|
|
4586
|
+
"kind": "map"
|
|
4587
|
+
}
|
|
4588
|
+
}
|
|
4589
|
+
]
|
|
4590
|
+
}
|
|
4591
|
+
}
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
"docs": {
|
|
4595
|
+
"stability": "experimental"
|
|
4596
|
+
},
|
|
4597
|
+
"locationInModule": {
|
|
4598
|
+
"filename": "src/code.ts",
|
|
4599
|
+
"line": 42
|
|
4600
|
+
},
|
|
4601
|
+
"name": "asset",
|
|
4602
|
+
"protected": true,
|
|
4603
|
+
"type": {
|
|
4604
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4605
|
+
}
|
|
4606
|
+
},
|
|
4607
|
+
{
|
|
4608
|
+
"docs": {
|
|
4609
|
+
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
4610
|
+
"stability": "deprecated",
|
|
4611
|
+
"summary": "Determines whether this Code is inline code or not."
|
|
4612
|
+
},
|
|
4613
|
+
"locationInModule": {
|
|
4614
|
+
"filename": "src/code.ts",
|
|
4615
|
+
"line": 49
|
|
4616
|
+
},
|
|
4617
|
+
"name": "isInline",
|
|
4618
|
+
"type": {
|
|
4619
|
+
"primitive": "boolean"
|
|
4620
|
+
}
|
|
4621
|
+
},
|
|
4622
|
+
{
|
|
4623
|
+
"docs": {
|
|
4624
|
+
"stability": "experimental"
|
|
4625
|
+
},
|
|
4626
|
+
"locationInModule": {
|
|
4627
|
+
"filename": "src/code.ts",
|
|
4628
|
+
"line": 40
|
|
4629
|
+
},
|
|
4630
|
+
"name": "props",
|
|
4631
|
+
"protected": true,
|
|
4632
|
+
"type": {
|
|
4633
|
+
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
4634
|
+
}
|
|
4635
|
+
}
|
|
4636
|
+
],
|
|
4637
|
+
"symbolId": "src/code:EsbuildCode"
|
|
4638
|
+
},
|
|
4639
|
+
"@mrgrain/cdk-esbuild.InlineJavaScriptCode": {
|
|
4640
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
4641
|
+
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4642
|
+
"docs": {
|
|
4643
|
+
"stability": "experimental",
|
|
4644
|
+
"summary": "An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation."
|
|
4645
|
+
},
|
|
4646
|
+
"fqn": "@mrgrain/cdk-esbuild.InlineJavaScriptCode",
|
|
4647
|
+
"initializer": {
|
|
4648
|
+
"docs": {
|
|
4649
|
+
"stability": "experimental"
|
|
4650
|
+
},
|
|
4651
|
+
"locationInModule": {
|
|
4652
|
+
"filename": "src/inline-code.ts",
|
|
4653
|
+
"line": 84
|
|
4654
|
+
},
|
|
4655
|
+
"parameters": [
|
|
4656
|
+
{
|
|
4657
|
+
"docs": {
|
|
4658
|
+
"stability": "experimental",
|
|
4659
|
+
"summary": "The inline code to be transformed."
|
|
4660
|
+
},
|
|
4661
|
+
"name": "code",
|
|
4662
|
+
"type": {
|
|
4663
|
+
"primitive": "string"
|
|
4664
|
+
}
|
|
4665
|
+
},
|
|
4666
|
+
{
|
|
4667
|
+
"docs": {
|
|
4668
|
+
"remarks": "Props to change the behaviour of the transformer.\n\nDefault values for `props.transformOptions`:\n- `loader='js'`",
|
|
4669
|
+
"see": "https://esbuild.github.io/api/#transform-api",
|
|
4670
|
+
"stability": "experimental",
|
|
4671
|
+
"summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
|
|
4672
|
+
},
|
|
4673
|
+
"name": "props",
|
|
4674
|
+
"optional": true,
|
|
4675
|
+
"type": {
|
|
4676
|
+
"union": {
|
|
4677
|
+
"types": [
|
|
4678
|
+
{
|
|
4679
|
+
"fqn": "@mrgrain/cdk-esbuild.TransformOptions"
|
|
4680
|
+
},
|
|
4681
|
+
{
|
|
4682
|
+
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
4683
|
+
}
|
|
4684
|
+
]
|
|
4685
|
+
}
|
|
4686
|
+
}
|
|
4687
|
+
}
|
|
4688
|
+
]
|
|
4689
|
+
},
|
|
4690
|
+
"kind": "class",
|
|
4691
|
+
"locationInModule": {
|
|
4692
|
+
"filename": "src/inline-code.ts",
|
|
4693
|
+
"line": 83
|
|
4694
|
+
},
|
|
4695
|
+
"name": "InlineJavaScriptCode",
|
|
4696
|
+
"symbolId": "src/inline-code:InlineJavaScriptCode"
|
|
4697
|
+
},
|
|
4698
|
+
"@mrgrain/cdk-esbuild.InlineJsxCode": {
|
|
4699
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
4332
4700
|
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4333
4701
|
"docs": {
|
|
4334
4702
|
"stability": "experimental",
|
|
@@ -4506,6 +4874,7 @@
|
|
|
4506
4874
|
},
|
|
4507
4875
|
"@mrgrain/cdk-esbuild.JavaScriptAsset": {
|
|
4508
4876
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4877
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
4509
4878
|
"docs": {
|
|
4510
4879
|
"remarks": "The asset can be used by other constructs.",
|
|
4511
4880
|
"stability": "stable",
|
|
@@ -4518,7 +4887,7 @@
|
|
|
4518
4887
|
},
|
|
4519
4888
|
"locationInModule": {
|
|
4520
4889
|
"filename": "src/asset.ts",
|
|
4521
|
-
"line":
|
|
4890
|
+
"line": 57
|
|
4522
4891
|
},
|
|
4523
4892
|
"parameters": [
|
|
4524
4893
|
{
|
|
@@ -4544,13 +4913,14 @@
|
|
|
4544
4913
|
"kind": "class",
|
|
4545
4914
|
"locationInModule": {
|
|
4546
4915
|
"filename": "src/asset.ts",
|
|
4547
|
-
"line":
|
|
4916
|
+
"line": 129
|
|
4548
4917
|
},
|
|
4549
4918
|
"name": "JavaScriptAsset",
|
|
4550
4919
|
"symbolId": "src/asset:JavaScriptAsset"
|
|
4551
4920
|
},
|
|
4552
4921
|
"@mrgrain/cdk-esbuild.JavaScriptCode": {
|
|
4553
4922
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4923
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4554
4924
|
"docs": {
|
|
4555
4925
|
"stability": "stable",
|
|
4556
4926
|
"summary": "Represents the deployed JavaScript Code."
|
|
@@ -4562,14 +4932,14 @@
|
|
|
4562
4932
|
},
|
|
4563
4933
|
"locationInModule": {
|
|
4564
4934
|
"filename": "src/code.ts",
|
|
4565
|
-
"line":
|
|
4935
|
+
"line": 153
|
|
4566
4936
|
},
|
|
4567
4937
|
"parameters": [
|
|
4568
4938
|
{
|
|
4569
4939
|
"docs": {
|
|
4570
|
-
"remarks": "
|
|
4940
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4571
4941
|
"stability": "stable",
|
|
4572
|
-
"summary": "A
|
|
4942
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4573
4943
|
},
|
|
4574
4944
|
"name": "entryPoints",
|
|
4575
4945
|
"type": {
|
|
@@ -4615,7 +4985,7 @@
|
|
|
4615
4985
|
"kind": "class",
|
|
4616
4986
|
"locationInModule": {
|
|
4617
4987
|
"filename": "src/code.ts",
|
|
4618
|
-
"line":
|
|
4988
|
+
"line": 144
|
|
4619
4989
|
},
|
|
4620
4990
|
"methods": [
|
|
4621
4991
|
{
|
|
@@ -4624,9 +4994,10 @@
|
|
|
4624
4994
|
},
|
|
4625
4995
|
"locationInModule": {
|
|
4626
4996
|
"filename": "src/code.ts",
|
|
4627
|
-
"line":
|
|
4997
|
+
"line": 145
|
|
4628
4998
|
},
|
|
4629
|
-
"name": "
|
|
4999
|
+
"name": "getAsset",
|
|
5000
|
+
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4630
5001
|
"parameters": [
|
|
4631
5002
|
{
|
|
4632
5003
|
"name": "scope",
|
|
@@ -4635,110 +5006,15 @@
|
|
|
4635
5006
|
}
|
|
4636
5007
|
}
|
|
4637
5008
|
],
|
|
5009
|
+
"protected": true,
|
|
4638
5010
|
"returns": {
|
|
4639
5011
|
"type": {
|
|
4640
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
5012
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4641
5013
|
}
|
|
4642
5014
|
}
|
|
4643
|
-
},
|
|
4644
|
-
{
|
|
4645
|
-
"docs": {
|
|
4646
|
-
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
4647
|
-
"stability": "stable",
|
|
4648
|
-
"summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
|
|
4649
|
-
},
|
|
4650
|
-
"locationInModule": {
|
|
4651
|
-
"filename": "src/code.ts",
|
|
4652
|
-
"line": 106
|
|
4653
|
-
},
|
|
4654
|
-
"name": "bindToResource",
|
|
4655
|
-
"parameters": [
|
|
4656
|
-
{
|
|
4657
|
-
"name": "resource",
|
|
4658
|
-
"type": {
|
|
4659
|
-
"fqn": "aws-cdk-lib.CfnResource"
|
|
4660
|
-
}
|
|
4661
|
-
},
|
|
4662
|
-
{
|
|
4663
|
-
"name": "options",
|
|
4664
|
-
"optional": true,
|
|
4665
|
-
"type": {
|
|
4666
|
-
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
4667
|
-
}
|
|
4668
|
-
}
|
|
4669
|
-
]
|
|
4670
5015
|
}
|
|
4671
5016
|
],
|
|
4672
5017
|
"name": "JavaScriptCode",
|
|
4673
|
-
"properties": [
|
|
4674
|
-
{
|
|
4675
|
-
"docs": {
|
|
4676
|
-
"stability": "stable"
|
|
4677
|
-
},
|
|
4678
|
-
"immutable": true,
|
|
4679
|
-
"locationInModule": {
|
|
4680
|
-
"filename": "src/code.ts",
|
|
4681
|
-
"line": 122
|
|
4682
|
-
},
|
|
4683
|
-
"name": "assetClass",
|
|
4684
|
-
"protected": true,
|
|
4685
|
-
"type": {
|
|
4686
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
4687
|
-
}
|
|
4688
|
-
},
|
|
4689
|
-
{
|
|
4690
|
-
"docs": {
|
|
4691
|
-
"stability": "stable"
|
|
4692
|
-
},
|
|
4693
|
-
"locationInModule": {
|
|
4694
|
-
"filename": "src/code.ts",
|
|
4695
|
-
"line": 42
|
|
4696
|
-
},
|
|
4697
|
-
"name": "asset",
|
|
4698
|
-
"protected": true,
|
|
4699
|
-
"type": {
|
|
4700
|
-
"union": {
|
|
4701
|
-
"types": [
|
|
4702
|
-
{
|
|
4703
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
4704
|
-
},
|
|
4705
|
-
{
|
|
4706
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
4707
|
-
}
|
|
4708
|
-
]
|
|
4709
|
-
}
|
|
4710
|
-
}
|
|
4711
|
-
},
|
|
4712
|
-
{
|
|
4713
|
-
"docs": {
|
|
4714
|
-
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
4715
|
-
"stability": "deprecated",
|
|
4716
|
-
"summary": "Determines whether this Code is inline code or not."
|
|
4717
|
-
},
|
|
4718
|
-
"locationInModule": {
|
|
4719
|
-
"filename": "src/code.ts",
|
|
4720
|
-
"line": 49
|
|
4721
|
-
},
|
|
4722
|
-
"name": "isInline",
|
|
4723
|
-
"type": {
|
|
4724
|
-
"primitive": "boolean"
|
|
4725
|
-
}
|
|
4726
|
-
},
|
|
4727
|
-
{
|
|
4728
|
-
"docs": {
|
|
4729
|
-
"stability": "stable"
|
|
4730
|
-
},
|
|
4731
|
-
"locationInModule": {
|
|
4732
|
-
"filename": "src/code.ts",
|
|
4733
|
-
"line": 40
|
|
4734
|
-
},
|
|
4735
|
-
"name": "props",
|
|
4736
|
-
"protected": true,
|
|
4737
|
-
"type": {
|
|
4738
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
4739
|
-
}
|
|
4740
|
-
}
|
|
4741
|
-
],
|
|
4742
5018
|
"symbolId": "src/code:JavaScriptCode"
|
|
4743
5019
|
},
|
|
4744
5020
|
"@mrgrain/cdk-esbuild.JavaScriptCodeProps": {
|
|
@@ -4754,7 +5030,7 @@
|
|
|
4754
5030
|
"kind": "interface",
|
|
4755
5031
|
"locationInModule": {
|
|
4756
5032
|
"filename": "src/code.ts",
|
|
4757
|
-
"line":
|
|
5033
|
+
"line": 19
|
|
4758
5034
|
},
|
|
4759
5035
|
"name": "JavaScriptCodeProps",
|
|
4760
5036
|
"properties": [
|
|
@@ -4791,10 +5067,15 @@
|
|
|
4791
5067
|
},
|
|
4792
5068
|
"locationInModule": {
|
|
4793
5069
|
"filename": "src/source.ts",
|
|
4794
|
-
"line":
|
|
5070
|
+
"line": 113
|
|
4795
5071
|
},
|
|
4796
5072
|
"parameters": [
|
|
4797
5073
|
{
|
|
5074
|
+
"docs": {
|
|
5075
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
5076
|
+
"stability": "stable",
|
|
5077
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
5078
|
+
},
|
|
4798
5079
|
"name": "entryPoints",
|
|
4799
5080
|
"type": {
|
|
4800
5081
|
"union": {
|
|
@@ -4823,6 +5104,11 @@
|
|
|
4823
5104
|
}
|
|
4824
5105
|
},
|
|
4825
5106
|
{
|
|
5107
|
+
"docs": {
|
|
5108
|
+
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=browser`",
|
|
5109
|
+
"stability": "stable",
|
|
5110
|
+
"summary": "Props to change the behavior of the bundler."
|
|
5111
|
+
},
|
|
4826
5112
|
"name": "props",
|
|
4827
5113
|
"optional": true,
|
|
4828
5114
|
"type": {
|
|
@@ -4837,7 +5123,7 @@
|
|
|
4837
5123
|
"kind": "class",
|
|
4838
5124
|
"locationInModule": {
|
|
4839
5125
|
"filename": "src/source.ts",
|
|
4840
|
-
"line":
|
|
5126
|
+
"line": 107
|
|
4841
5127
|
},
|
|
4842
5128
|
"methods": [
|
|
4843
5129
|
{
|
|
@@ -4847,7 +5133,7 @@
|
|
|
4847
5133
|
},
|
|
4848
5134
|
"locationInModule": {
|
|
4849
5135
|
"filename": "src/source.ts",
|
|
4850
|
-
"line":
|
|
5136
|
+
"line": 73
|
|
4851
5137
|
},
|
|
4852
5138
|
"name": "bind",
|
|
4853
5139
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -4904,7 +5190,7 @@
|
|
|
4904
5190
|
},
|
|
4905
5191
|
"locationInModule": {
|
|
4906
5192
|
"filename": "src/source.ts",
|
|
4907
|
-
"line":
|
|
5193
|
+
"line": 111
|
|
4908
5194
|
},
|
|
4909
5195
|
"name": "assetClass",
|
|
4910
5196
|
"type": {
|
|
@@ -4976,7 +5262,7 @@
|
|
|
4976
5262
|
"kind": "interface",
|
|
4977
5263
|
"locationInModule": {
|
|
4978
5264
|
"filename": "src/esbuild-types.ts",
|
|
4979
|
-
"line":
|
|
5265
|
+
"line": 240
|
|
4980
5266
|
},
|
|
4981
5267
|
"name": "TransformOptions",
|
|
4982
5268
|
"properties": [
|
|
@@ -4988,7 +5274,7 @@
|
|
|
4988
5274
|
"immutable": true,
|
|
4989
5275
|
"locationInModule": {
|
|
4990
5276
|
"filename": "src/esbuild-types.ts",
|
|
4991
|
-
"line":
|
|
5277
|
+
"line": 245
|
|
4992
5278
|
},
|
|
4993
5279
|
"name": "banner",
|
|
4994
5280
|
"optional": true,
|
|
@@ -5005,7 +5291,7 @@
|
|
|
5005
5291
|
"immutable": true,
|
|
5006
5292
|
"locationInModule": {
|
|
5007
5293
|
"filename": "src/esbuild-types.ts",
|
|
5008
|
-
"line":
|
|
5294
|
+
"line": 48
|
|
5009
5295
|
},
|
|
5010
5296
|
"name": "charset",
|
|
5011
5297
|
"optional": true,
|
|
@@ -5022,7 +5308,7 @@
|
|
|
5022
5308
|
"immutable": true,
|
|
5023
5309
|
"locationInModule": {
|
|
5024
5310
|
"filename": "src/esbuild-types.ts",
|
|
5025
|
-
"line":
|
|
5311
|
+
"line": 69
|
|
5026
5312
|
},
|
|
5027
5313
|
"name": "color",
|
|
5028
5314
|
"optional": true,
|
|
@@ -5039,7 +5325,7 @@
|
|
|
5039
5325
|
"immutable": true,
|
|
5040
5326
|
"locationInModule": {
|
|
5041
5327
|
"filename": "src/esbuild-types.ts",
|
|
5042
|
-
"line":
|
|
5328
|
+
"line": 62
|
|
5043
5329
|
},
|
|
5044
5330
|
"name": "define",
|
|
5045
5331
|
"optional": true,
|
|
@@ -5061,7 +5347,7 @@
|
|
|
5061
5347
|
"immutable": true,
|
|
5062
5348
|
"locationInModule": {
|
|
5063
5349
|
"filename": "src/esbuild-types.ts",
|
|
5064
|
-
"line":
|
|
5350
|
+
"line": 38
|
|
5065
5351
|
},
|
|
5066
5352
|
"name": "drop",
|
|
5067
5353
|
"optional": true,
|
|
@@ -5082,7 +5368,7 @@
|
|
|
5082
5368
|
"immutable": true,
|
|
5083
5369
|
"locationInModule": {
|
|
5084
5370
|
"filename": "src/esbuild-types.ts",
|
|
5085
|
-
"line":
|
|
5371
|
+
"line": 246
|
|
5086
5372
|
},
|
|
5087
5373
|
"name": "footer",
|
|
5088
5374
|
"optional": true,
|
|
@@ -5111,7 +5397,7 @@
|
|
|
5111
5397
|
"abstract": true,
|
|
5112
5398
|
"docs": {
|
|
5113
5399
|
"stability": "stable",
|
|
5114
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
5400
|
+
"summary": "Documentation: https://esbuild.github.io/api/#global-name."
|
|
5115
5401
|
},
|
|
5116
5402
|
"immutable": true,
|
|
5117
5403
|
"locationInModule": {
|
|
@@ -5133,7 +5419,7 @@
|
|
|
5133
5419
|
"immutable": true,
|
|
5134
5420
|
"locationInModule": {
|
|
5135
5421
|
"filename": "src/esbuild-types.ts",
|
|
5136
|
-
"line":
|
|
5422
|
+
"line": 52
|
|
5137
5423
|
},
|
|
5138
5424
|
"name": "ignoreAnnotations",
|
|
5139
5425
|
"optional": true,
|
|
@@ -5150,7 +5436,7 @@
|
|
|
5150
5436
|
"immutable": true,
|
|
5151
5437
|
"locationInModule": {
|
|
5152
5438
|
"filename": "src/esbuild-types.ts",
|
|
5153
|
-
"line":
|
|
5439
|
+
"line": 55
|
|
5154
5440
|
},
|
|
5155
5441
|
"name": "jsx",
|
|
5156
5442
|
"optional": true,
|
|
@@ -5167,7 +5453,7 @@
|
|
|
5167
5453
|
"immutable": true,
|
|
5168
5454
|
"locationInModule": {
|
|
5169
5455
|
"filename": "src/esbuild-types.ts",
|
|
5170
|
-
"line":
|
|
5456
|
+
"line": 57
|
|
5171
5457
|
},
|
|
5172
5458
|
"name": "jsxFactory",
|
|
5173
5459
|
"optional": true,
|
|
@@ -5184,7 +5470,7 @@
|
|
|
5184
5470
|
"immutable": true,
|
|
5185
5471
|
"locationInModule": {
|
|
5186
5472
|
"filename": "src/esbuild-types.ts",
|
|
5187
|
-
"line":
|
|
5473
|
+
"line": 59
|
|
5188
5474
|
},
|
|
5189
5475
|
"name": "jsxFragment",
|
|
5190
5476
|
"optional": true,
|
|
@@ -5201,7 +5487,7 @@
|
|
|
5201
5487
|
"immutable": true,
|
|
5202
5488
|
"locationInModule": {
|
|
5203
5489
|
"filename": "src/esbuild-types.ts",
|
|
5204
|
-
"line":
|
|
5490
|
+
"line": 66
|
|
5205
5491
|
},
|
|
5206
5492
|
"name": "keepNames",
|
|
5207
5493
|
"optional": true,
|
|
@@ -5234,7 +5520,7 @@
|
|
|
5234
5520
|
"immutable": true,
|
|
5235
5521
|
"locationInModule": {
|
|
5236
5522
|
"filename": "src/esbuild-types.ts",
|
|
5237
|
-
"line":
|
|
5523
|
+
"line": 244
|
|
5238
5524
|
},
|
|
5239
5525
|
"name": "loader",
|
|
5240
5526
|
"optional": true,
|
|
@@ -5251,7 +5537,7 @@
|
|
|
5251
5537
|
"immutable": true,
|
|
5252
5538
|
"locationInModule": {
|
|
5253
5539
|
"filename": "src/esbuild-types.ts",
|
|
5254
|
-
"line":
|
|
5540
|
+
"line": 71
|
|
5255
5541
|
},
|
|
5256
5542
|
"name": "logLevel",
|
|
5257
5543
|
"optional": true,
|
|
@@ -5268,7 +5554,7 @@
|
|
|
5268
5554
|
"immutable": true,
|
|
5269
5555
|
"locationInModule": {
|
|
5270
5556
|
"filename": "src/esbuild-types.ts",
|
|
5271
|
-
"line":
|
|
5557
|
+
"line": 73
|
|
5272
5558
|
},
|
|
5273
5559
|
"name": "logLimit",
|
|
5274
5560
|
"optional": true,
|
|
@@ -5285,7 +5571,7 @@
|
|
|
5285
5571
|
"immutable": true,
|
|
5286
5572
|
"locationInModule": {
|
|
5287
5573
|
"filename": "src/esbuild-types.ts",
|
|
5288
|
-
"line":
|
|
5574
|
+
"line": 75
|
|
5289
5575
|
},
|
|
5290
5576
|
"name": "logOverride",
|
|
5291
5577
|
"optional": true,
|
|
@@ -5307,7 +5593,7 @@
|
|
|
5307
5593
|
"immutable": true,
|
|
5308
5594
|
"locationInModule": {
|
|
5309
5595
|
"filename": "src/esbuild-types.ts",
|
|
5310
|
-
"line":
|
|
5596
|
+
"line": 36
|
|
5311
5597
|
},
|
|
5312
5598
|
"name": "mangleCache",
|
|
5313
5599
|
"optional": true,
|
|
@@ -5338,7 +5624,7 @@
|
|
|
5338
5624
|
"immutable": true,
|
|
5339
5625
|
"locationInModule": {
|
|
5340
5626
|
"filename": "src/esbuild-types.ts",
|
|
5341
|
-
"line":
|
|
5627
|
+
"line": 30
|
|
5342
5628
|
},
|
|
5343
5629
|
"name": "mangleProps",
|
|
5344
5630
|
"optional": true,
|
|
@@ -5355,7 +5641,7 @@
|
|
|
5355
5641
|
"immutable": true,
|
|
5356
5642
|
"locationInModule": {
|
|
5357
5643
|
"filename": "src/esbuild-types.ts",
|
|
5358
|
-
"line":
|
|
5644
|
+
"line": 34
|
|
5359
5645
|
},
|
|
5360
5646
|
"name": "mangleQuoted",
|
|
5361
5647
|
"optional": true,
|
|
@@ -5372,7 +5658,7 @@
|
|
|
5372
5658
|
"immutable": true,
|
|
5373
5659
|
"locationInModule": {
|
|
5374
5660
|
"filename": "src/esbuild-types.ts",
|
|
5375
|
-
"line":
|
|
5661
|
+
"line": 40
|
|
5376
5662
|
},
|
|
5377
5663
|
"name": "minify",
|
|
5378
5664
|
"optional": true,
|
|
@@ -5389,7 +5675,7 @@
|
|
|
5389
5675
|
"immutable": true,
|
|
5390
5676
|
"locationInModule": {
|
|
5391
5677
|
"filename": "src/esbuild-types.ts",
|
|
5392
|
-
"line":
|
|
5678
|
+
"line": 44
|
|
5393
5679
|
},
|
|
5394
5680
|
"name": "minifyIdentifiers",
|
|
5395
5681
|
"optional": true,
|
|
@@ -5406,7 +5692,7 @@
|
|
|
5406
5692
|
"immutable": true,
|
|
5407
5693
|
"locationInModule": {
|
|
5408
5694
|
"filename": "src/esbuild-types.ts",
|
|
5409
|
-
"line":
|
|
5695
|
+
"line": 46
|
|
5410
5696
|
},
|
|
5411
5697
|
"name": "minifySyntax",
|
|
5412
5698
|
"optional": true,
|
|
@@ -5423,7 +5709,7 @@
|
|
|
5423
5709
|
"immutable": true,
|
|
5424
5710
|
"locationInModule": {
|
|
5425
5711
|
"filename": "src/esbuild-types.ts",
|
|
5426
|
-
"line":
|
|
5712
|
+
"line": 42
|
|
5427
5713
|
},
|
|
5428
5714
|
"name": "minifyWhitespace",
|
|
5429
5715
|
"optional": true,
|
|
@@ -5440,7 +5726,7 @@
|
|
|
5440
5726
|
"immutable": true,
|
|
5441
5727
|
"locationInModule": {
|
|
5442
5728
|
"filename": "src/esbuild-types.ts",
|
|
5443
|
-
"line":
|
|
5729
|
+
"line": 64
|
|
5444
5730
|
},
|
|
5445
5731
|
"name": "pure",
|
|
5446
5732
|
"optional": true,
|
|
@@ -5462,7 +5748,7 @@
|
|
|
5462
5748
|
"immutable": true,
|
|
5463
5749
|
"locationInModule": {
|
|
5464
5750
|
"filename": "src/esbuild-types.ts",
|
|
5465
|
-
"line":
|
|
5751
|
+
"line": 32
|
|
5466
5752
|
},
|
|
5467
5753
|
"name": "reserveProps",
|
|
5468
5754
|
"optional": true,
|
|
@@ -5478,7 +5764,7 @@
|
|
|
5478
5764
|
"immutable": true,
|
|
5479
5765
|
"locationInModule": {
|
|
5480
5766
|
"filename": "src/esbuild-types.ts",
|
|
5481
|
-
"line":
|
|
5767
|
+
"line": 243
|
|
5482
5768
|
},
|
|
5483
5769
|
"name": "sourcefile",
|
|
5484
5770
|
"optional": true,
|
|
@@ -5546,6 +5832,28 @@
|
|
|
5546
5832
|
"primitive": "boolean"
|
|
5547
5833
|
}
|
|
5548
5834
|
},
|
|
5835
|
+
{
|
|
5836
|
+
"abstract": true,
|
|
5837
|
+
"docs": {
|
|
5838
|
+
"stability": "stable",
|
|
5839
|
+
"summary": "Documentation: https://esbuild.github.io/api/#supported."
|
|
5840
|
+
},
|
|
5841
|
+
"immutable": true,
|
|
5842
|
+
"locationInModule": {
|
|
5843
|
+
"filename": "src/esbuild-types.ts",
|
|
5844
|
+
"line": 27
|
|
5845
|
+
},
|
|
5846
|
+
"name": "supported",
|
|
5847
|
+
"optional": true,
|
|
5848
|
+
"type": {
|
|
5849
|
+
"collection": {
|
|
5850
|
+
"elementtype": {
|
|
5851
|
+
"primitive": "boolean"
|
|
5852
|
+
},
|
|
5853
|
+
"kind": "map"
|
|
5854
|
+
}
|
|
5855
|
+
}
|
|
5856
|
+
},
|
|
5549
5857
|
{
|
|
5550
5858
|
"abstract": true,
|
|
5551
5859
|
"docs": {
|
|
@@ -5586,7 +5894,7 @@
|
|
|
5586
5894
|
"immutable": true,
|
|
5587
5895
|
"locationInModule": {
|
|
5588
5896
|
"filename": "src/esbuild-types.ts",
|
|
5589
|
-
"line":
|
|
5897
|
+
"line": 50
|
|
5590
5898
|
},
|
|
5591
5899
|
"name": "treeShaking",
|
|
5592
5900
|
"optional": true,
|
|
@@ -5602,7 +5910,7 @@
|
|
|
5602
5910
|
"immutable": true,
|
|
5603
5911
|
"locationInModule": {
|
|
5604
5912
|
"filename": "src/esbuild-types.ts",
|
|
5605
|
-
"line":
|
|
5913
|
+
"line": 241
|
|
5606
5914
|
},
|
|
5607
5915
|
"name": "tsconfigRaw",
|
|
5608
5916
|
"optional": true,
|
|
@@ -5675,6 +5983,7 @@
|
|
|
5675
5983
|
},
|
|
5676
5984
|
"@mrgrain/cdk-esbuild.TypeScriptAsset": {
|
|
5677
5985
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5986
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
5678
5987
|
"docs": {
|
|
5679
5988
|
"remarks": "The asset can be used by other constructs.",
|
|
5680
5989
|
"stability": "stable",
|
|
@@ -5687,7 +5996,7 @@
|
|
|
5687
5996
|
},
|
|
5688
5997
|
"locationInModule": {
|
|
5689
5998
|
"filename": "src/asset.ts",
|
|
5690
|
-
"line":
|
|
5999
|
+
"line": 57
|
|
5691
6000
|
},
|
|
5692
6001
|
"parameters": [
|
|
5693
6002
|
{
|
|
@@ -5713,13 +6022,14 @@
|
|
|
5713
6022
|
"kind": "class",
|
|
5714
6023
|
"locationInModule": {
|
|
5715
6024
|
"filename": "src/asset.ts",
|
|
5716
|
-
"line":
|
|
6025
|
+
"line": 138
|
|
5717
6026
|
},
|
|
5718
6027
|
"name": "TypeScriptAsset",
|
|
5719
6028
|
"symbolId": "src/asset:TypeScriptAsset"
|
|
5720
6029
|
},
|
|
5721
6030
|
"@mrgrain/cdk-esbuild.TypeScriptCode": {
|
|
5722
6031
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
6032
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5723
6033
|
"docs": {
|
|
5724
6034
|
"stability": "stable",
|
|
5725
6035
|
"summary": "Represents the deployed TypeScript Code."
|
|
@@ -5731,14 +6041,14 @@
|
|
|
5731
6041
|
},
|
|
5732
6042
|
"locationInModule": {
|
|
5733
6043
|
"filename": "src/code.ts",
|
|
5734
|
-
"line":
|
|
6044
|
+
"line": 202
|
|
5735
6045
|
},
|
|
5736
6046
|
"parameters": [
|
|
5737
6047
|
{
|
|
5738
6048
|
"docs": {
|
|
5739
|
-
"remarks": "
|
|
6049
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
5740
6050
|
"stability": "stable",
|
|
5741
|
-
"summary": "A
|
|
6051
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
5742
6052
|
},
|
|
5743
6053
|
"name": "entryPoints",
|
|
5744
6054
|
"type": {
|
|
@@ -5784,7 +6094,7 @@
|
|
|
5784
6094
|
"kind": "class",
|
|
5785
6095
|
"locationInModule": {
|
|
5786
6096
|
"filename": "src/code.ts",
|
|
5787
|
-
"line":
|
|
6097
|
+
"line": 193
|
|
5788
6098
|
},
|
|
5789
6099
|
"methods": [
|
|
5790
6100
|
{
|
|
@@ -5793,9 +6103,10 @@
|
|
|
5793
6103
|
},
|
|
5794
6104
|
"locationInModule": {
|
|
5795
6105
|
"filename": "src/code.ts",
|
|
5796
|
-
"line":
|
|
6106
|
+
"line": 194
|
|
5797
6107
|
},
|
|
5798
|
-
"name": "
|
|
6108
|
+
"name": "getAsset",
|
|
6109
|
+
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5799
6110
|
"parameters": [
|
|
5800
6111
|
{
|
|
5801
6112
|
"name": "scope",
|
|
@@ -5804,110 +6115,15 @@
|
|
|
5804
6115
|
}
|
|
5805
6116
|
}
|
|
5806
6117
|
],
|
|
6118
|
+
"protected": true,
|
|
5807
6119
|
"returns": {
|
|
5808
6120
|
"type": {
|
|
5809
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
6121
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
5810
6122
|
}
|
|
5811
6123
|
}
|
|
5812
|
-
},
|
|
5813
|
-
{
|
|
5814
|
-
"docs": {
|
|
5815
|
-
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
5816
|
-
"stability": "stable",
|
|
5817
|
-
"summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
|
|
5818
|
-
},
|
|
5819
|
-
"locationInModule": {
|
|
5820
|
-
"filename": "src/code.ts",
|
|
5821
|
-
"line": 106
|
|
5822
|
-
},
|
|
5823
|
-
"name": "bindToResource",
|
|
5824
|
-
"parameters": [
|
|
5825
|
-
{
|
|
5826
|
-
"name": "resource",
|
|
5827
|
-
"type": {
|
|
5828
|
-
"fqn": "aws-cdk-lib.CfnResource"
|
|
5829
|
-
}
|
|
5830
|
-
},
|
|
5831
|
-
{
|
|
5832
|
-
"name": "options",
|
|
5833
|
-
"optional": true,
|
|
5834
|
-
"type": {
|
|
5835
|
-
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
5836
|
-
}
|
|
5837
|
-
}
|
|
5838
|
-
]
|
|
5839
6124
|
}
|
|
5840
6125
|
],
|
|
5841
6126
|
"name": "TypeScriptCode",
|
|
5842
|
-
"properties": [
|
|
5843
|
-
{
|
|
5844
|
-
"docs": {
|
|
5845
|
-
"stability": "stable"
|
|
5846
|
-
},
|
|
5847
|
-
"immutable": true,
|
|
5848
|
-
"locationInModule": {
|
|
5849
|
-
"filename": "src/code.ts",
|
|
5850
|
-
"line": 154
|
|
5851
|
-
},
|
|
5852
|
-
"name": "assetClass",
|
|
5853
|
-
"protected": true,
|
|
5854
|
-
"type": {
|
|
5855
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
5856
|
-
}
|
|
5857
|
-
},
|
|
5858
|
-
{
|
|
5859
|
-
"docs": {
|
|
5860
|
-
"stability": "stable"
|
|
5861
|
-
},
|
|
5862
|
-
"locationInModule": {
|
|
5863
|
-
"filename": "src/code.ts",
|
|
5864
|
-
"line": 42
|
|
5865
|
-
},
|
|
5866
|
-
"name": "asset",
|
|
5867
|
-
"protected": true,
|
|
5868
|
-
"type": {
|
|
5869
|
-
"union": {
|
|
5870
|
-
"types": [
|
|
5871
|
-
{
|
|
5872
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
5873
|
-
},
|
|
5874
|
-
{
|
|
5875
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
5876
|
-
}
|
|
5877
|
-
]
|
|
5878
|
-
}
|
|
5879
|
-
}
|
|
5880
|
-
},
|
|
5881
|
-
{
|
|
5882
|
-
"docs": {
|
|
5883
|
-
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
5884
|
-
"stability": "deprecated",
|
|
5885
|
-
"summary": "Determines whether this Code is inline code or not."
|
|
5886
|
-
},
|
|
5887
|
-
"locationInModule": {
|
|
5888
|
-
"filename": "src/code.ts",
|
|
5889
|
-
"line": 49
|
|
5890
|
-
},
|
|
5891
|
-
"name": "isInline",
|
|
5892
|
-
"type": {
|
|
5893
|
-
"primitive": "boolean"
|
|
5894
|
-
}
|
|
5895
|
-
},
|
|
5896
|
-
{
|
|
5897
|
-
"docs": {
|
|
5898
|
-
"stability": "stable"
|
|
5899
|
-
},
|
|
5900
|
-
"locationInModule": {
|
|
5901
|
-
"filename": "src/code.ts",
|
|
5902
|
-
"line": 40
|
|
5903
|
-
},
|
|
5904
|
-
"name": "props",
|
|
5905
|
-
"protected": true,
|
|
5906
|
-
"type": {
|
|
5907
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
5908
|
-
}
|
|
5909
|
-
}
|
|
5910
|
-
],
|
|
5911
6127
|
"symbolId": "src/code:TypeScriptCode"
|
|
5912
6128
|
},
|
|
5913
6129
|
"@mrgrain/cdk-esbuild.TypeScriptCodeProps": {
|
|
@@ -5923,7 +6139,7 @@
|
|
|
5923
6139
|
"kind": "interface",
|
|
5924
6140
|
"locationInModule": {
|
|
5925
6141
|
"filename": "src/code.ts",
|
|
5926
|
-
"line":
|
|
6142
|
+
"line": 20
|
|
5927
6143
|
},
|
|
5928
6144
|
"name": "TypeScriptCodeProps",
|
|
5929
6145
|
"properties": [
|
|
@@ -5960,10 +6176,15 @@
|
|
|
5960
6176
|
},
|
|
5961
6177
|
"locationInModule": {
|
|
5962
6178
|
"filename": "src/source.ts",
|
|
5963
|
-
"line":
|
|
6179
|
+
"line": 154
|
|
5964
6180
|
},
|
|
5965
6181
|
"parameters": [
|
|
5966
6182
|
{
|
|
6183
|
+
"docs": {
|
|
6184
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
6185
|
+
"stability": "stable",
|
|
6186
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
6187
|
+
},
|
|
5967
6188
|
"name": "entryPoints",
|
|
5968
6189
|
"type": {
|
|
5969
6190
|
"union": {
|
|
@@ -5992,6 +6213,11 @@
|
|
|
5992
6213
|
}
|
|
5993
6214
|
},
|
|
5994
6215
|
{
|
|
6216
|
+
"docs": {
|
|
6217
|
+
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=browser`",
|
|
6218
|
+
"stability": "stable",
|
|
6219
|
+
"summary": "Props to change the behavior of the bundler."
|
|
6220
|
+
},
|
|
5995
6221
|
"name": "props",
|
|
5996
6222
|
"optional": true,
|
|
5997
6223
|
"type": {
|
|
@@ -6006,7 +6232,7 @@
|
|
|
6006
6232
|
"kind": "class",
|
|
6007
6233
|
"locationInModule": {
|
|
6008
6234
|
"filename": "src/source.ts",
|
|
6009
|
-
"line":
|
|
6235
|
+
"line": 148
|
|
6010
6236
|
},
|
|
6011
6237
|
"methods": [
|
|
6012
6238
|
{
|
|
@@ -6016,7 +6242,7 @@
|
|
|
6016
6242
|
},
|
|
6017
6243
|
"locationInModule": {
|
|
6018
6244
|
"filename": "src/source.ts",
|
|
6019
|
-
"line":
|
|
6245
|
+
"line": 73
|
|
6020
6246
|
},
|
|
6021
6247
|
"name": "bind",
|
|
6022
6248
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -6073,7 +6299,7 @@
|
|
|
6073
6299
|
},
|
|
6074
6300
|
"locationInModule": {
|
|
6075
6301
|
"filename": "src/source.ts",
|
|
6076
|
-
"line":
|
|
6302
|
+
"line": 152
|
|
6077
6303
|
},
|
|
6078
6304
|
"name": "assetClass",
|
|
6079
6305
|
"type": {
|
|
@@ -6136,6 +6362,6 @@
|
|
|
6136
6362
|
"symbolId": "src/source:TypeScriptSourceProps"
|
|
6137
6363
|
}
|
|
6138
6364
|
},
|
|
6139
|
-
"version": "3.
|
|
6140
|
-
"fingerprint": "
|
|
6141
|
-
}
|
|
6365
|
+
"version": "3.7.2",
|
|
6366
|
+
"fingerprint": "FZoMp5kVnpWEgMI5zZu/4a3NYaGnkZCnyKZ+4SU2pwE="
|
|
6367
|
+
}
|