@mrgrain/cdk-esbuild 4.0.0-alpha.6 → 4.0.0-alpha.7

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/.jsii CHANGED
@@ -2803,7 +2803,7 @@
2803
2803
  },
2804
2804
  "name": "@mrgrain/cdk-esbuild",
2805
2805
  "readme": {
2806
- "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"
2806
+ "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"
2807
2807
  },
2808
2808
  "repository": {
2809
2809
  "type": "git",
@@ -2820,6 +2820,51 @@
2820
2820
  }
2821
2821
  },
2822
2822
  "types": {
2823
+ "@mrgrain/cdk-esbuild.Asset": {
2824
+ "abstract": true,
2825
+ "assembly": "@mrgrain/cdk-esbuild",
2826
+ "base": "aws-cdk-lib.aws_s3_assets.Asset",
2827
+ "docs": {
2828
+ "stability": "stable"
2829
+ },
2830
+ "fqn": "@mrgrain/cdk-esbuild.Asset",
2831
+ "initializer": {
2832
+ "docs": {
2833
+ "stability": "stable"
2834
+ },
2835
+ "locationInModule": {
2836
+ "filename": "src/asset.ts",
2837
+ "line": 42
2838
+ },
2839
+ "parameters": [
2840
+ {
2841
+ "name": "scope",
2842
+ "type": {
2843
+ "fqn": "constructs.Construct"
2844
+ }
2845
+ },
2846
+ {
2847
+ "name": "id",
2848
+ "type": {
2849
+ "primitive": "string"
2850
+ }
2851
+ },
2852
+ {
2853
+ "name": "props",
2854
+ "type": {
2855
+ "fqn": "@mrgrain/cdk-esbuild.AssetProps"
2856
+ }
2857
+ }
2858
+ ]
2859
+ },
2860
+ "kind": "class",
2861
+ "locationInModule": {
2862
+ "filename": "src/asset.ts",
2863
+ "line": 38
2864
+ },
2865
+ "name": "Asset",
2866
+ "symbolId": "src/asset:Asset"
2867
+ },
2823
2868
  "@mrgrain/cdk-esbuild.AssetProps": {
2824
2869
  "assembly": "@mrgrain/cdk-esbuild",
2825
2870
  "datatype": true,
@@ -4083,42 +4128,339 @@
4083
4128
  ]
4084
4129
  }
4085
4130
  }
4131
+ },
4132
+ {
4133
+ "abstract": true,
4134
+ "docs": {
4135
+ "remarks": "This is the same as setting the ESBUILD_BINARY_PATH environment variable.",
4136
+ "stability": "experimental",
4137
+ "summary": "Path to the binary used by esbuild."
4138
+ },
4139
+ "immutable": true,
4140
+ "locationInModule": {
4141
+ "filename": "src/bundler.ts",
4142
+ "line": 88
4143
+ },
4144
+ "name": "esbuildBinaryPath",
4145
+ "optional": true,
4146
+ "type": {
4147
+ "primitive": "string"
4148
+ }
4086
4149
  }
4087
4150
  ],
4088
4151
  "symbolId": "src/bundler:BundlerProps"
4089
4152
  },
