@mrgrain/cdk-esbuild 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -0
- package/.jsii +508 -304
- package/.projenrc.ts +19 -24
- package/API.md +345 -166
- package/CHANGELOG.md +380 -0
- package/README.md +10 -0
- package/lib/asset.d.ts +6 -5
- package/lib/asset.js +17 -13
- package/lib/bundler.d.ts +8 -1
- package/lib/bundler.js +13 -12
- package/lib/code.d.ts +37 -23
- package/lib/code.js +49 -20
- package/lib/esbuild-types.d.ts +5 -2
- package/lib/esbuild-types.js +1 -1
- package/lib/esbuild-wrapper.d.ts +0 -1
- package/lib/formatMessages.d.ts +0 -1
- package/lib/index.d.ts +4 -5
- package/lib/index.js +3 -1
- package/lib/inline-code.d.ts +0 -1
- package/lib/inline-code.js +4 -4
- package/lib/source.d.ts +0 -1
- package/lib/source.js +2 -2
- package/package.json +12 -16
- package/lib/asset.d.ts.map +0 -1
- package/lib/bundler.d.ts.map +0 -1
- package/lib/code.d.ts.map +0 -1
- package/lib/esbuild-types.d.ts.map +0 -1
- package/lib/esbuild-wrapper.d.ts.map +0 -1
- package/lib/formatMessages.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/inline-code.d.ts.map +0 -1
- package/lib/source.d.ts.map +0 -1
- package/projenrc/TypeScriptSourceFile.ts +0 -50
- package/releasetag.txt +0 -1
- package/version.txt +0 -1
package/.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) | [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#### 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### 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"
|
|
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": {
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -3434,7 +3434,7 @@
|
|
|
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,
|
|
@@ -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": 88
|
|
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,118 @@
|
|
|
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
|
+
"stability": "experimental",
|
|
4200
|
+
"summary": "Represents the a generic Esbuild Asset."
|
|
4201
|
+
},
|
|
4202
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
4203
|
+
"initializer": {
|
|
4204
|
+
"docs": {
|
|
4205
|
+
"stability": "stable"
|
|
4206
|
+
},
|
|
4207
|
+
"locationInModule": {
|
|
4208
|
+
"filename": "src/asset.ts",
|
|
4209
|
+
"line": 44
|
|
4210
|
+
},
|
|
4211
|
+
"parameters": [
|
|
4212
|
+
{
|
|
4213
|
+
"name": "scope",
|
|
4214
|
+
"type": {
|
|
4215
|
+
"fqn": "constructs.Construct"
|
|
4216
|
+
}
|
|
4217
|
+
},
|
|
4218
|
+
{
|
|
4219
|
+
"name": "id",
|
|
4220
|
+
"type": {
|
|
4221
|
+
"primitive": "string"
|
|
4222
|
+
}
|
|
4223
|
+
},
|
|
4224
|
+
{
|
|
4225
|
+
"name": "props",
|
|
4226
|
+
"type": {
|
|
4227
|
+
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4230
|
+
]
|
|
4231
|
+
},
|
|
4232
|
+
"kind": "class",
|
|
4233
|
+
"locationInModule": {
|
|
4234
|
+
"filename": "src/asset.ts",
|
|
4235
|
+
"line": 40
|
|
4236
|
+
},
|
|
4237
|
+
"name": "EsbuildAsset",
|
|
4238
|
+
"symbolId": "src/asset:EsbuildAsset"
|
|
4115
4239
|
},
|
|
4116
4240
|
"@mrgrain/cdk-esbuild.EsbuildBundler": {
|
|
4117
4241
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
@@ -4127,7 +4251,7 @@
|
|
|
4127
4251
|
},
|
|
4128
4252
|
"locationInModule": {
|
|
4129
4253
|
"filename": "src/bundler.ts",
|
|
4130
|
-
"line":
|
|
4254
|
+
"line": 115
|
|
4131
4255
|
},
|
|
4132
4256
|
"parameters": [
|
|
4133
4257
|
{
|
|
@@ -4178,7 +4302,7 @@
|
|
|
4178
4302
|
"kind": "class",
|
|
4179
4303
|
"locationInModule": {
|
|
4180
4304
|
"filename": "src/bundler.ts",
|
|
4181
|
-
"line":
|
|
4305
|
+
"line": 97
|
|
4182
4306
|
},
|
|
4183
4307
|
"name": "EsbuildBundler",
|
|
4184
4308
|
"properties": [
|
|
@@ -4191,7 +4315,7 @@
|
|
|
4191
4315
|
"immutable": true,
|
|
4192
4316
|
"locationInModule": {
|
|
4193
4317
|
"filename": "src/bundler.ts",
|
|
4194
|
-
"line":
|
|
4318
|
+
"line": 122
|
|
4195
4319
|
},
|
|
4196
4320
|
"name": "entryPoints",
|
|
4197
4321
|
"type": {
|
|
@@ -4228,7 +4352,7 @@
|
|
|
4228
4352
|
"immutable": true,
|
|
4229
4353
|
"locationInModule": {
|
|
4230
4354
|
"filename": "src/bundler.ts",
|
|
4231
|
-
"line":
|
|
4355
|
+
"line": 110
|
|
4232
4356
|
},
|
|
4233
4357
|
"name": "image",
|
|
4234
4358
|
"type": {
|
|
@@ -4243,7 +4367,7 @@
|
|
|
4243
4367
|
"immutable": true,
|
|
4244
4368
|
"locationInModule": {
|
|
4245
4369
|
"filename": "src/bundler.ts",
|
|
4246
|
-
"line":
|
|
4370
|
+
"line": 103
|
|
4247
4371
|
},
|
|
4248
4372
|
"name": "local",
|
|
4249
4373
|
"type": {
|
|
@@ -4258,7 +4382,7 @@
|
|
|
4258
4382
|
"immutable": true,
|
|
4259
4383
|
"locationInModule": {
|
|
4260
4384
|
"filename": "src/bundler.ts",
|
|
4261
|
-
"line":
|
|
4385
|
+
"line": 129
|
|
4262
4386
|
},
|
|
4263
4387
|
"name": "props",
|
|
4264
4388
|
"type": {
|
|
@@ -4268,6 +4392,248 @@
|
|
|
4268
4392
|
],
|
|
4269
4393
|
"symbolId": "src/bundler:EsbuildBundler"
|
|
4270
4394
|
},
|
|
4395
|
+
"@mrgrain/cdk-esbuild.EsbuildCode": {
|
|
4396
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
4397
|
+
"base": "aws-cdk-lib.aws_lambda.Code",
|
|
4398
|
+
"docs": {
|
|
4399
|
+
"stability": "experimental",
|
|
4400
|
+
"summary": "Represents the a generic Esbuild Code bundle."
|
|
4401
|
+
},
|
|
4402
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4403
|
+
"initializer": {
|
|
4404
|
+
"docs": {
|
|
4405
|
+
"stability": "experimental"
|
|
4406
|
+
},
|
|
4407
|
+
"locationInModule": {
|
|
4408
|
+
"filename": "src/code.ts",
|
|
4409
|
+
"line": 49
|
|
4410
|
+
},
|
|
4411
|
+
"parameters": [
|
|
4412
|
+
{
|
|
4413
|
+
"docs": {
|
|
4414
|
+
"remarks": "E.g. `src/index.ts`.",
|
|
4415
|
+
"stability": "stable",
|
|
4416
|
+
"summary": "A relative path or list or map of relative paths to the entry points of your code from the root of the project."
|
|
4417
|
+
},
|
|
4418
|
+
"name": "entryPoints",
|
|
4419
|
+
"type": {
|
|
4420
|
+
"union": {
|
|
4421
|
+
"types": [
|
|
4422
|
+
{
|
|
4423
|
+
"primitive": "string"
|
|
4424
|
+
},
|
|
4425
|
+
{
|
|
4426
|
+
"collection": {
|
|
4427
|
+
"elementtype": {
|
|
4428
|
+
"primitive": "string"
|
|
4429
|
+
},
|
|
4430
|
+
"kind": "array"
|
|
4431
|
+
}
|
|
4432
|
+
},
|
|
4433
|
+
{
|
|
4434
|
+
"collection": {
|
|
4435
|
+
"elementtype": {
|
|
4436
|
+
"primitive": "string"
|
|
4437
|
+
},
|
|
4438
|
+
"kind": "map"
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
]
|
|
4442
|
+
}
|
|
4443
|
+
}
|
|
4444
|
+
},
|
|
4445
|
+
{
|
|
4446
|
+
"docs": {
|
|
4447
|
+
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
4448
|
+
"stability": "stable",
|
|
4449
|
+
"summary": "Props to change the behavior of the bundler."
|
|
4450
|
+
},
|
|
4451
|
+
"name": "props",
|
|
4452
|
+
"type": {
|
|
4453
|
+
"union": {
|
|
4454
|
+
"types": [
|
|
4455
|
+
{
|
|
4456
|
+
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
4457
|
+
},
|
|
4458
|
+
{
|
|
4459
|
+
"fqn": "@mrgrain/cdk-esbuild.TypeScriptCodeProps"
|
|
4460
|
+
}
|
|
4461
|
+
]
|
|
4462
|
+
}
|
|
4463
|
+
}
|
|
4464
|
+
}
|
|
4465
|
+
]
|
|
4466
|
+
},
|
|
4467
|
+
"kind": "class",
|
|
4468
|
+
"locationInModule": {
|
|
4469
|
+
"filename": "src/code.ts",
|
|
4470
|
+
"line": 27
|
|
4471
|
+
},
|
|
4472
|
+
"methods": [
|
|
4473
|
+
{
|
|
4474
|
+
"docs": {
|
|
4475
|
+
"stability": "experimental",
|
|
4476
|
+
"summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
|
|
4477
|
+
},
|
|
4478
|
+
"locationInModule": {
|
|
4479
|
+
"filename": "src/code.ts",
|
|
4480
|
+
"line": 89
|
|
4481
|
+
},
|
|
4482
|
+
"name": "bind",
|
|
4483
|
+
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
4484
|
+
"parameters": [
|
|
4485
|
+
{
|
|
4486
|
+
"name": "scope",
|
|
4487
|
+
"type": {
|
|
4488
|
+
"fqn": "constructs.Construct"
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
],
|
|
4492
|
+
"returns": {
|
|
4493
|
+
"type": {
|
|
4494
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
},
|
|
4498
|
+
{
|
|
4499
|
+
"docs": {
|
|
4500
|
+
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
4501
|
+
"stability": "stable",
|
|
4502
|
+
"summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
|
|
4503
|
+
},
|
|
4504
|
+
"locationInModule": {
|
|
4505
|
+
"filename": "src/code.ts",
|
|
4506
|
+
"line": 117
|
|
4507
|
+
},
|
|
4508
|
+
"name": "bindToResource",
|
|
4509
|
+
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
4510
|
+
"parameters": [
|
|
4511
|
+
{
|
|
4512
|
+
"name": "resource",
|
|
4513
|
+
"type": {
|
|
4514
|
+
"fqn": "aws-cdk-lib.CfnResource"
|
|
4515
|
+
}
|
|
4516
|
+
},
|
|
4517
|
+
{
|
|
4518
|
+
"name": "options",
|
|
4519
|
+
"optional": true,
|
|
4520
|
+
"type": {
|
|
4521
|
+
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
4522
|
+
}
|
|
4523
|
+
}
|
|
4524
|
+
]
|
|
4525
|
+
},
|
|
4526
|
+
{
|
|
4527
|
+
"docs": {
|
|
4528
|
+
"stability": "experimental"
|
|
4529
|
+
},
|
|
4530
|
+
"locationInModule": {
|
|
4531
|
+
"filename": "src/code.ts",
|
|
4532
|
+
"line": 30
|
|
4533
|
+
},
|
|
4534
|
+
"name": "getAsset",
|
|
4535
|
+
"parameters": [
|
|
4536
|
+
{
|
|
4537
|
+
"name": "scope",
|
|
4538
|
+
"type": {
|
|
4539
|
+
"fqn": "constructs.Construct"
|
|
4540
|
+
}
|
|
4541
|
+
}
|
|
4542
|
+
],
|
|
4543
|
+
"protected": true,
|
|
4544
|
+
"returns": {
|
|
4545
|
+
"type": {
|
|
4546
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4547
|
+
}
|
|
4548
|
+
}
|
|
4549
|
+
}
|
|
4550
|
+
],
|
|
4551
|
+
"name": "EsbuildCode",
|
|
4552
|
+
"properties": [
|
|
4553
|
+
{
|
|
4554
|
+
"docs": {
|
|
4555
|
+
"remarks": "E.g. `src/index.ts`.",
|
|
4556
|
+
"stability": "stable",
|
|
4557
|
+
"summary": "A relative path or list or map of relative paths to the entry points of your code from the root of the project."
|
|
4558
|
+
},
|
|
4559
|
+
"immutable": true,
|
|
4560
|
+
"locationInModule": {
|
|
4561
|
+
"filename": "src/code.ts",
|
|
4562
|
+
"line": 56
|
|
4563
|
+
},
|
|
4564
|
+
"name": "entryPoints",
|
|
4565
|
+
"type": {
|
|
4566
|
+
"union": {
|
|
4567
|
+
"types": [
|
|
4568
|
+
{
|
|
4569
|
+
"primitive": "string"
|
|
4570
|
+
},
|
|
4571
|
+
{
|
|
4572
|
+
"collection": {
|
|
4573
|
+
"elementtype": {
|
|
4574
|
+
"primitive": "string"
|
|
4575
|
+
},
|
|
4576
|
+
"kind": "array"
|
|
4577
|
+
}
|
|
4578
|
+
},
|
|
4579
|
+
{
|
|
4580
|
+
"collection": {
|
|
4581
|
+
"elementtype": {
|
|
4582
|
+
"primitive": "string"
|
|
4583
|
+
},
|
|
4584
|
+
"kind": "map"
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4587
|
+
]
|
|
4588
|
+
}
|
|
4589
|
+
}
|
|
4590
|
+
},
|
|
4591
|
+
{
|
|
4592
|
+
"docs": {
|
|
4593
|
+
"stability": "experimental"
|
|
4594
|
+
},
|
|
4595
|
+
"locationInModule": {
|
|
4596
|
+
"filename": "src/code.ts",
|
|
4597
|
+
"line": 40
|
|
4598
|
+
},
|
|
4599
|
+
"name": "asset",
|
|
4600
|
+
"protected": true,
|
|
4601
|
+
"type": {
|
|
4602
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4603
|
+
}
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
"docs": {
|
|
4607
|
+
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
4608
|
+
"stability": "deprecated",
|
|
4609
|
+
"summary": "Determines whether this Code is inline code or not."
|
|
4610
|
+
},
|
|
4611
|
+
"locationInModule": {
|
|
4612
|
+
"filename": "src/code.ts",
|
|
4613
|
+
"line": 47
|
|
4614
|
+
},
|
|
4615
|
+
"name": "isInline",
|
|
4616
|
+
"type": {
|
|
4617
|
+
"primitive": "boolean"
|
|
4618
|
+
}
|
|
4619
|
+
},
|
|
4620
|
+
{
|
|
4621
|
+
"docs": {
|
|
4622
|
+
"stability": "experimental"
|
|
4623
|
+
},
|
|
4624
|
+
"locationInModule": {
|
|
4625
|
+
"filename": "src/code.ts",
|
|
4626
|
+
"line": 38
|
|
4627
|
+
},
|
|
4628
|
+
"name": "props",
|
|
4629
|
+
"protected": true,
|
|
4630
|
+
"type": {
|
|
4631
|
+
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
4632
|
+
}
|
|
4633
|
+
}
|
|
4634
|
+
],
|
|
4635
|
+
"symbolId": "src/code:EsbuildCode"
|
|
4636
|
+
},
|
|
4271
4637
|
"@mrgrain/cdk-esbuild.InlineJavaScriptCode": {
|
|
4272
4638
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4273
4639
|
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
@@ -4506,6 +4872,7 @@
|
|
|
4506
4872
|
},
|
|
4507
4873
|
"@mrgrain/cdk-esbuild.JavaScriptAsset": {
|
|
4508
4874
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4875
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
4509
4876
|
"docs": {
|
|
4510
4877
|
"remarks": "The asset can be used by other constructs.",
|
|
4511
4878
|
"stability": "stable",
|
|
@@ -4518,7 +4885,7 @@
|
|
|
4518
4885
|
},
|
|
4519
4886
|
"locationInModule": {
|
|
4520
4887
|
"filename": "src/asset.ts",
|
|
4521
|
-
"line":
|
|
4888
|
+
"line": 44
|
|
4522
4889
|
},
|
|
4523
4890
|
"parameters": [
|
|
4524
4891
|
{
|
|
@@ -4544,13 +4911,14 @@
|
|
|
4544
4911
|
"kind": "class",
|
|
4545
4912
|
"locationInModule": {
|
|
4546
4913
|
"filename": "src/asset.ts",
|
|
4547
|
-
"line":
|
|
4914
|
+
"line": 99
|
|
4548
4915
|
},
|
|
4549
4916
|
"name": "JavaScriptAsset",
|
|
4550
4917
|
"symbolId": "src/asset:JavaScriptAsset"
|
|
4551
4918
|
},
|
|
4552
4919
|
"@mrgrain/cdk-esbuild.JavaScriptCode": {
|
|
4553
4920
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4921
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4554
4922
|
"docs": {
|
|
4555
4923
|
"stability": "stable",
|
|
4556
4924
|
"summary": "Represents the deployed JavaScript Code."
|
|
@@ -4562,7 +4930,7 @@
|
|
|
4562
4930
|
},
|
|
4563
4931
|
"locationInModule": {
|
|
4564
4932
|
"filename": "src/code.ts",
|
|
4565
|
-
"line":
|
|
4933
|
+
"line": 141
|
|
4566
4934
|
},
|
|
4567
4935
|
"parameters": [
|
|
4568
4936
|
{
|
|
@@ -4615,7 +4983,7 @@
|
|
|
4615
4983
|
"kind": "class",
|
|
4616
4984
|
"locationInModule": {
|
|
4617
4985
|
"filename": "src/code.ts",
|
|
4618
|
-
"line":
|
|
4986
|
+
"line": 132
|
|
4619
4987
|
},
|
|
4620
4988
|
"methods": [
|
|
4621
4989
|
{
|
|
@@ -4624,9 +4992,10 @@
|
|
|
4624
4992
|
},
|
|
4625
4993
|
"locationInModule": {
|
|
4626
4994
|
"filename": "src/code.ts",
|
|
4627
|
-
"line":
|
|
4995
|
+
"line": 133
|
|
4628
4996
|
},
|
|
4629
|
-
"name": "
|
|
4997
|
+
"name": "getAsset",
|
|
4998
|
+
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4630
4999
|
"parameters": [
|
|
4631
5000
|
{
|
|
4632
5001
|
"name": "scope",
|
|
@@ -4635,110 +5004,15 @@
|
|
|
4635
5004
|
}
|
|
4636
5005
|
}
|
|
4637
5006
|
],
|
|
5007
|
+
"protected": true,
|
|
4638
5008
|
"returns": {
|
|
4639
5009
|
"type": {
|
|
4640
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
5010
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4641
5011
|
}
|
|
4642
5012
|
}
|
|
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
5013
|
}
|
|
4671
5014
|
],
|
|
4672
5015
|
"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
5016
|
"symbolId": "src/code:JavaScriptCode"
|
|
4743
5017
|
},
|
|
4744
5018
|
"@mrgrain/cdk-esbuild.JavaScriptCodeProps": {
|
|
@@ -4754,7 +5028,7 @@
|
|
|
4754
5028
|
"kind": "interface",
|
|
4755
5029
|
"locationInModule": {
|
|
4756
5030
|
"filename": "src/code.ts",
|
|
4757
|
-
"line":
|
|
5031
|
+
"line": 19
|
|
4758
5032
|
},
|
|
4759
5033
|
"name": "JavaScriptCodeProps",
|
|
4760
5034
|
"properties": [
|
|
@@ -4976,7 +5250,7 @@
|
|
|
4976
5250
|
"kind": "interface",
|
|
4977
5251
|
"locationInModule": {
|
|
4978
5252
|
"filename": "src/esbuild-types.ts",
|
|
4979
|
-
"line":
|
|
5253
|
+
"line": 240
|
|
4980
5254
|
},
|
|
4981
5255
|
"name": "TransformOptions",
|
|
4982
5256
|
"properties": [
|
|
@@ -4988,7 +5262,7 @@
|
|
|
4988
5262
|
"immutable": true,
|
|
4989
5263
|
"locationInModule": {
|
|
4990
5264
|
"filename": "src/esbuild-types.ts",
|
|
4991
|
-
"line":
|
|
5265
|
+
"line": 245
|
|
4992
5266
|
},
|
|
4993
5267
|
"name": "banner",
|
|
4994
5268
|
"optional": true,
|
|
@@ -5005,7 +5279,7 @@
|
|
|
5005
5279
|
"immutable": true,
|
|
5006
5280
|
"locationInModule": {
|
|
5007
5281
|
"filename": "src/esbuild-types.ts",
|
|
5008
|
-
"line":
|
|
5282
|
+
"line": 48
|
|
5009
5283
|
},
|
|
5010
5284
|
"name": "charset",
|
|
5011
5285
|
"optional": true,
|
|
@@ -5022,7 +5296,7 @@
|
|
|
5022
5296
|
"immutable": true,
|
|
5023
5297
|
"locationInModule": {
|
|
5024
5298
|
"filename": "src/esbuild-types.ts",
|
|
5025
|
-
"line":
|
|
5299
|
+
"line": 69
|
|
5026
5300
|
},
|
|
5027
5301
|
"name": "color",
|
|
5028
5302
|
"optional": true,
|
|
@@ -5039,7 +5313,7 @@
|
|
|
5039
5313
|
"immutable": true,
|
|
5040
5314
|
"locationInModule": {
|
|
5041
5315
|
"filename": "src/esbuild-types.ts",
|
|
5042
|
-
"line":
|
|
5316
|
+
"line": 62
|
|
5043
5317
|
},
|
|
5044
5318
|
"name": "define",
|
|
5045
5319
|
"optional": true,
|
|
@@ -5061,7 +5335,7 @@
|
|
|
5061
5335
|
"immutable": true,
|
|
5062
5336
|
"locationInModule": {
|
|
5063
5337
|
"filename": "src/esbuild-types.ts",
|
|
5064
|
-
"line":
|
|
5338
|
+
"line": 38
|
|
5065
5339
|
},
|
|
5066
5340
|
"name": "drop",
|
|
5067
5341
|
"optional": true,
|
|
@@ -5082,7 +5356,7 @@
|
|
|
5082
5356
|
"immutable": true,
|
|
5083
5357
|
"locationInModule": {
|
|
5084
5358
|
"filename": "src/esbuild-types.ts",
|
|
5085
|
-
"line":
|
|
5359
|
+
"line": 246
|
|
5086
5360
|
},
|
|
5087
5361
|
"name": "footer",
|
|
5088
5362
|
"optional": true,
|
|
@@ -5133,7 +5407,7 @@
|
|
|
5133
5407
|
"immutable": true,
|
|
5134
5408
|
"locationInModule": {
|
|
5135
5409
|
"filename": "src/esbuild-types.ts",
|
|
5136
|
-
"line":
|
|
5410
|
+
"line": 52
|
|
5137
5411
|
},
|
|
5138
5412
|
"name": "ignoreAnnotations",
|
|
5139
5413
|
"optional": true,
|
|
@@ -5150,7 +5424,7 @@
|
|
|
5150
5424
|
"immutable": true,
|
|
5151
5425
|
"locationInModule": {
|
|
5152
5426
|
"filename": "src/esbuild-types.ts",
|
|
5153
|
-
"line":
|
|
5427
|
+
"line": 55
|
|
5154
5428
|
},
|
|
5155
5429
|
"name": "jsx",
|
|
5156
5430
|
"optional": true,
|
|
@@ -5167,7 +5441,7 @@
|
|
|
5167
5441
|
"immutable": true,
|
|
5168
5442
|
"locationInModule": {
|
|
5169
5443
|
"filename": "src/esbuild-types.ts",
|
|
5170
|
-
"line":
|
|
5444
|
+
"line": 57
|
|
5171
5445
|
},
|
|
5172
5446
|
"name": "jsxFactory",
|
|
5173
5447
|
"optional": true,
|
|
@@ -5184,7 +5458,7 @@
|
|
|
5184
5458
|
"immutable": true,
|
|
5185
5459
|
"locationInModule": {
|
|
5186
5460
|
"filename": "src/esbuild-types.ts",
|
|
5187
|
-
"line":
|
|
5461
|
+
"line": 59
|
|
5188
5462
|
},
|
|
5189
5463
|
"name": "jsxFragment",
|
|
5190
5464
|
"optional": true,
|
|
@@ -5201,7 +5475,7 @@
|
|
|
5201
5475
|
"immutable": true,
|
|
5202
5476
|
"locationInModule": {
|
|
5203
5477
|
"filename": "src/esbuild-types.ts",
|
|
5204
|
-
"line":
|
|
5478
|
+
"line": 66
|
|
5205
5479
|
},
|
|
5206
5480
|
"name": "keepNames",
|
|
5207
5481
|
"optional": true,
|
|
@@ -5234,7 +5508,7 @@
|
|
|
5234
5508
|
"immutable": true,
|
|
5235
5509
|
"locationInModule": {
|
|
5236
5510
|
"filename": "src/esbuild-types.ts",
|
|
5237
|
-
"line":
|
|
5511
|
+
"line": 244
|
|
5238
5512
|
},
|
|
5239
5513
|
"name": "loader",
|
|
5240
5514
|
"optional": true,
|
|
@@ -5251,7 +5525,7 @@
|
|
|
5251
5525
|
"immutable": true,
|
|
5252
5526
|
"locationInModule": {
|
|
5253
5527
|
"filename": "src/esbuild-types.ts",
|
|
5254
|
-
"line":
|
|
5528
|
+
"line": 71
|
|
5255
5529
|
},
|
|
5256
5530
|
"name": "logLevel",
|
|
5257
5531
|
"optional": true,
|
|
@@ -5268,7 +5542,7 @@
|
|
|
5268
5542
|
"immutable": true,
|
|
5269
5543
|
"locationInModule": {
|
|
5270
5544
|
"filename": "src/esbuild-types.ts",
|
|
5271
|
-
"line":
|
|
5545
|
+
"line": 73
|
|
5272
5546
|
},
|
|
5273
5547
|
"name": "logLimit",
|
|
5274
5548
|
"optional": true,
|
|
@@ -5285,7 +5559,7 @@
|
|
|
5285
5559
|
"immutable": true,
|
|
5286
5560
|
"locationInModule": {
|
|
5287
5561
|
"filename": "src/esbuild-types.ts",
|
|
5288
|
-
"line":
|
|
5562
|
+
"line": 75
|
|
5289
5563
|
},
|
|
5290
5564
|
"name": "logOverride",
|
|
5291
5565
|
"optional": true,
|
|
@@ -5307,7 +5581,7 @@
|
|
|
5307
5581
|
"immutable": true,
|
|
5308
5582
|
"locationInModule": {
|
|
5309
5583
|
"filename": "src/esbuild-types.ts",
|
|
5310
|
-
"line":
|
|
5584
|
+
"line": 36
|
|
5311
5585
|
},
|
|
5312
5586
|
"name": "mangleCache",
|
|
5313
5587
|
"optional": true,
|
|
@@ -5338,7 +5612,7 @@
|
|
|
5338
5612
|
"immutable": true,
|
|
5339
5613
|
"locationInModule": {
|
|
5340
5614
|
"filename": "src/esbuild-types.ts",
|
|
5341
|
-
"line":
|
|
5615
|
+
"line": 30
|
|
5342
5616
|
},
|
|
5343
5617
|
"name": "mangleProps",
|
|
5344
5618
|
"optional": true,
|
|
@@ -5355,7 +5629,7 @@
|
|
|
5355
5629
|
"immutable": true,
|
|
5356
5630
|
"locationInModule": {
|
|
5357
5631
|
"filename": "src/esbuild-types.ts",
|
|
5358
|
-
"line":
|
|
5632
|
+
"line": 34
|
|
5359
5633
|
},
|
|
5360
5634
|
"name": "mangleQuoted",
|
|
5361
5635
|
"optional": true,
|
|
@@ -5372,7 +5646,7 @@
|
|
|
5372
5646
|
"immutable": true,
|
|
5373
5647
|
"locationInModule": {
|
|
5374
5648
|
"filename": "src/esbuild-types.ts",
|
|
5375
|
-
"line":
|
|
5649
|
+
"line": 40
|
|
5376
5650
|
},
|
|
5377
5651
|
"name": "minify",
|
|
5378
5652
|
"optional": true,
|
|
@@ -5389,7 +5663,7 @@
|
|
|
5389
5663
|
"immutable": true,
|
|
5390
5664
|
"locationInModule": {
|
|
5391
5665
|
"filename": "src/esbuild-types.ts",
|
|
5392
|
-
"line":
|
|
5666
|
+
"line": 44
|
|
5393
5667
|
},
|
|
5394
5668
|
"name": "minifyIdentifiers",
|
|
5395
5669
|
"optional": true,
|
|
@@ -5406,7 +5680,7 @@
|
|
|
5406
5680
|
"immutable": true,
|
|
5407
5681
|
"locationInModule": {
|
|
5408
5682
|
"filename": "src/esbuild-types.ts",
|
|
5409
|
-
"line":
|
|
5683
|
+
"line": 46
|
|
5410
5684
|
},
|
|
5411
5685
|
"name": "minifySyntax",
|
|
5412
5686
|
"optional": true,
|
|
@@ -5423,7 +5697,7 @@
|
|
|
5423
5697
|
"immutable": true,
|
|
5424
5698
|
"locationInModule": {
|
|
5425
5699
|
"filename": "src/esbuild-types.ts",
|
|
5426
|
-
"line":
|
|
5700
|
+
"line": 42
|
|
5427
5701
|
},
|
|
5428
5702
|
"name": "minifyWhitespace",
|
|
5429
5703
|
"optional": true,
|
|
@@ -5440,7 +5714,7 @@
|
|
|
5440
5714
|
"immutable": true,
|
|
5441
5715
|
"locationInModule": {
|
|
5442
5716
|
"filename": "src/esbuild-types.ts",
|
|
5443
|
-
"line":
|
|
5717
|
+
"line": 64
|
|
5444
5718
|
},
|
|
5445
5719
|
"name": "pure",
|
|
5446
5720
|
"optional": true,
|
|
@@ -5462,7 +5736,7 @@
|
|
|
5462
5736
|
"immutable": true,
|
|
5463
5737
|
"locationInModule": {
|
|
5464
5738
|
"filename": "src/esbuild-types.ts",
|
|
5465
|
-
"line":
|
|
5739
|
+
"line": 32
|
|
5466
5740
|
},
|
|
5467
5741
|
"name": "reserveProps",
|
|
5468
5742
|
"optional": true,
|
|
@@ -5478,7 +5752,7 @@
|
|
|
5478
5752
|
"immutable": true,
|
|
5479
5753
|
"locationInModule": {
|
|
5480
5754
|
"filename": "src/esbuild-types.ts",
|
|
5481
|
-
"line":
|
|
5755
|
+
"line": 243
|
|
5482
5756
|
},
|
|
5483
5757
|
"name": "sourcefile",
|
|
5484
5758
|
"optional": true,
|
|
@@ -5546,6 +5820,28 @@
|
|
|
5546
5820
|
"primitive": "boolean"
|
|
5547
5821
|
}
|
|
5548
5822
|
},
|
|
5823
|
+
{
|
|
5824
|
+
"abstract": true,
|
|
5825
|
+
"docs": {
|
|
5826
|
+
"stability": "stable",
|
|
5827
|
+
"summary": "Documentation: https://esbuild.github.io/api/#supported."
|
|
5828
|
+
},
|
|
5829
|
+
"immutable": true,
|
|
5830
|
+
"locationInModule": {
|
|
5831
|
+
"filename": "src/esbuild-types.ts",
|
|
5832
|
+
"line": 27
|
|
5833
|
+
},
|
|
5834
|
+
"name": "supported",
|
|
5835
|
+
"optional": true,
|
|
5836
|
+
"type": {
|
|
5837
|
+
"collection": {
|
|
5838
|
+
"elementtype": {
|
|
5839
|
+
"primitive": "boolean"
|
|
5840
|
+
},
|
|
5841
|
+
"kind": "map"
|
|
5842
|
+
}
|
|
5843
|
+
}
|
|
5844
|
+
},
|
|
5549
5845
|
{
|
|
5550
5846
|
"abstract": true,
|
|
5551
5847
|
"docs": {
|
|
@@ -5586,7 +5882,7 @@
|
|
|
5586
5882
|
"immutable": true,
|
|
5587
5883
|
"locationInModule": {
|
|
5588
5884
|
"filename": "src/esbuild-types.ts",
|
|
5589
|
-
"line":
|
|
5885
|
+
"line": 50
|
|
5590
5886
|
},
|
|
5591
5887
|
"name": "treeShaking",
|
|
5592
5888
|
"optional": true,
|
|
@@ -5602,7 +5898,7 @@
|
|
|
5602
5898
|
"immutable": true,
|
|
5603
5899
|
"locationInModule": {
|
|
5604
5900
|
"filename": "src/esbuild-types.ts",
|
|
5605
|
-
"line":
|
|
5901
|
+
"line": 241
|
|
5606
5902
|
},
|
|
5607
5903
|
"name": "tsconfigRaw",
|
|
5608
5904
|
"optional": true,
|
|
@@ -5675,6 +5971,7 @@
|
|
|
5675
5971
|
},
|
|
5676
5972
|
"@mrgrain/cdk-esbuild.TypeScriptAsset": {
|
|
5677
5973
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5974
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
5678
5975
|
"docs": {
|
|
5679
5976
|
"remarks": "The asset can be used by other constructs.",
|
|
5680
5977
|
"stability": "stable",
|
|
@@ -5687,7 +5984,7 @@
|
|
|
5687
5984
|
},
|
|
5688
5985
|
"locationInModule": {
|
|
5689
5986
|
"filename": "src/asset.ts",
|
|
5690
|
-
"line":
|
|
5987
|
+
"line": 44
|
|
5691
5988
|
},
|
|
5692
5989
|
"parameters": [
|
|
5693
5990
|
{
|
|
@@ -5713,13 +6010,14 @@
|
|
|
5713
6010
|
"kind": "class",
|
|
5714
6011
|
"locationInModule": {
|
|
5715
6012
|
"filename": "src/asset.ts",
|
|
5716
|
-
"line":
|
|
6013
|
+
"line": 108
|
|
5717
6014
|
},
|
|
5718
6015
|
"name": "TypeScriptAsset",
|
|
5719
6016
|
"symbolId": "src/asset:TypeScriptAsset"
|
|
5720
6017
|
},
|
|
5721
6018
|
"@mrgrain/cdk-esbuild.TypeScriptCode": {
|
|
5722
6019
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
6020
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5723
6021
|
"docs": {
|
|
5724
6022
|
"stability": "stable",
|
|
5725
6023
|
"summary": "Represents the deployed TypeScript Code."
|
|
@@ -5731,7 +6029,7 @@
|
|
|
5731
6029
|
},
|
|
5732
6030
|
"locationInModule": {
|
|
5733
6031
|
"filename": "src/code.ts",
|
|
5734
|
-
"line":
|
|
6032
|
+
"line": 179
|
|
5735
6033
|
},
|
|
5736
6034
|
"parameters": [
|
|
5737
6035
|
{
|
|
@@ -5784,7 +6082,7 @@
|
|
|
5784
6082
|
"kind": "class",
|
|
5785
6083
|
"locationInModule": {
|
|
5786
6084
|
"filename": "src/code.ts",
|
|
5787
|
-
"line":
|
|
6085
|
+
"line": 170
|
|
5788
6086
|
},
|
|
5789
6087
|
"methods": [
|
|
5790
6088
|
{
|
|
@@ -5793,9 +6091,10 @@
|
|
|
5793
6091
|
},
|
|
5794
6092
|
"locationInModule": {
|
|
5795
6093
|
"filename": "src/code.ts",
|
|
5796
|
-
"line":
|
|
6094
|
+
"line": 171
|
|
5797
6095
|
},
|
|
5798
|
-
"name": "
|
|
6096
|
+
"name": "getAsset",
|
|
6097
|
+
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5799
6098
|
"parameters": [
|
|
5800
6099
|
{
|
|
5801
6100
|
"name": "scope",
|
|
@@ -5804,110 +6103,15 @@
|
|
|
5804
6103
|
}
|
|
5805
6104
|
}
|
|
5806
6105
|
],
|
|
6106
|
+
"protected": true,
|
|
5807
6107
|
"returns": {
|
|
5808
6108
|
"type": {
|
|
5809
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
6109
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
5810
6110
|
}
|
|
5811
6111
|
}
|
|
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
6112
|
}
|
|
5840
6113
|
],
|
|
5841
6114
|
"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
6115
|
"symbolId": "src/code:TypeScriptCode"
|
|
5912
6116
|
},
|
|
5913
6117
|
"@mrgrain/cdk-esbuild.TypeScriptCodeProps": {
|
|
@@ -5923,7 +6127,7 @@
|
|
|
5923
6127
|
"kind": "interface",
|
|
5924
6128
|
"locationInModule": {
|
|
5925
6129
|
"filename": "src/code.ts",
|
|
5926
|
-
"line":
|
|
6130
|
+
"line": 20
|
|
5927
6131
|
},
|
|
5928
6132
|
"name": "TypeScriptCodeProps",
|
|
5929
6133
|
"properties": [
|
|
@@ -6136,6 +6340,6 @@
|
|
|
6136
6340
|
"symbolId": "src/source:TypeScriptSourceProps"
|
|
6137
6341
|
}
|
|
6138
6342
|
},
|
|
6139
|
-
"version": "3.
|
|
6140
|
-
"fingerprint": "
|
|
6343
|
+
"version": "3.6.0",
|
|
6344
|
+
"fingerprint": "OAsSCJMukUlupNUvkv/c82z3BzZsVDNL0B3lXQqr6EE="
|
|
6141
6345
|
}
|