@mrgrain/cdk-esbuild 3.4.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -0
- package/.jsii +673 -403
- package/.projenrc.ts +35 -20
- package/API.md +484 -176
- package/CHANGELOG.md +392 -0
- package/README.md +16 -6
- package/lib/asset.d.ts +20 -5
- package/lib/asset.js +33 -18
- package/lib/bundler.d.ts +44 -5
- package/lib/bundler.js +25 -14
- package/lib/code.d.ts +83 -26
- package/lib/code.js +85 -24
- package/lib/esbuild-types.d.ts +7 -1
- package/lib/esbuild-types.js +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +3 -1
- package/lib/inline-code.js +4 -4
- package/lib/source.d.ts +81 -5
- package/lib/source.js +84 -8
- package/package.json +13 -10
- 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.61.0 (build abf4039)",
|
|
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,
|
|
@@ -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,
|
|
@@ -3403,6 +3403,28 @@
|
|
|
3403
3403
|
"primitive": "number"
|
|
3404
3404
|
}
|
|
3405
3405
|
},
|
|
3406
|
+
{
|
|
3407
|
+
"abstract": true,
|
|
3408
|
+
"docs": {
|
|
3409
|
+
"stability": "stable",
|
|
3410
|
+
"summary": "Documentation: https://esbuild.github.io/api/#log-override."
|
|
3411
|
+
},
|
|
3412
|
+
"immutable": true,
|
|
3413
|
+
"locationInModule": {
|
|
3414
|
+
"filename": "src/esbuild-types.ts",
|
|
3415
|
+
"line": 75
|
|
3416
|
+
},
|
|
3417
|
+
"name": "logOverride",
|
|
3418
|
+
"optional": true,
|
|
3419
|
+
"type": {
|
|
3420
|
+
"collection": {
|
|
3421
|
+
"elementtype": {
|
|
3422
|
+
"primitive": "string"
|
|
3423
|
+
},
|
|
3424
|
+
"kind": "map"
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
},
|
|
3406
3428
|
{
|
|
3407
3429
|
"abstract": true,
|
|
3408
3430
|
"docs": {
|
|
@@ -3412,7 +3434,7 @@
|
|
|
3412
3434
|
"immutable": true,
|
|
3413
3435
|
"locationInModule": {
|
|
3414
3436
|
"filename": "src/esbuild-types.ts",
|
|
3415
|
-
"line":
|
|
3437
|
+
"line": 102
|
|
3416
3438
|
},
|
|
3417
3439
|
"name": "mainFields",
|
|
3418
3440
|
"optional": true,
|
|
@@ -3434,7 +3456,7 @@
|
|
|
3434
3456
|
"immutable": true,
|
|
3435
3457
|
"locationInModule": {
|
|
3436
3458
|
"filename": "src/esbuild-types.ts",
|
|
3437
|
-
"line":
|
|
3459
|
+
"line": 36
|
|
3438
3460
|
},
|
|
3439
3461
|
"name": "mangleCache",
|
|
3440
3462
|
"optional": true,
|
|
@@ -3465,7 +3487,7 @@
|
|
|
3465
3487
|
"immutable": true,
|
|
3466
3488
|
"locationInModule": {
|
|
3467
3489
|
"filename": "src/esbuild-types.ts",
|
|
3468
|
-
"line":
|
|
3490
|
+
"line": 30
|
|
3469
3491
|
},
|
|
3470
3492
|
"name": "mangleProps",
|
|
3471
3493
|
"optional": true,
|
|
@@ -3482,7 +3504,7 @@
|
|
|
3482
3504
|
"immutable": true,
|
|
3483
3505
|
"locationInModule": {
|
|
3484
3506
|
"filename": "src/esbuild-types.ts",
|
|
3485
|
-
"line":
|
|
3507
|
+
"line": 34
|
|
3486
3508
|
},
|
|
3487
3509
|
"name": "mangleQuoted",
|
|
3488
3510
|
"optional": true,
|
|
@@ -3499,7 +3521,7 @@
|
|
|
3499
3521
|
"immutable": true,
|
|
3500
3522
|
"locationInModule": {
|
|
3501
3523
|
"filename": "src/esbuild-types.ts",
|
|
3502
|
-
"line":
|
|
3524
|
+
"line": 88
|
|
3503
3525
|
},
|
|
3504
3526
|
"name": "metafile",
|
|
3505
3527
|
"optional": true,
|
|
@@ -3516,7 +3538,7 @@
|
|
|
3516
3538
|
"immutable": true,
|
|
3517
3539
|
"locationInModule": {
|
|
3518
3540
|
"filename": "src/esbuild-types.ts",
|
|
3519
|
-
"line":
|
|
3541
|
+
"line": 40
|
|
3520
3542
|
},
|
|
3521
3543
|
"name": "minify",
|
|
3522
3544
|
"optional": true,
|
|
@@ -3533,7 +3555,7 @@
|
|
|
3533
3555
|
"immutable": true,
|
|
3534
3556
|
"locationInModule": {
|
|
3535
3557
|
"filename": "src/esbuild-types.ts",
|
|
3536
|
-
"line":
|
|
3558
|
+
"line": 44
|
|
3537
3559
|
},
|
|
3538
3560
|
"name": "minifyIdentifiers",
|
|
3539
3561
|
"optional": true,
|
|
@@ -3550,7 +3572,7 @@
|
|
|
3550
3572
|
"immutable": true,
|
|
3551
3573
|
"locationInModule": {
|
|
3552
3574
|
"filename": "src/esbuild-types.ts",
|
|
3553
|
-
"line":
|
|
3575
|
+
"line": 46
|
|
3554
3576
|
},
|
|
3555
3577
|
"name": "minifySyntax",
|
|
3556
3578
|
"optional": true,
|
|
@@ -3567,7 +3589,7 @@
|
|
|
3567
3589
|
"immutable": true,
|
|
3568
3590
|
"locationInModule": {
|
|
3569
3591
|
"filename": "src/esbuild-types.ts",
|
|
3570
|
-
"line":
|
|
3592
|
+
"line": 42
|
|
3571
3593
|
},
|
|
3572
3594
|
"name": "minifyWhitespace",
|
|
3573
3595
|
"optional": true,
|
|
@@ -3584,7 +3606,7 @@
|
|
|
3584
3606
|
"immutable": true,
|
|
3585
3607
|
"locationInModule": {
|
|
3586
3608
|
"filename": "src/esbuild-types.ts",
|
|
3587
|
-
"line":
|
|
3609
|
+
"line": 132
|
|
3588
3610
|
},
|
|
3589
3611
|
"name": "nodePaths",
|
|
3590
3612
|
"optional": true,
|
|
@@ -3606,7 +3628,7 @@
|
|
|
3606
3628
|
"immutable": true,
|
|
3607
3629
|
"locationInModule": {
|
|
3608
3630
|
"filename": "src/esbuild-types.ts",
|
|
3609
|
-
"line":
|
|
3631
|
+
"line": 92
|
|
3610
3632
|
},
|
|
3611
3633
|
"name": "outbase",
|
|
3612
3634
|
"optional": true,
|
|
@@ -3623,7 +3645,7 @@
|
|
|
3623
3645
|
"immutable": true,
|
|
3624
3646
|
"locationInModule": {
|
|
3625
3647
|
"filename": "src/esbuild-types.ts",
|
|
3626
|
-
"line":
|
|
3648
|
+
"line": 90
|
|
3627
3649
|
},
|
|
3628
3650
|
"name": "outdir",
|
|
3629
3651
|
"optional": true,
|
|
@@ -3640,7 +3662,7 @@
|
|
|
3640
3662
|
"immutable": true,
|
|
3641
3663
|
"locationInModule": {
|
|
3642
3664
|
"filename": "src/esbuild-types.ts",
|
|
3643
|
-
"line":
|
|
3665
|
+
"line": 112
|
|
3644
3666
|
},
|
|
3645
3667
|
"name": "outExtension",
|
|
3646
3668
|
"optional": true,
|
|
@@ -3662,7 +3684,7 @@
|
|
|
3662
3684
|
"immutable": true,
|
|
3663
3685
|
"locationInModule": {
|
|
3664
3686
|
"filename": "src/esbuild-types.ts",
|
|
3665
|
-
"line":
|
|
3687
|
+
"line": 86
|
|
3666
3688
|
},
|
|
3667
3689
|
"name": "outfile",
|
|
3668
3690
|
"optional": true,
|
|
@@ -3679,7 +3701,7 @@
|
|
|
3679
3701
|
"immutable": true,
|
|
3680
3702
|
"locationInModule": {
|
|
3681
3703
|
"filename": "src/esbuild-types.ts",
|
|
3682
|
-
"line":
|
|
3704
|
+
"line": 94
|
|
3683
3705
|
},
|
|
3684
3706
|
"name": "platform",
|
|
3685
3707
|
"optional": true,
|
|
@@ -3696,7 +3718,7 @@
|
|
|
3696
3718
|
"immutable": true,
|
|
3697
3719
|
"locationInModule": {
|
|
3698
3720
|
"filename": "src/esbuild-types.ts",
|
|
3699
|
-
"line":
|
|
3721
|
+
"line": 84
|
|
3700
3722
|
},
|
|
3701
3723
|
"name": "preserveSymlinks",
|
|
3702
3724
|
"optional": true,
|
|
@@ -3713,7 +3735,7 @@
|
|
|
3713
3735
|
"immutable": true,
|
|
3714
3736
|
"locationInModule": {
|
|
3715
3737
|
"filename": "src/esbuild-types.ts",
|
|
3716
|
-
"line":
|
|
3738
|
+
"line": 114
|
|
3717
3739
|
},
|
|
3718
3740
|
"name": "publicPath",
|
|
3719
3741
|
"optional": true,
|
|
@@ -3730,7 +3752,7 @@
|
|
|
3730
3752
|
"immutable": true,
|
|
3731
3753
|
"locationInModule": {
|
|
3732
3754
|
"filename": "src/esbuild-types.ts",
|
|
3733
|
-
"line":
|
|
3755
|
+
"line": 64
|
|
3734
3756
|
},
|
|
3735
3757
|
"name": "pure",
|
|
3736
3758
|
"optional": true,
|
|
@@ -3752,7 +3774,7 @@
|
|
|
3752
3774
|
"immutable": true,
|
|
3753
3775
|
"locationInModule": {
|
|
3754
3776
|
"filename": "src/esbuild-types.ts",
|
|
3755
|
-
"line":
|
|
3777
|
+
"line": 32
|
|
3756
3778
|
},
|
|
3757
3779
|
"name": "reserveProps",
|
|
3758
3780
|
"optional": true,
|
|
@@ -3769,7 +3791,7 @@
|
|
|
3769
3791
|
"immutable": true,
|
|
3770
3792
|
"locationInModule": {
|
|
3771
3793
|
"filename": "src/esbuild-types.ts",
|
|
3772
|
-
"line":
|
|
3794
|
+
"line": 100
|
|
3773
3795
|
},
|
|
3774
3796
|
"name": "resolveExtensions",
|
|
3775
3797
|
"optional": true,
|
|
@@ -3851,7 +3873,7 @@
|
|
|
3851
3873
|
"immutable": true,
|
|
3852
3874
|
"locationInModule": {
|
|
3853
3875
|
"filename": "src/esbuild-types.ts",
|
|
3854
|
-
"line":
|
|
3876
|
+
"line": 82
|
|
3855
3877
|
},
|
|
3856
3878
|
"name": "splitting",
|
|
3857
3879
|
"optional": true,
|
|
@@ -3859,6 +3881,28 @@
|
|
|
3859
3881
|
"primitive": "boolean"
|
|
3860
3882
|
}
|
|
3861
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
|
+
},
|
|
3862
3906
|
{
|
|
3863
3907
|
"abstract": true,
|
|
3864
3908
|
"docs": {
|
|
@@ -3899,7 +3943,7 @@
|
|
|
3899
3943
|
"immutable": true,
|
|
3900
3944
|
"locationInModule": {
|
|
3901
3945
|
"filename": "src/esbuild-types.ts",
|
|
3902
|
-
"line":
|
|
3946
|
+
"line": 50
|
|
3903
3947
|
},
|
|
3904
3948
|
"name": "treeShaking",
|
|
3905
3949
|
"optional": true,
|
|
@@ -3916,7 +3960,7 @@
|
|
|
3916
3960
|
"immutable": true,
|
|
3917
3961
|
"locationInModule": {
|
|
3918
3962
|
"filename": "src/esbuild-types.ts",
|
|
3919
|
-
"line":
|
|
3963
|
+
"line": 110
|
|
3920
3964
|
},
|
|
3921
3965
|
"name": "tsconfig",
|
|
3922
3966
|
"optional": true,
|
|
@@ -3933,7 +3977,7 @@
|
|
|
3933
3977
|
"immutable": true,
|
|
3934
3978
|
"locationInModule": {
|
|
3935
3979
|
"filename": "src/esbuild-types.ts",
|
|
3936
|
-
"line":
|
|
3980
|
+
"line": 106
|
|
3937
3981
|
},
|
|
3938
3982
|
"name": "write",
|
|
3939
3983
|
"optional": true,
|
|
@@ -3954,7 +3998,7 @@
|
|
|
3954
3998
|
"kind": "interface",
|
|
3955
3999
|
"locationInModule": {
|
|
3956
4000
|
"filename": "src/bundler.ts",
|
|
3957
|
-
"line":
|
|
4001
|
+
"line": 34
|
|
3958
4002
|
},
|
|
3959
4003
|
"name": "BundlerProps",
|
|
3960
4004
|
"properties": [
|
|
@@ -3974,7 +4018,7 @@
|
|
|
3974
4018
|
"immutable": true,
|
|
3975
4019
|
"locationInModule": {
|
|
3976
4020
|
"filename": "src/bundler.ts",
|
|
3977
|
-
"line":
|
|
4021
|
+
"line": 90
|
|
3978
4022
|
},
|
|
3979
4023
|
"name": "buildFn",
|
|
3980
4024
|
"optional": true,
|
|
@@ -3993,7 +4037,7 @@
|
|
|
3993
4037
|
"immutable": true,
|
|
3994
4038
|
"locationInModule": {
|
|
3995
4039
|
"filename": "src/bundler.ts",
|
|
3996
|
-
"line":
|
|
4040
|
+
"line": 53
|
|
3997
4041
|
},
|
|
3998
4042
|
"name": "buildOptions",
|
|
3999
4043
|
"optional": true,
|
|
@@ -4011,7 +4055,7 @@
|
|
|
4011
4055
|
"immutable": true,
|
|
4012
4056
|
"locationInModule": {
|
|
4013
4057
|
"filename": "src/bundler.ts",
|
|
4014
|
-
"line":
|
|
4058
|
+
"line": 76
|
|
4015
4059
|
},
|
|
4016
4060
|
"name": "copyDir",
|
|
4017
4061
|
"optional": true,
|
|
@@ -4054,6 +4098,24 @@
|
|
|
4054
4098
|
]
|
|
4055
4099
|
}
|
|
4056
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
|
+
}
|
|
4057
4119
|
}
|
|
4058
4120
|
],
|
|
4059
4121
|
"symbolId": "src/bundler:BundlerProps"
|
|
@@ -4062,34 +4124,119 @@
|
|
|
4062
4124
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4063
4125
|
"datatype": true,
|
|
4064
4126
|
"docs": {
|
|
4065
|
-
"stability": "stable"
|
|
4127
|
+
"stability": "stable",
|
|
4128
|
+
"summary": "Result of binding `Code` into a `Function`."
|
|
4066
4129
|
},
|
|
4067
4130
|
"fqn": "@mrgrain/cdk-esbuild.CodeConfig",
|
|
4068
4131
|
"kind": "interface",
|
|
4069
4132
|
"locationInModule": {
|
|
4070
|
-
"filename": "
|
|
4071
|
-
"line":
|
|
4133
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4134
|
+
"line": 94
|
|
4072
4135
|
},
|
|
4073
4136
|
"name": "CodeConfig",
|
|
4074
4137
|
"properties": [
|
|
4075
4138
|
{
|
|
4076
4139
|
"abstract": true,
|
|
4077
4140
|
"docs": {
|
|
4141
|
+
"default": "- code is not an ECR container image",
|
|
4078
4142
|
"stability": "stable",
|
|
4079
|
-
"summary": "
|
|
4143
|
+
"summary": "Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`)."
|
|
4080
4144
|
},
|
|
4081
4145
|
"immutable": true,
|
|
4082
4146
|
"locationInModule": {
|
|
4083
|
-
"filename": "
|
|
4084
|
-
"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
|
|
4085
4185
|
},
|
|
4086
4186
|
"name": "s3Location",
|
|
4187
|
+
"optional": true,
|
|
4087
4188
|
"type": {
|
|
4088
4189
|
"fqn": "aws-cdk-lib.aws_s3.Location"
|
|
4089
4190
|
}
|
|
4090
4191
|
}
|
|
4091
4192
|
],
|
|
4092
|
-
"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"
|
|
4093
4240
|
},
|
|
4094
4241
|
"@mrgrain/cdk-esbuild.EsbuildBundler": {
|
|
4095
4242
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
@@ -4105,14 +4252,14 @@
|
|
|
4105
4252
|
},
|
|
4106
4253
|
"locationInModule": {
|
|
4107
4254
|
"filename": "src/bundler.ts",
|
|
4108
|
-
"line":
|
|
4255
|
+
"line": 126
|
|
4109
4256
|
},
|
|
4110
4257
|
"parameters": [
|
|
4111
4258
|
{
|
|
4112
4259
|
"docs": {
|
|
4113
|
-
"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'}`",
|
|
4114
4261
|
"stability": "experimental",
|
|
4115
|
-
"summary": "A
|
|
4262
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4116
4263
|
},
|
|
4117
4264
|
"name": "entryPoints",
|
|
4118
4265
|
"type": {
|
|
@@ -4156,20 +4303,20 @@
|
|
|
4156
4303
|
"kind": "class",
|
|
4157
4304
|
"locationInModule": {
|
|
4158
4305
|
"filename": "src/bundler.ts",
|
|
4159
|
-
"line":
|
|
4306
|
+
"line": 108
|
|
4160
4307
|
},
|
|
4161
4308
|
"name": "EsbuildBundler",
|
|
4162
4309
|
"properties": [
|
|
4163
4310
|
{
|
|
4164
4311
|
"docs": {
|
|
4165
|
-
"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'}`",
|
|
4166
4313
|
"stability": "experimental",
|
|
4167
|
-
"summary": "A
|
|
4314
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4168
4315
|
},
|
|
4169
4316
|
"immutable": true,
|
|
4170
4317
|
"locationInModule": {
|
|
4171
4318
|
"filename": "src/bundler.ts",
|
|
4172
|
-
"line":
|
|
4319
|
+
"line": 143
|
|
4173
4320
|
},
|
|
4174
4321
|
"name": "entryPoints",
|
|
4175
4322
|
"type": {
|
|
@@ -4206,7 +4353,7 @@
|
|
|
4206
4353
|
"immutable": true,
|
|
4207
4354
|
"locationInModule": {
|
|
4208
4355
|
"filename": "src/bundler.ts",
|
|
4209
|
-
"line":
|
|
4356
|
+
"line": 121
|
|
4210
4357
|
},
|
|
4211
4358
|
"name": "image",
|
|
4212
4359
|
"type": {
|
|
@@ -4221,7 +4368,7 @@
|
|
|
4221
4368
|
"immutable": true,
|
|
4222
4369
|
"locationInModule": {
|
|
4223
4370
|
"filename": "src/bundler.ts",
|
|
4224
|
-
"line":
|
|
4371
|
+
"line": 114
|
|
4225
4372
|
},
|
|
4226
4373
|
"name": "local",
|
|
4227
4374
|
"type": {
|
|
@@ -4236,7 +4383,7 @@
|
|
|
4236
4383
|
"immutable": true,
|
|
4237
4384
|
"locationInModule": {
|
|
4238
4385
|
"filename": "src/bundler.ts",
|
|
4239
|
-
"line":
|
|
4386
|
+
"line": 150
|
|
4240
4387
|
},
|
|
4241
4388
|
"name": "props",
|
|
4242
4389
|
"type": {
|
|
@@ -4246,59 +4393,302 @@
|
|
|
4246
4393
|
],
|
|
4247
4394
|
"symbolId": "src/bundler:EsbuildBundler"
|
|
4248
4395
|
},
|
|
4249
|
-
"@mrgrain/cdk-esbuild.
|
|
4396
|
+
"@mrgrain/cdk-esbuild.EsbuildCode": {
|
|
4250
4397
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4251
|
-
"base": "aws-cdk-lib.aws_lambda.
|
|
4398
|
+
"base": "aws-cdk-lib.aws_lambda.Code",
|
|
4252
4399
|
"docs": {
|
|
4400
|
+
"remarks": "You should always use `TypeScriptCode` or `JavaScriptCode`.",
|
|
4253
4401
|
"stability": "experimental",
|
|
4254
|
-
"summary": "
|
|
4402
|
+
"summary": "Represents a generic esbuild code bundle."
|
|
4255
4403
|
},
|
|
4256
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4404
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4257
4405
|
"initializer": {
|
|
4258
4406
|
"docs": {
|
|
4259
4407
|
"stability": "experimental"
|
|
4260
4408
|
},
|
|
4261
4409
|
"locationInModule": {
|
|
4262
|
-
"filename": "src/
|
|
4263
|
-
"line":
|
|
4410
|
+
"filename": "src/code.ts",
|
|
4411
|
+
"line": 51
|
|
4264
4412
|
},
|
|
4265
4413
|
"parameters": [
|
|
4266
4414
|
{
|
|
4267
4415
|
"docs": {
|
|
4268
|
-
"
|
|
4269
|
-
"
|
|
4270
|
-
|
|
4271
|
-
"name": "code",
|
|
4272
|
-
"type": {
|
|
4273
|
-
"primitive": "string"
|
|
4274
|
-
}
|
|
4275
|
-
},
|
|
4276
|
-
{
|
|
4277
|
-
"docs": {
|
|
4278
|
-
"remarks": "Props to change the behaviour of the transformer.\n\nDefault values for `props.transformOptions`:\n- `loader='js'`",
|
|
4279
|
-
"see": "https://esbuild.github.io/api/#transform-api",
|
|
4280
|
-
"stability": "experimental",
|
|
4281
|
-
"summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
|
|
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."
|
|
4282
4419
|
},
|
|
4283
|
-
"name": "
|
|
4284
|
-
"optional": true,
|
|
4420
|
+
"name": "entryPoints",
|
|
4285
4421
|
"type": {
|
|
4286
4422
|
"union": {
|
|
4287
4423
|
"types": [
|
|
4288
4424
|
{
|
|
4289
|
-
"
|
|
4425
|
+
"primitive": "string"
|
|
4290
4426
|
},
|
|
4291
4427
|
{
|
|
4292
|
-
"
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
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
|
+
}
|
|
4445
|
+
}
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
"docs": {
|
|
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."
|
|
4452
|
+
},
|
|
4453
|
+
"name": "props",
|
|
4454
|
+
"type": {
|
|
4455
|
+
"union": {
|
|
4456
|
+
"types": [
|
|
4457
|
+
{
|
|
4458
|
+
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
4459
|
+
},
|
|
4460
|
+
{
|
|
4461
|
+
"fqn": "@mrgrain/cdk-esbuild.TypeScriptCodeProps"
|
|
4462
|
+
}
|
|
4463
|
+
]
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4467
|
+
]
|
|
4468
|
+
},
|
|
4469
|
+
"kind": "class",
|
|
4470
|
+
"locationInModule": {
|
|
4471
|
+
"filename": "src/code.ts",
|
|
4472
|
+
"line": 29
|
|
4473
|
+
},
|
|
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": {
|
|
4302
4692
|
"filename": "src/inline-code.ts",
|
|
4303
4693
|
"line": 83
|
|
4304
4694
|
},
|
|
@@ -4484,6 +4874,7 @@
|
|
|
4484
4874
|
},
|
|
4485
4875
|
"@mrgrain/cdk-esbuild.JavaScriptAsset": {
|
|
4486
4876
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4877
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
4487
4878
|
"docs": {
|
|
4488
4879
|
"remarks": "The asset can be used by other constructs.",
|
|
4489
4880
|
"stability": "stable",
|
|
@@ -4496,7 +4887,7 @@
|
|
|
4496
4887
|
},
|
|
4497
4888
|
"locationInModule": {
|
|
4498
4889
|
"filename": "src/asset.ts",
|
|
4499
|
-
"line":
|
|
4890
|
+
"line": 57
|
|
4500
4891
|
},
|
|
4501
4892
|
"parameters": [
|
|
4502
4893
|
{
|
|
@@ -4522,13 +4913,14 @@
|
|
|
4522
4913
|
"kind": "class",
|
|
4523
4914
|
"locationInModule": {
|
|
4524
4915
|
"filename": "src/asset.ts",
|
|
4525
|
-
"line":
|
|
4916
|
+
"line": 129
|
|
4526
4917
|
},
|
|
4527
4918
|
"name": "JavaScriptAsset",
|
|
4528
4919
|
"symbolId": "src/asset:JavaScriptAsset"
|
|
4529
4920
|
},
|
|
4530
4921
|
"@mrgrain/cdk-esbuild.JavaScriptCode": {
|
|
4531
4922
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4923
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4532
4924
|
"docs": {
|
|
4533
4925
|
"stability": "stable",
|
|
4534
4926
|
"summary": "Represents the deployed JavaScript Code."
|
|
@@ -4540,14 +4932,14 @@
|
|
|
4540
4932
|
},
|
|
4541
4933
|
"locationInModule": {
|
|
4542
4934
|
"filename": "src/code.ts",
|
|
4543
|
-
"line":
|
|
4935
|
+
"line": 153
|
|
4544
4936
|
},
|
|
4545
4937
|
"parameters": [
|
|
4546
4938
|
{
|
|
4547
4939
|
"docs": {
|
|
4548
|
-
"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'}`",
|
|
4549
4941
|
"stability": "stable",
|
|
4550
|
-
"summary": "A
|
|
4942
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4551
4943
|
},
|
|
4552
4944
|
"name": "entryPoints",
|
|
4553
4945
|
"type": {
|
|
@@ -4558,165 +4950,71 @@
|
|
|
4558
4950
|
},
|
|
4559
4951
|
{
|
|
4560
4952
|
"collection": {
|
|
4561
|
-
"elementtype": {
|
|
4562
|
-
"primitive": "string"
|
|
4563
|
-
},
|
|
4564
|
-
"kind": "array"
|
|
4565
|
-
}
|
|
4566
|
-
},
|
|
4567
|
-
{
|
|
4568
|
-
"collection": {
|
|
4569
|
-
"elementtype": {
|
|
4570
|
-
"primitive": "string"
|
|
4571
|
-
},
|
|
4572
|
-
"kind": "map"
|
|
4573
|
-
}
|
|
4574
|
-
}
|
|
4575
|
-
]
|
|
4576
|
-
}
|
|
4577
|
-
}
|
|
4578
|
-
},
|
|
4579
|
-
{
|
|
4580
|
-
"docs": {
|
|
4581
|
-
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
4582
|
-
"stability": "stable",
|
|
4583
|
-
"summary": "Props to change the behavior of the bundler."
|
|
4584
|
-
},
|
|
4585
|
-
"name": "props",
|
|
4586
|
-
"optional": true,
|
|
4587
|
-
"type": {
|
|
4588
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
4589
|
-
}
|
|
4590
|
-
}
|
|
4591
|
-
]
|
|
4592
|
-
},
|
|
4593
|
-
"kind": "class",
|
|
4594
|
-
"locationInModule": {
|
|
4595
|
-
"filename": "src/code.ts",
|
|
4596
|
-
"line": 121
|
|
4597
|
-
},
|
|
4598
|
-
"methods": [
|
|
4599
|
-
{
|
|
4600
|
-
"docs": {
|
|
4601
|
-
"stability": "stable"
|
|
4602
|
-
},
|
|
4603
|
-
"locationInModule": {
|
|
4604
|
-
"filename": "src/code.ts",
|
|
4605
|
-
"line": 74
|
|
4606
|
-
},
|
|
4607
|
-
"name": "bind",
|
|
4608
|
-
"parameters": [
|
|
4609
|
-
{
|
|
4610
|
-
"name": "scope",
|
|
4611
|
-
"type": {
|
|
4612
|
-
"fqn": "constructs.Construct"
|
|
4613
|
-
}
|
|
4614
|
-
}
|
|
4615
|
-
],
|
|
4616
|
-
"returns": {
|
|
4617
|
-
"type": {
|
|
4618
|
-
"fqn": "@mrgrain/cdk-esbuild.CodeConfig"
|
|
4619
|
-
}
|
|
4620
|
-
}
|
|
4621
|
-
},
|
|
4622
|
-
{
|
|
4623
|
-
"docs": {
|
|
4624
|
-
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
4625
|
-
"stability": "stable",
|
|
4626
|
-
"summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
|
|
4627
|
-
},
|
|
4628
|
-
"locationInModule": {
|
|
4629
|
-
"filename": "src/code.ts",
|
|
4630
|
-
"line": 106
|
|
4631
|
-
},
|
|
4632
|
-
"name": "bindToResource",
|
|
4633
|
-
"parameters": [
|
|
4634
|
-
{
|
|
4635
|
-
"name": "resource",
|
|
4636
|
-
"type": {
|
|
4637
|
-
"fqn": "aws-cdk-lib.CfnResource"
|
|
4638
|
-
}
|
|
4639
|
-
},
|
|
4640
|
-
{
|
|
4641
|
-
"name": "options",
|
|
4642
|
-
"optional": true,
|
|
4643
|
-
"type": {
|
|
4644
|
-
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
4645
|
-
}
|
|
4646
|
-
}
|
|
4647
|
-
]
|
|
4648
|
-
}
|
|
4649
|
-
],
|
|
4650
|
-
"name": "JavaScriptCode",
|
|
4651
|
-
"properties": [
|
|
4652
|
-
{
|
|
4653
|
-
"docs": {
|
|
4654
|
-
"stability": "stable"
|
|
4655
|
-
},
|
|
4656
|
-
"immutable": true,
|
|
4657
|
-
"locationInModule": {
|
|
4658
|
-
"filename": "src/code.ts",
|
|
4659
|
-
"line": 122
|
|
4660
|
-
},
|
|
4661
|
-
"name": "assetClass",
|
|
4662
|
-
"protected": true,
|
|
4663
|
-
"type": {
|
|
4664
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
4665
|
-
}
|
|
4666
|
-
},
|
|
4667
|
-
{
|
|
4668
|
-
"docs": {
|
|
4669
|
-
"stability": "stable"
|
|
4670
|
-
},
|
|
4671
|
-
"locationInModule": {
|
|
4672
|
-
"filename": "src/code.ts",
|
|
4673
|
-
"line": 42
|
|
4674
|
-
},
|
|
4675
|
-
"name": "asset",
|
|
4676
|
-
"protected": true,
|
|
4677
|
-
"type": {
|
|
4678
|
-
"union": {
|
|
4679
|
-
"types": [
|
|
4680
|
-
{
|
|
4681
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
4682
|
-
},
|
|
4683
|
-
{
|
|
4684
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
4685
|
-
}
|
|
4686
|
-
]
|
|
4953
|
+
"elementtype": {
|
|
4954
|
+
"primitive": "string"
|
|
4955
|
+
},
|
|
4956
|
+
"kind": "array"
|
|
4957
|
+
}
|
|
4958
|
+
},
|
|
4959
|
+
{
|
|
4960
|
+
"collection": {
|
|
4961
|
+
"elementtype": {
|
|
4962
|
+
"primitive": "string"
|
|
4963
|
+
},
|
|
4964
|
+
"kind": "map"
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
]
|
|
4968
|
+
}
|
|
4687
4969
|
}
|
|
4688
|
-
}
|
|
4689
|
-
},
|
|
4690
|
-
{
|
|
4691
|
-
"docs": {
|
|
4692
|
-
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
4693
|
-
"stability": "deprecated",
|
|
4694
|
-
"summary": "Determines whether this Code is inline code or not."
|
|
4695
|
-
},
|
|
4696
|
-
"locationInModule": {
|
|
4697
|
-
"filename": "src/code.ts",
|
|
4698
|
-
"line": 49
|
|
4699
4970
|
},
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4971
|
+
{
|
|
4972
|
+
"docs": {
|
|
4973
|
+
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
4974
|
+
"stability": "stable",
|
|
4975
|
+
"summary": "Props to change the behavior of the bundler."
|
|
4976
|
+
},
|
|
4977
|
+
"name": "props",
|
|
4978
|
+
"optional": true,
|
|
4979
|
+
"type": {
|
|
4980
|
+
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
4981
|
+
}
|
|
4703
4982
|
}
|
|
4704
|
-
|
|
4983
|
+
]
|
|
4984
|
+
},
|
|
4985
|
+
"kind": "class",
|
|
4986
|
+
"locationInModule": {
|
|
4987
|
+
"filename": "src/code.ts",
|
|
4988
|
+
"line": 144
|
|
4989
|
+
},
|
|
4990
|
+
"methods": [
|
|
4705
4991
|
{
|
|
4706
4992
|
"docs": {
|
|
4707
4993
|
"stability": "stable"
|
|
4708
4994
|
},
|
|
4709
4995
|
"locationInModule": {
|
|
4710
4996
|
"filename": "src/code.ts",
|
|
4711
|
-
"line":
|
|
4997
|
+
"line": 145
|
|
4712
4998
|
},
|
|
4713
|
-
"name": "
|
|
4999
|
+
"name": "getAsset",
|
|
5000
|
+
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5001
|
+
"parameters": [
|
|
5002
|
+
{
|
|
5003
|
+
"name": "scope",
|
|
5004
|
+
"type": {
|
|
5005
|
+
"fqn": "constructs.Construct"
|
|
5006
|
+
}
|
|
5007
|
+
}
|
|
5008
|
+
],
|
|
4714
5009
|
"protected": true,
|
|
4715
|
-
"
|
|
4716
|
-
"
|
|
5010
|
+
"returns": {
|
|
5011
|
+
"type": {
|
|
5012
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
5013
|
+
}
|
|
4717
5014
|
}
|
|
4718
5015
|
}
|
|
4719
5016
|
],
|
|
5017
|
+
"name": "JavaScriptCode",
|
|
4720
5018
|
"symbolId": "src/code:JavaScriptCode"
|
|
4721
5019
|
},
|
|
4722
5020
|
"@mrgrain/cdk-esbuild.JavaScriptCodeProps": {
|
|
@@ -4732,7 +5030,7 @@
|
|
|
4732
5030
|
"kind": "interface",
|
|
4733
5031
|
"locationInModule": {
|
|
4734
5032
|
"filename": "src/code.ts",
|
|
4735
|
-
"line":
|
|
5033
|
+
"line": 19
|
|
4736
5034
|
},
|
|
4737
5035
|
"name": "JavaScriptCodeProps",
|
|
4738
5036
|
"properties": [
|
|
@@ -4769,10 +5067,15 @@
|
|
|
4769
5067
|
},
|
|
4770
5068
|
"locationInModule": {
|
|
4771
5069
|
"filename": "src/source.ts",
|
|
4772
|
-
"line":
|
|
5070
|
+
"line": 113
|
|
4773
5071
|
},
|
|
4774
5072
|
"parameters": [
|
|
4775
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
|
+
},
|
|
4776
5079
|
"name": "entryPoints",
|
|
4777
5080
|
"type": {
|
|
4778
5081
|
"union": {
|
|
@@ -4801,6 +5104,11 @@
|
|
|
4801
5104
|
}
|
|
4802
5105
|
},
|
|
4803
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
|
+
},
|
|
4804
5112
|
"name": "props",
|
|
4805
5113
|
"optional": true,
|
|
4806
5114
|
"type": {
|
|
@@ -4815,7 +5123,7 @@
|
|
|
4815
5123
|
"kind": "class",
|
|
4816
5124
|
"locationInModule": {
|
|
4817
5125
|
"filename": "src/source.ts",
|
|
4818
|
-
"line":
|
|
5126
|
+
"line": 107
|
|
4819
5127
|
},
|
|
4820
5128
|
"methods": [
|
|
4821
5129
|
{
|
|
@@ -4825,7 +5133,7 @@
|
|
|
4825
5133
|
},
|
|
4826
5134
|
"locationInModule": {
|
|
4827
5135
|
"filename": "src/source.ts",
|
|
4828
|
-
"line":
|
|
5136
|
+
"line": 73
|
|
4829
5137
|
},
|
|
4830
5138
|
"name": "bind",
|
|
4831
5139
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -4882,7 +5190,7 @@
|
|
|
4882
5190
|
},
|
|
4883
5191
|
"locationInModule": {
|
|
4884
5192
|
"filename": "src/source.ts",
|
|
4885
|
-
"line":
|
|
5193
|
+
"line": 111
|
|
4886
5194
|
},
|
|
4887
5195
|
"name": "assetClass",
|
|
4888
5196
|
"type": {
|
|
@@ -4954,7 +5262,7 @@
|
|
|
4954
5262
|
"kind": "interface",
|
|
4955
5263
|
"locationInModule": {
|
|
4956
5264
|
"filename": "src/esbuild-types.ts",
|
|
4957
|
-
"line":
|
|
5265
|
+
"line": 240
|
|
4958
5266
|
},
|
|
4959
5267
|
"name": "TransformOptions",
|
|
4960
5268
|
"properties": [
|
|
@@ -4966,7 +5274,7 @@
|
|
|
4966
5274
|
"immutable": true,
|
|
4967
5275
|
"locationInModule": {
|
|
4968
5276
|
"filename": "src/esbuild-types.ts",
|
|
4969
|
-
"line":
|
|
5277
|
+
"line": 245
|
|
4970
5278
|
},
|
|
4971
5279
|
"name": "banner",
|
|
4972
5280
|
"optional": true,
|
|
@@ -4983,7 +5291,7 @@
|
|
|
4983
5291
|
"immutable": true,
|
|
4984
5292
|
"locationInModule": {
|
|
4985
5293
|
"filename": "src/esbuild-types.ts",
|
|
4986
|
-
"line":
|
|
5294
|
+
"line": 48
|
|
4987
5295
|
},
|
|
4988
5296
|
"name": "charset",
|
|
4989
5297
|
"optional": true,
|
|
@@ -5000,7 +5308,7 @@
|
|
|
5000
5308
|
"immutable": true,
|
|
5001
5309
|
"locationInModule": {
|
|
5002
5310
|
"filename": "src/esbuild-types.ts",
|
|
5003
|
-
"line":
|
|
5311
|
+
"line": 69
|
|
5004
5312
|
},
|
|
5005
5313
|
"name": "color",
|
|
5006
5314
|
"optional": true,
|
|
@@ -5017,7 +5325,7 @@
|
|
|
5017
5325
|
"immutable": true,
|
|
5018
5326
|
"locationInModule": {
|
|
5019
5327
|
"filename": "src/esbuild-types.ts",
|
|
5020
|
-
"line":
|
|
5328
|
+
"line": 62
|
|
5021
5329
|
},
|
|
5022
5330
|
"name": "define",
|
|
5023
5331
|
"optional": true,
|
|
@@ -5039,7 +5347,7 @@
|
|
|
5039
5347
|
"immutable": true,
|
|
5040
5348
|
"locationInModule": {
|
|
5041
5349
|
"filename": "src/esbuild-types.ts",
|
|
5042
|
-
"line":
|
|
5350
|
+
"line": 38
|
|
5043
5351
|
},
|
|
5044
5352
|
"name": "drop",
|
|
5045
5353
|
"optional": true,
|
|
@@ -5060,7 +5368,7 @@
|
|
|
5060
5368
|
"immutable": true,
|
|
5061
5369
|
"locationInModule": {
|
|
5062
5370
|
"filename": "src/esbuild-types.ts",
|
|
5063
|
-
"line":
|
|
5371
|
+
"line": 246
|
|
5064
5372
|
},
|
|
5065
5373
|
"name": "footer",
|
|
5066
5374
|
"optional": true,
|
|
@@ -5111,7 +5419,7 @@
|
|
|
5111
5419
|
"immutable": true,
|
|
5112
5420
|
"locationInModule": {
|
|
5113
5421
|
"filename": "src/esbuild-types.ts",
|
|
5114
|
-
"line":
|
|
5422
|
+
"line": 52
|
|
5115
5423
|
},
|
|
5116
5424
|
"name": "ignoreAnnotations",
|
|
5117
5425
|
"optional": true,
|
|
@@ -5128,7 +5436,7 @@
|
|
|
5128
5436
|
"immutable": true,
|
|
5129
5437
|
"locationInModule": {
|
|
5130
5438
|
"filename": "src/esbuild-types.ts",
|
|
5131
|
-
"line":
|
|
5439
|
+
"line": 55
|
|
5132
5440
|
},
|
|
5133
5441
|
"name": "jsx",
|
|
5134
5442
|
"optional": true,
|
|
@@ -5145,7 +5453,7 @@
|
|
|
5145
5453
|
"immutable": true,
|
|
5146
5454
|
"locationInModule": {
|
|
5147
5455
|
"filename": "src/esbuild-types.ts",
|
|
5148
|
-
"line":
|
|
5456
|
+
"line": 57
|
|
5149
5457
|
},
|
|
5150
5458
|
"name": "jsxFactory",
|
|
5151
5459
|
"optional": true,
|
|
@@ -5162,7 +5470,7 @@
|
|
|
5162
5470
|
"immutable": true,
|
|
5163
5471
|
"locationInModule": {
|
|
5164
5472
|
"filename": "src/esbuild-types.ts",
|
|
5165
|
-
"line":
|
|
5473
|
+
"line": 59
|
|
5166
5474
|
},
|
|
5167
5475
|
"name": "jsxFragment",
|
|
5168
5476
|
"optional": true,
|
|
@@ -5179,7 +5487,7 @@
|
|
|
5179
5487
|
"immutable": true,
|
|
5180
5488
|
"locationInModule": {
|
|
5181
5489
|
"filename": "src/esbuild-types.ts",
|
|
5182
|
-
"line":
|
|
5490
|
+
"line": 66
|
|
5183
5491
|
},
|
|
5184
5492
|
"name": "keepNames",
|
|
5185
5493
|
"optional": true,
|
|
@@ -5212,7 +5520,7 @@
|
|
|
5212
5520
|
"immutable": true,
|
|
5213
5521
|
"locationInModule": {
|
|
5214
5522
|
"filename": "src/esbuild-types.ts",
|
|
5215
|
-
"line":
|
|
5523
|
+
"line": 244
|
|
5216
5524
|
},
|
|
5217
5525
|
"name": "loader",
|
|
5218
5526
|
"optional": true,
|
|
@@ -5229,7 +5537,7 @@
|
|
|
5229
5537
|
"immutable": true,
|
|
5230
5538
|
"locationInModule": {
|
|
5231
5539
|
"filename": "src/esbuild-types.ts",
|
|
5232
|
-
"line":
|
|
5540
|
+
"line": 71
|
|
5233
5541
|
},
|
|
5234
5542
|
"name": "logLevel",
|
|
5235
5543
|
"optional": true,
|
|
@@ -5246,7 +5554,7 @@
|
|
|
5246
5554
|
"immutable": true,
|
|
5247
5555
|
"locationInModule": {
|
|
5248
5556
|
"filename": "src/esbuild-types.ts",
|
|
5249
|
-
"line":
|
|
5557
|
+
"line": 73
|
|
5250
5558
|
},
|
|
5251
5559
|
"name": "logLimit",
|
|
5252
5560
|
"optional": true,
|
|
@@ -5254,6 +5562,28 @@
|
|
|
5254
5562
|
"primitive": "number"
|
|
5255
5563
|
}
|
|
5256
5564
|
},
|
|
5565
|
+
{
|
|
5566
|
+
"abstract": true,
|
|
5567
|
+
"docs": {
|
|
5568
|
+
"stability": "stable",
|
|
5569
|
+
"summary": "Documentation: https://esbuild.github.io/api/#log-override."
|
|
5570
|
+
},
|
|
5571
|
+
"immutable": true,
|
|
5572
|
+
"locationInModule": {
|
|
5573
|
+
"filename": "src/esbuild-types.ts",
|
|
5574
|
+
"line": 75
|
|
5575
|
+
},
|
|
5576
|
+
"name": "logOverride",
|
|
5577
|
+
"optional": true,
|
|
5578
|
+
"type": {
|
|
5579
|
+
"collection": {
|
|
5580
|
+
"elementtype": {
|
|
5581
|
+
"primitive": "string"
|
|
5582
|
+
},
|
|
5583
|
+
"kind": "map"
|
|
5584
|
+
}
|
|
5585
|
+
}
|
|
5586
|
+
},
|
|
5257
5587
|
{
|
|
5258
5588
|
"abstract": true,
|
|
5259
5589
|
"docs": {
|
|
@@ -5263,7 +5593,7 @@
|
|
|
5263
5593
|
"immutable": true,
|
|
5264
5594
|
"locationInModule": {
|
|
5265
5595
|
"filename": "src/esbuild-types.ts",
|
|
5266
|
-
"line":
|
|
5596
|
+
"line": 36
|
|
5267
5597
|
},
|
|
5268
5598
|
"name": "mangleCache",
|
|
5269
5599
|
"optional": true,
|
|
@@ -5294,7 +5624,7 @@
|
|
|
5294
5624
|
"immutable": true,
|
|
5295
5625
|
"locationInModule": {
|
|
5296
5626
|
"filename": "src/esbuild-types.ts",
|
|
5297
|
-
"line":
|
|
5627
|
+
"line": 30
|
|
5298
5628
|
},
|
|
5299
5629
|
"name": "mangleProps",
|
|
5300
5630
|
"optional": true,
|
|
@@ -5311,7 +5641,7 @@
|
|
|
5311
5641
|
"immutable": true,
|
|
5312
5642
|
"locationInModule": {
|
|
5313
5643
|
"filename": "src/esbuild-types.ts",
|
|
5314
|
-
"line":
|
|
5644
|
+
"line": 34
|
|
5315
5645
|
},
|
|
5316
5646
|
"name": "mangleQuoted",
|
|
5317
5647
|
"optional": true,
|
|
@@ -5328,7 +5658,7 @@
|
|
|
5328
5658
|
"immutable": true,
|
|
5329
5659
|
"locationInModule": {
|
|
5330
5660
|
"filename": "src/esbuild-types.ts",
|
|
5331
|
-
"line":
|
|
5661
|
+
"line": 40
|
|
5332
5662
|
},
|
|
5333
5663
|
"name": "minify",
|
|
5334
5664
|
"optional": true,
|
|
@@ -5345,7 +5675,7 @@
|
|
|
5345
5675
|
"immutable": true,
|
|
5346
5676
|
"locationInModule": {
|
|
5347
5677
|
"filename": "src/esbuild-types.ts",
|
|
5348
|
-
"line":
|
|
5678
|
+
"line": 44
|
|
5349
5679
|
},
|
|
5350
5680
|
"name": "minifyIdentifiers",
|
|
5351
5681
|
"optional": true,
|
|
@@ -5362,7 +5692,7 @@
|
|
|
5362
5692
|
"immutable": true,
|
|
5363
5693
|
"locationInModule": {
|
|
5364
5694
|
"filename": "src/esbuild-types.ts",
|
|
5365
|
-
"line":
|
|
5695
|
+
"line": 46
|
|
5366
5696
|
},
|
|
5367
5697
|
"name": "minifySyntax",
|
|
5368
5698
|
"optional": true,
|
|
@@ -5379,7 +5709,7 @@
|
|
|
5379
5709
|
"immutable": true,
|
|
5380
5710
|
"locationInModule": {
|
|
5381
5711
|
"filename": "src/esbuild-types.ts",
|
|
5382
|
-
"line":
|
|
5712
|
+
"line": 42
|
|
5383
5713
|
},
|
|
5384
5714
|
"name": "minifyWhitespace",
|
|
5385
5715
|
"optional": true,
|
|
@@ -5396,7 +5726,7 @@
|
|
|
5396
5726
|
"immutable": true,
|
|
5397
5727
|
"locationInModule": {
|
|
5398
5728
|
"filename": "src/esbuild-types.ts",
|
|
5399
|
-
"line":
|
|
5729
|
+
"line": 64
|
|
5400
5730
|
},
|
|
5401
5731
|
"name": "pure",
|
|
5402
5732
|
"optional": true,
|
|
@@ -5418,7 +5748,7 @@
|
|
|
5418
5748
|
"immutable": true,
|
|
5419
5749
|
"locationInModule": {
|
|
5420
5750
|
"filename": "src/esbuild-types.ts",
|
|
5421
|
-
"line":
|
|
5751
|
+
"line": 32
|
|
5422
5752
|
},
|
|
5423
5753
|
"name": "reserveProps",
|
|
5424
5754
|
"optional": true,
|
|
@@ -5434,7 +5764,7 @@
|
|
|
5434
5764
|
"immutable": true,
|
|
5435
5765
|
"locationInModule": {
|
|
5436
5766
|
"filename": "src/esbuild-types.ts",
|
|
5437
|
-
"line":
|
|
5767
|
+
"line": 243
|
|
5438
5768
|
},
|
|
5439
5769
|
"name": "sourcefile",
|
|
5440
5770
|
"optional": true,
|
|
@@ -5502,6 +5832,28 @@
|
|
|
5502
5832
|
"primitive": "boolean"
|
|
5503
5833
|
}
|
|
5504
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
|
+
},
|
|
5505
5857
|
{
|
|
5506
5858
|
"abstract": true,
|
|
5507
5859
|
"docs": {
|
|
@@ -5542,7 +5894,7 @@
|
|
|
5542
5894
|
"immutable": true,
|
|
5543
5895
|
"locationInModule": {
|
|
5544
5896
|
"filename": "src/esbuild-types.ts",
|
|
5545
|
-
"line":
|
|
5897
|
+
"line": 50
|
|
5546
5898
|
},
|
|
5547
5899
|
"name": "treeShaking",
|
|
5548
5900
|
"optional": true,
|
|
@@ -5558,7 +5910,7 @@
|
|
|
5558
5910
|
"immutable": true,
|
|
5559
5911
|
"locationInModule": {
|
|
5560
5912
|
"filename": "src/esbuild-types.ts",
|
|
5561
|
-
"line":
|
|
5913
|
+
"line": 241
|
|
5562
5914
|
},
|
|
5563
5915
|
"name": "tsconfigRaw",
|
|
5564
5916
|
"optional": true,
|
|
@@ -5631,6 +5983,7 @@
|
|
|
5631
5983
|
},
|
|
5632
5984
|
"@mrgrain/cdk-esbuild.TypeScriptAsset": {
|
|
5633
5985
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5986
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
5634
5987
|
"docs": {
|
|
5635
5988
|
"remarks": "The asset can be used by other constructs.",
|
|
5636
5989
|
"stability": "stable",
|
|
@@ -5643,7 +5996,7 @@
|
|
|
5643
5996
|
},
|
|
5644
5997
|
"locationInModule": {
|
|
5645
5998
|
"filename": "src/asset.ts",
|
|
5646
|
-
"line":
|
|
5999
|
+
"line": 57
|
|
5647
6000
|
},
|
|
5648
6001
|
"parameters": [
|
|
5649
6002
|
{
|
|
@@ -5669,13 +6022,14 @@
|
|
|
5669
6022
|
"kind": "class",
|
|
5670
6023
|
"locationInModule": {
|
|
5671
6024
|
"filename": "src/asset.ts",
|
|
5672
|
-
"line":
|
|
6025
|
+
"line": 138
|
|
5673
6026
|
},
|
|
5674
6027
|
"name": "TypeScriptAsset",
|
|
5675
6028
|
"symbolId": "src/asset:TypeScriptAsset"
|
|
5676
6029
|
},
|
|
5677
6030
|
"@mrgrain/cdk-esbuild.TypeScriptCode": {
|
|
5678
6031
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
6032
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5679
6033
|
"docs": {
|
|
5680
6034
|
"stability": "stable",
|
|
5681
6035
|
"summary": "Represents the deployed TypeScript Code."
|
|
@@ -5687,14 +6041,14 @@
|
|
|
5687
6041
|
},
|
|
5688
6042
|
"locationInModule": {
|
|
5689
6043
|
"filename": "src/code.ts",
|
|
5690
|
-
"line":
|
|
6044
|
+
"line": 202
|
|
5691
6045
|
},
|
|
5692
6046
|
"parameters": [
|
|
5693
6047
|
{
|
|
5694
6048
|
"docs": {
|
|
5695
|
-
"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'}`",
|
|
5696
6050
|
"stability": "stable",
|
|
5697
|
-
"summary": "A
|
|
6051
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
5698
6052
|
},
|
|
5699
6053
|
"name": "entryPoints",
|
|
5700
6054
|
"type": {
|
|
@@ -5740,7 +6094,7 @@
|
|
|
5740
6094
|
"kind": "class",
|
|
5741
6095
|
"locationInModule": {
|
|
5742
6096
|
"filename": "src/code.ts",
|
|
5743
|
-
"line":
|
|
6097
|
+
"line": 193
|
|
5744
6098
|
},
|
|
5745
6099
|
"methods": [
|
|
5746
6100
|
{
|
|
@@ -5749,9 +6103,10 @@
|
|
|
5749
6103
|
},
|
|
5750
6104
|
"locationInModule": {
|
|
5751
6105
|
"filename": "src/code.ts",
|
|
5752
|
-
"line":
|
|
6106
|
+
"line": 194
|
|
5753
6107
|
},
|
|
5754
|
-
"name": "
|
|
6108
|
+
"name": "getAsset",
|
|
6109
|
+
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5755
6110
|
"parameters": [
|
|
5756
6111
|
{
|
|
5757
6112
|
"name": "scope",
|
|
@@ -5760,110 +6115,15 @@
|
|
|
5760
6115
|
}
|
|
5761
6116
|
}
|
|
5762
6117
|
],
|
|
6118
|
+
"protected": true,
|
|
5763
6119
|
"returns": {
|
|
5764
6120
|
"type": {
|
|
5765
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
6121
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
5766
6122
|
}
|
|
5767
6123
|
}
|
|
5768
|
-
},
|
|
5769
|
-
{
|
|
5770
|
-
"docs": {
|
|
5771
|
-
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
5772
|
-
"stability": "stable",
|
|
5773
|
-
"summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
|
|
5774
|
-
},
|
|
5775
|
-
"locationInModule": {
|
|
5776
|
-
"filename": "src/code.ts",
|
|
5777
|
-
"line": 106
|
|
5778
|
-
},
|
|
5779
|
-
"name": "bindToResource",
|
|
5780
|
-
"parameters": [
|
|
5781
|
-
{
|
|
5782
|
-
"name": "resource",
|
|
5783
|
-
"type": {
|
|
5784
|
-
"fqn": "aws-cdk-lib.CfnResource"
|
|
5785
|
-
}
|
|
5786
|
-
},
|
|
5787
|
-
{
|
|
5788
|
-
"name": "options",
|
|
5789
|
-
"optional": true,
|
|
5790
|
-
"type": {
|
|
5791
|
-
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
5792
|
-
}
|
|
5793
|
-
}
|
|
5794
|
-
]
|
|
5795
6124
|
}
|
|
5796
6125
|
],
|
|
5797
6126
|
"name": "TypeScriptCode",
|
|
5798
|
-
"properties": [
|
|
5799
|
-
{
|
|
5800
|
-
"docs": {
|
|
5801
|
-
"stability": "stable"
|
|
5802
|
-
},
|
|
5803
|
-
"immutable": true,
|
|
5804
|
-
"locationInModule": {
|
|
5805
|
-
"filename": "src/code.ts",
|
|
5806
|
-
"line": 154
|
|
5807
|
-
},
|
|
5808
|
-
"name": "assetClass",
|
|
5809
|
-
"protected": true,
|
|
5810
|
-
"type": {
|
|
5811
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
5812
|
-
}
|
|
5813
|
-
},
|
|
5814
|
-
{
|
|
5815
|
-
"docs": {
|
|
5816
|
-
"stability": "stable"
|
|
5817
|
-
},
|
|
5818
|
-
"locationInModule": {
|
|
5819
|
-
"filename": "src/code.ts",
|
|
5820
|
-
"line": 42
|
|
5821
|
-
},
|
|
5822
|
-
"name": "asset",
|
|
5823
|
-
"protected": true,
|
|
5824
|
-
"type": {
|
|
5825
|
-
"union": {
|
|
5826
|
-
"types": [
|
|
5827
|
-
{
|
|
5828
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
5829
|
-
},
|
|
5830
|
-
{
|
|
5831
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
5832
|
-
}
|
|
5833
|
-
]
|
|
5834
|
-
}
|
|
5835
|
-
}
|
|
5836
|
-
},
|
|
5837
|
-
{
|
|
5838
|
-
"docs": {
|
|
5839
|
-
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
5840
|
-
"stability": "deprecated",
|
|
5841
|
-
"summary": "Determines whether this Code is inline code or not."
|
|
5842
|
-
},
|
|
5843
|
-
"locationInModule": {
|
|
5844
|
-
"filename": "src/code.ts",
|
|
5845
|
-
"line": 49
|
|
5846
|
-
},
|
|
5847
|
-
"name": "isInline",
|
|
5848
|
-
"type": {
|
|
5849
|
-
"primitive": "boolean"
|
|
5850
|
-
}
|
|
5851
|
-
},
|
|
5852
|
-
{
|
|
5853
|
-
"docs": {
|
|
5854
|
-
"stability": "stable"
|
|
5855
|
-
},
|
|
5856
|
-
"locationInModule": {
|
|
5857
|
-
"filename": "src/code.ts",
|
|
5858
|
-
"line": 40
|
|
5859
|
-
},
|
|
5860
|
-
"name": "props",
|
|
5861
|
-
"protected": true,
|
|
5862
|
-
"type": {
|
|
5863
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
5864
|
-
}
|
|
5865
|
-
}
|
|
5866
|
-
],
|
|
5867
6127
|
"symbolId": "src/code:TypeScriptCode"
|
|
5868
6128
|
},
|
|
5869
6129
|
"@mrgrain/cdk-esbuild.TypeScriptCodeProps": {
|
|
@@ -5879,7 +6139,7 @@
|
|
|
5879
6139
|
"kind": "interface",
|
|
5880
6140
|
"locationInModule": {
|
|
5881
6141
|
"filename": "src/code.ts",
|
|
5882
|
-
"line":
|
|
6142
|
+
"line": 20
|
|
5883
6143
|
},
|
|
5884
6144
|
"name": "TypeScriptCodeProps",
|
|
5885
6145
|
"properties": [
|
|
@@ -5916,10 +6176,15 @@
|
|
|
5916
6176
|
},
|
|
5917
6177
|
"locationInModule": {
|
|
5918
6178
|
"filename": "src/source.ts",
|
|
5919
|
-
"line":
|
|
6179
|
+
"line": 154
|
|
5920
6180
|
},
|
|
5921
6181
|
"parameters": [
|
|
5922
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
|
+
},
|
|
5923
6188
|
"name": "entryPoints",
|
|
5924
6189
|
"type": {
|
|
5925
6190
|
"union": {
|
|
@@ -5948,6 +6213,11 @@
|
|
|
5948
6213
|
}
|
|
5949
6214
|
},
|
|
5950
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
|
+
},
|
|
5951
6221
|
"name": "props",
|
|
5952
6222
|
"optional": true,
|
|
5953
6223
|
"type": {
|
|
@@ -5962,7 +6232,7 @@
|
|
|
5962
6232
|
"kind": "class",
|
|
5963
6233
|
"locationInModule": {
|
|
5964
6234
|
"filename": "src/source.ts",
|
|
5965
|
-
"line":
|
|
6235
|
+
"line": 148
|
|
5966
6236
|
},
|
|
5967
6237
|
"methods": [
|
|
5968
6238
|
{
|
|
@@ -5972,7 +6242,7 @@
|
|
|
5972
6242
|
},
|
|
5973
6243
|
"locationInModule": {
|
|
5974
6244
|
"filename": "src/source.ts",
|
|
5975
|
-
"line":
|
|
6245
|
+
"line": 73
|
|
5976
6246
|
},
|
|
5977
6247
|
"name": "bind",
|
|
5978
6248
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -6029,7 +6299,7 @@
|
|
|
6029
6299
|
},
|
|
6030
6300
|
"locationInModule": {
|
|
6031
6301
|
"filename": "src/source.ts",
|
|
6032
|
-
"line":
|
|
6302
|
+
"line": 152
|
|
6033
6303
|
},
|
|
6034
6304
|
"name": "assetClass",
|
|
6035
6305
|
"type": {
|
|
@@ -6092,6 +6362,6 @@
|
|
|
6092
6362
|
"symbolId": "src/source:TypeScriptSourceProps"
|
|
6093
6363
|
}
|
|
6094
6364
|
},
|
|
6095
|
-
"version": "3.
|
|
6096
|
-
"fingerprint": "
|
|
6365
|
+
"version": "3.7.0",
|
|
6366
|
+
"fingerprint": "ueoh5zvfDjmtYia2303pLrEDhzdxb/gouLZBYlY14CE="
|
|
6097
6367
|
}
|