4153
+ "@mrgrain/cdk-esbuild.Code": {
4154
+ "abstract": true,
4155
+ "assembly": "@mrgrain/cdk-esbuild",
4156
+ "base": "aws-cdk-lib.aws_lambda.Code",
4157
+ "docs": {
4158
+ "stability": "stable"
4159
+ },
4160
+ "fqn": "@mrgrain/cdk-esbuild.Code",
4161
+ "initializer": {
4162
+ "docs": {
4163
+ "stability": "stable"
4164
+ },
4165
+ "locationInModule": {
4166
+ "filename": "src/code.ts",
4167
+ "line": 43
4168
+ },
4169
+ "parameters": [
4170
+ {
4171
+ "docs": {
4172
+ "remarks": "Use `props.buildOptions.absWorkingDir` if an absolute path is required.",
4173
+ "summary": "- Relative path to the asset code."
4174
+ },
4175
+ "name": "entryPoints",
4176
+ "type": {
4177
+ "union": {
4178
+ "types": [
4179
+ {
4180
+ "primitive": "string"
4181
+ },
4182
+ {
4183
+ "collection": {
4184
+ "elementtype": {
4185
+ "primitive": "string"
4186
+ },
4187
+ "kind": "array"
4188
+ }
4189
+ },
4190
+ {
4191
+ "collection": {
4192
+ "elementtype": {
4193
+ "primitive": "string"
4194
+ },
4195
+ "kind": "map"
4196
+ }
4197
+ }
4198
+ ]
4199
+ }
4200
+ }
4201
+ },
4202
+ {
4203
+ "docs": {
4204
+ "summary": "- Asset properties."
4205
+ },
4206
+ "name": "props",
4207
+ "type": {
4208
+ "union": {
4209
+ "types": [
4210
+ {
4211
+ "fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
4212
+ },
4213
+ {
4214
+ "fqn": "@mrgrain/cdk-esbuild.TypeScriptCodeProps"
4215
+ }
4216
+ ]
4217
+ }
4218
+ }
4219
+ }
4220
+ ]
4221
+ },
4222
+ "kind": "class",
4223
+ "locationInModule": {
4224
+ "filename": "src/code.ts",
4225
+ "line": 22
4226
+ },
4227
+ "methods": [
4228
+ {
4229
+ "docs": {
4230
+ "stability": "stable",
4231
+ "summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
4232
+ },
4233
+ "locationInModule": {
4234
+ "filename": "src/code.ts",
4235
+ "line": 62
4236
+ },
4237
+ "name": "bind",
4238
+ "overrides": "aws-cdk-lib.aws_lambda.Code",
4239
+ "parameters": [
4240
+ {
4241
+ "name": "scope",
4242
+ "type": {
4243
+ "fqn": "constructs.Construct"
4244
+ }
4245
+ }
4246
+ ],
4247
+ "returns": {
4248
+ "type": {
4249
+ "fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
4250
+ }
4251
+ }
4252
+ },
4253
+ {
4254
+ "docs": {
4255
+ "remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
4256
+ "stability": "stable",
4257
+ "summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
4258
+ },
4259
+ "locationInModule": {
4260
+ "filename": "src/code.ts",
4261
+ "line": 90
4262
+ },
4263
+ "name": "bindToResource",
4264
+ "overrides": "aws-cdk-lib.aws_lambda.Code",
4265
+ "parameters": [
4266
+ {
4267
+ "name": "resource",
4268
+ "type": {
4269
+ "fqn": "aws-cdk-lib.CfnResource"
4270
+ }
4271
+ },
4272
+ {
4273
+ "name": "options",
4274
+ "optional": true,
4275
+ "type": {
4276
+ "fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
4277
+ }
4278
+ }
4279
+ ]
4280
+ },
4281
+ {
4282
+ "abstract": true,
4283
+ "docs": {
4284
+ "stability": "stable"
4285
+ },
4286
+ "locationInModule": {
4287
+ "filename": "src/code.ts",
4288
+ "line": 25
4289
+ },
4290
+ "name": "getAsset",
4291
+ "parameters": [
4292
+ {
4293
+ "name": "scope",
4294
+ "type": {
4295
+ "fqn": "constructs.Construct"
4296
+ }
4297
+ }
4298
+ ],
4299
+ "protected": true,
4300
+ "returns": {
4301
+ "type": {
4302
+ "fqn": "@mrgrain/cdk-esbuild.Asset"
4303
+ }
4304
+ }
4305
+ }
4306
+ ],
4307
+ "name": "Code",
4308
+ "properties": [
4309
+ {
4310
+ "docs": {
4311
+ "remarks": "Use `props.buildOptions.absWorkingDir` if an absolute path is required.",
4312
+ "stability": "stable",
4313
+ "summary": "- Relative path to the asset code."
4314
+ },
4315
+ "immutable": true,
4316
+ "locationInModule": {
4317
+ "filename": "src/code.ts",
4318
+ "line": 43
4319
+ },
4320
+ "name": "entryPoints",
4321
+ "type": {
4322
+ "union": {
4323
+ "types": [
4324
+ {
4325
+ "primitive": "string"
4326
+ },
4327
+ {
4328
+ "collection": {
4329
+ "elementtype": {
4330
+ "primitive": "string"
4331
+ },
4332
+ "kind": "array"
4333
+ }
4334
+ },
4335
+ {
4336
+ "collection": {
4337
+ "elementtype": {
4338
+ "primitive": "string"
4339
+ },
4340
+ "kind": "map"
4341
+ }
4342
+ }
4343
+ ]
4344
+ }
4345
+ }
4346
+ },
4347
+ {
4348
+ "docs": {
4349
+ "stability": "stable"
4350
+ },
4351
+ "locationInModule": {
4352
+ "filename": "src/code.ts",
4353
+ "line": 29
4354
+ },
4355
+ "name": "asset",
4356
+ "protected": true,
4357
+ "type": {
4358
+ "fqn": "@mrgrain/cdk-esbuild.Asset"
4359
+ }
4360
+ },
4361
+ {
4362
+ "docs": {
4363
+ "deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
4364
+ "stability": "deprecated",
4365
+ "summary": "Determines whether this Code is inline code or not."
4366
+ },
4367
+ "locationInModule": {
4368
+ "filename": "src/code.ts",
4369
+ "line": 36
4370
+ },
4371
+ "name": "isInline",
4372
+ "type": {
4373
+ "primitive": "boolean"
4374
+ }
4375
+ },
4376
+ {
4377
+ "docs": {
4378
+ "stability": "stable"
4379
+ },
4380
+ "locationInModule": {
4381
+ "filename": "src/code.ts",
4382
+ "line": 27
4383
+ },
4384
+ "name": "props",
4385
+ "protected": true,
4386
+ "type": {
4387
+ "fqn": "@mrgrain/cdk-esbuild.AssetProps"
4388
+ }
4389
+ }
4390
+ ],
4391
+ "symbolId": "src/code:Code"
4392
+ },
4090
4393
  "@mrgrain/cdk-esbuild.CodeConfig": {
4091
4394
  "assembly": "@mrgrain/cdk-esbuild",
4092
4395
  "datatype": true,
4093
4396
  "docs": {
4094
- "stability": "stable"
4397
+ "stability": "stable",
4398
+ "summary": "Result of binding `Code` into a `Function`."
4095
4399
  },
4096
4400
  "fqn": "@mrgrain/cdk-esbuild.CodeConfig",
4097
4401
  "kind": "interface",
4098
4402
  "locationInModule": {
4099
- "filename": "src/code.ts",
4100
- "line": 18
4403
+ "filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
4404
+ "line": 94
4101
4405
  },
4102
4406
  "name": "CodeConfig",
4103
4407
  "properties": [
4104
4408
  {
4105
4409
  "abstract": true,
4106
4410
  "docs": {
4411
+ "default": "- code is not an ECR container image",
4107
4412
  "stability": "stable",
4108
- "summary": "The location of the code in S3."
4413
+ "summary": "Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`)."
4109
4414
  },
4110
4415
  "immutable": true,
4111
4416
  "locationInModule": {
4112
- "filename": "src/code.ts",
4113
- "line": 24
4417
+ "filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
4418
+ "line": 115
4419
+ },
4420
+ "name": "image",
4421
+ "optional": true,
4422
+ "type": {
4423
+ "fqn": "aws-cdk-lib.aws_lambda.CodeImageConfig"
4424
+ }
4425
+ },
4426
+ {
4427
+ "abstract": true,
4428
+ "docs": {
4429
+ "default": "- code is not inline code",
4430
+ "stability": "stable",
4431
+ "summary": "Inline code (mutually exclusive with `s3Location` and `image`)."
4432
+ },
4433
+ "immutable": true,
4434
+ "locationInModule": {
4435
+ "filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
4436
+ "line": 108
4437
+ },
4438
+ "name": "inlineCode",
4439
+ "optional": true,
4440
+ "type": {
4441
+ "primitive": "string"
4442
+ }
4443
+ },
4444
+ {
4445
+ "abstract": true,
4446
+ "docs": {
4447
+ "default": "- code is not an s3 location",
4448
+ "stability": "stable",
4449
+ "summary": "The location of the code in S3 (mutually exclusive with `inlineCode` and `image`)."
4450
+ },
4451
+ "immutable": true,
4452
+ "locationInModule": {
4453
+ "filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
4454
+ "line": 101
4114
4455
  },
4115
4456
  "name": "s3Location",
4457
+ "optional": true,
4116
4458
  "type": {
4117
4459
  "fqn": "aws-cdk-lib.aws_s3.Location"
4118
4460
  }
4119
4461
  }
4120
4462
  ],
4121
- "symbolId": "src/code:CodeConfig"
4463
+ "symbolId": "aws-lambda/lib/code:CodeConfig"
4122
4464
  },
4123
4465
  "@mrgrain/cdk-esbuild.EsbuildBundler": {
4124
4466
  "assembly": "@mrgrain/cdk-esbuild",
@@ -4134,7 +4476,7 @@
4134
4476
  },
4135
4477
  "locationInModule": {
4136
4478
  "filename": "src/bundler.ts",
4137
- "line": 106
4479
+ "line": 115
4138
4480
  },
4139
4481
  "parameters": [
4140
4482
  {
@@ -4185,7 +4527,7 @@
4185
4527
  "kind": "class",
4186
4528
  "locationInModule": {
4187
4529
  "filename": "src/bundler.ts",
4188
- "line": 88
4530
+ "line": 97
4189
4531
  },
4190
4532
  "name": "EsbuildBundler",
4191
4533
  "properties": [
@@ -4198,7 +4540,7 @@
4198
4540
  "immutable": true,
4199
4541
  "locationInModule": {
4200
4542
  "filename": "src/bundler.ts",
4201
- "line": 113
4543
+ "line": 122
4202
4544
  },
4203
4545
  "name": "entryPoints",
4204
4546
  "type": {
@@ -4235,7 +4577,7 @@
4235
4577
  "immutable": true,
4236
4578
  "locationInModule": {
4237
4579
  "filename": "src/bundler.ts",
4238
- "line": 101
4580
+ "line": 110
4239
4581
  },
4240
4582
  "name": "image",
4241
4583
  "type": {
@@ -4250,7 +4592,7 @@
4250
4592
  "immutable": true,
4251
4593
  "locationInModule": {
4252
4594
  "filename": "src/bundler.ts",
4253
- "line": 94
4595
+ "line": 103
4254
4596
  },
4255
4597
  "name": "local",
4256
4598
  "type": {
@@ -4265,7 +4607,7 @@
4265
4607
  "immutable": true,
4266
4608
  "locationInModule": {
4267
4609
  "filename": "src/bundler.ts",
4268
- "line": 120
4610
+ "line": 129
4269
4611
  },
4270
4612
  "name": "props",
4271
4613
  "type": {
@@ -4513,6 +4855,7 @@
4513
4855
  },
4514
4856
  "@mrgrain/cdk-esbuild.JavaScriptAsset": {
4515
4857
  "assembly": "@mrgrain/cdk-esbuild",
4858
+ "base": "@mrgrain/cdk-esbuild.Asset",
4516
4859
  "docs": {
4517
4860
  "remarks": "The asset can be used by other constructs.",
4518
4861
  "stability": "stable",
@@ -4558,6 +4901,7 @@
4558
4901
  },
4559
4902
  "@mrgrain/cdk-esbuild.JavaScriptCode": {
4560
4903
  "assembly": "@mrgrain/cdk-esbuild",
4904
+ "base": "@mrgrain/cdk-esbuild.Code",
4561
4905
  "docs": {
4562
4906
  "stability": "stable",
4563
4907
  "summary": "Represents the deployed JavaScript Code."
@@ -4569,7 +4913,7 @@
4569
4913
  },
4570
4914
  "locationInModule": {
4571
4915
  "filename": "src/code.ts",
4572
- "line": 125
4916
+ "line": 114
4573
4917
  },
4574
4918
  "parameters": [
4575
4919
  {
@@ -4622,19 +4966,19 @@
4622
4966
  "kind": "class",
4623
4967
  "locationInModule": {
4624
4968
  "filename": "src/code.ts",
4625
- "line": 122
4969
+ "line": 105
4626
4970
  },
4627
4971
  "methods": [
4628
4972
  {
4629
4973
  "docs": {
4630
- "stability": "stable",
4631
- "summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
4974
+ "stability": "stable"
4632
4975
  },
4633
4976
  "locationInModule": {
4634
4977
  "filename": "src/code.ts",
4635
- "line": 75
4978
+ "line": 106
4636
4979
  },
4637
- "name": "bind",
4980
+ "name": "getAsset",
4981
+ "overrides": "@mrgrain/cdk-esbuild.Code",
4638
4982
  "parameters": [
4639
4983
  {
4640
4984
  "name": "scope",
@@ -4643,110 +4987,15 @@
4643
4987
  }
4644
4988
  }
4645
4989
  ],
4990
+ "protected": true,
4646
4991
  "returns": {
4647
4992
  "type": {
4648
- "fqn": "@mrgrain/cdk-esbuild.CodeConfig"
4993
+ "fqn": "@mrgrain/cdk-esbuild.Asset"
4649
4994
  }
4650
4995
  }
4651
- },
4652
- {
4653
- "docs": {
4654
- "remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
4655
- "stability": "stable",
4656
- "summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
4657
- },
4658
- "locationInModule": {
4659
- "filename": "src/code.ts",
4660
- "line": 107
4661
- },
4662
- "name": "bindToResource",
4663
- "parameters": [
4664
- {
4665
- "name": "resource",
4666
- "type": {
4667
- "fqn": "aws-cdk-lib.CfnResource"
4668
- }
4669
- },
4670
- {
4671
- "name": "options",
4672
- "optional": true,
4673
- "type": {
4674
- "fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
4675
- }
4676
- }
4677
- ]
4678
4996
  }
4679
4997
  ],
4680
4998
  "name": "JavaScriptCode",
4681
- "properties": [
4682
- {
4683
- "docs": {
4684
- "stability": "stable"
4685
- },
4686
- "immutable": true,
4687
- "locationInModule": {
4688
- "filename": "src/code.ts",
4689
- "line": 123
4690
- },
4691
- "name": "assetClass",
4692
- "protected": true,
4693
- "type": {
4694
- "fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
4695
- }
4696
- },
4697
- {
4698
- "docs": {
4699
- "stability": "stable"
4700
- },
4701
- "locationInModule": {
4702
- "filename": "src/code.ts",
4703
- "line": 42
4704
- },
4705
- "name": "asset",
4706
- "protected": true,
4707
- "type": {
4708
- "union": {
4709
- "types": [
4710
- {
4711
- "fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
4712
- },
4713
- {
4714
- "fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
4715
- }
4716
- ]
4717
- }
4718
- }
4719
- },
4720
- {
4721
- "docs": {
4722
- "deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
4723
- "stability": "deprecated",
4724
- "summary": "Determines whether this Code is inline code or not."
4725
- },
4726
- "locationInModule": {
4727
- "filename": "src/code.ts",
4728
- "line": 49
4729
- },
4730
- "name": "isInline",
4731
- "type": {
4732
- "primitive": "boolean"
4733
- }
4734
- },
4735
- {
4736
- "docs": {
4737
- "stability": "stable"
4738
- },
4739
- "locationInModule": {
4740
- "filename": "src/code.ts",
4741
- "line": 40
4742
- },
4743
- "name": "props",
4744
- "protected": true,
4745
- "type": {
4746
- "fqn": "@mrgrain/cdk-esbuild.AssetProps"
4747
- }
4748
- }
4749
- ],
4750
4999
  "symbolId": "src/code:JavaScriptCode"
4751
5000
  },
4752
5001
  "@mrgrain/cdk-esbuild.JavaScriptCodeProps": {
@@ -4762,7 +5011,7 @@
4762
5011
  "kind": "interface",
4763
5012
  "locationInModule": {
4764
5013
  "filename": "src/code.ts",
4765
- "line": 27
5014
+ "line": 19
4766
5015
  },
4767
5016
  "name": "JavaScriptCodeProps",
4768
5017
  "properties": [
@@ -5683,6 +5932,7 @@
5683
5932
  },
5684
5933
  "@mrgrain/cdk-esbuild.TypeScriptAsset": {
5685
5934
  "assembly": "@mrgrain/cdk-esbuild",
5935
+ "base": "@mrgrain/cdk-esbuild.Asset",
5686
5936
  "docs": {
5687
5937
  "remarks": "The asset can be used by other constructs.",
5688
5938
  "stability": "stable",
@@ -5728,6 +5978,7 @@
5728
5978
  },
5729
5979
  "@mrgrain/cdk-esbuild.TypeScriptCode": {
5730
5980
  "assembly": "@mrgrain/cdk-esbuild",
5981
+ "base": "@mrgrain/cdk-esbuild.Code",
5731
5982
  "docs": {
5732
5983
  "stability": "stable",
5733
5984
  "summary": "Represents the deployed TypeScript Code."
@@ -5739,7 +5990,7 @@
5739
5990
  },
5740
5991
  "locationInModule": {
5741
5992
  "filename": "src/code.ts",
5742
- "line": 157
5993
+ "line": 152
5743
5994
  },
5744
5995
  "parameters": [
5745
5996
  {
@@ -5792,19 +6043,19 @@
5792
6043
  "kind": "class",
5793
6044
  "locationInModule": {
5794
6045
  "filename": "src/code.ts",
5795
- "line": 154
6046
+ "line": 143
5796
6047
  },
5797
6048
  "methods": [
5798
6049
  {
5799
6050
  "docs": {
5800
- "stability": "stable",
5801
- "summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
6051
+ "stability": "stable"
5802
6052
  },
5803
6053
  "locationInModule": {
5804
6054
  "filename": "src/code.ts",
5805
- "line": 75
6055
+ "line": 144
5806
6056
  },
5807
- "name": "bind",
6057
+ "name": "getAsset",
6058
+ "overrides": "@mrgrain/cdk-esbuild.Code",
5808
6059
  "parameters": [
5809
6060
  {
5810
6061
  "name": "scope",
@@ -5813,110 +6064,15 @@
5813
6064
  }
5814
6065
  }
5815
6066
  ],
6067
+ "protected": true,
5816
6068
  "returns": {
5817
6069
  "type": {
5818
- "fqn": "@mrgrain/cdk-esbuild.CodeConfig"
6070
+ "fqn": "@mrgrain/cdk-esbuild.Asset"
5819
6071
  }
5820
6072
  }
5821
- },
5822
- {
5823
- "docs": {
5824
- "remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
5825
- "stability": "stable",
5826
- "summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
5827
- },
5828
- "locationInModule": {
5829
- "filename": "src/code.ts",
5830
- "line": 107
5831
- },
5832
- "name": "bindToResource",
5833
- "parameters": [
5834
- {
5835
- "name": "resource",
5836
- "type": {
5837
- "fqn": "aws-cdk-lib.CfnResource"
5838
- }
5839
- },
5840
- {
5841
- "name": "options",
5842
- "optional": true,
5843
- "type": {
5844
- "fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
5845
- }
5846
- }
5847
- ]
5848
6073
  }
5849
6074
  ],
5850
6075
  "name": "TypeScriptCode",
5851
- "properties": [
5852
- {
5853
- "docs": {
5854
- "stability": "stable"
5855
- },
5856
- "immutable": true,
5857
- "locationInModule": {
5858
- "filename": "src/code.ts",
5859
- "line": 155
5860
- },
5861
- "name": "assetClass",
5862
- "protected": true,
5863
- "type": {
5864
- "fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
5865
- }
5866
- },
5867
- {
5868
- "docs": {
5869
- "stability": "stable"
5870
- },
5871
- "locationInModule": {
5872
- "filename": "src/code.ts",
5873
- "line": 42
5874
- },
5875
- "name": "asset",
5876
- "protected": true,
5877
- "type": {
5878
- "union": {
5879
- "types": [
5880
- {
5881
- "fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
5882
- },
5883
- {
5884
- "fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
5885
- }
5886
- ]
5887
- }
5888
- }
5889
- },
5890
- {
5891
- "docs": {
5892
- "deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
5893
- "stability": "deprecated",
5894
- "summary": "Determines whether this Code is inline code or not."
5895
- },
5896
- "locationInModule": {
5897
- "filename": "src/code.ts",
5898
- "line": 49
5899
- },
5900
- "name": "isInline",
5901
- "type": {
5902
- "primitive": "boolean"
5903
- }
5904
- },
5905
- {
5906
- "docs": {
5907
- "stability": "stable"
5908
- },
5909
- "locationInModule": {
5910
- "filename": "src/code.ts",
5911
- "line": 40
5912
- },
5913
- "name": "props",
5914
- "protected": true,
5915
- "type": {
5916
- "fqn": "@mrgrain/cdk-esbuild.AssetProps"
5917
- }
5918
- }
5919
- ],
5920
6076
  "symbolId": "src/code:TypeScriptCode"
5921
6077
  },
5922
6078
  "@mrgrain/cdk-esbuild.TypeScriptCodeProps": {
@@ -5932,7 +6088,7 @@
5932
6088
  "kind": "interface",
5933
6089
  "locationInModule": {
5934
6090
  "filename": "src/code.ts",
5935
- "line": 28
6091
+ "line": 20
5936
6092
  },
5937
6093
  "name": "TypeScriptCodeProps",
5938
6094
  "properties": [
@@ -6145,6 +6301,6 @@
6145
6301
  "symbolId": "src/source:TypeScriptSourceProps"
6146
6302
  }
6147
6303
  },
6148
- "version": "4.0.0-alpha.6",
6149
- "fingerprint": "z9p/XJKKPoBjx72NC8W3dB8o8F0GXxvI6bvwwmlqvQs="
6304
+ "version": "4.0.0-alpha.7",
6305
+ "fingerprint": "Xl4tA+wEh22dovogBHbnmpRxV5IYdQURyfWyXBLufDU="
6150
6306
  }