@mrgrain/cdk-esbuild 4.0.0-alpha.4 → 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
@@ -7,6 +7,9 @@
7
7
  ],
8
8
  "url": "https://moritzkornher.de"
9
9
  },
10
+ "bundled": {
11
+ "which": "^2.0.2"
12
+ },
10
13
  "dependencies": {
11
14
  "aws-cdk-lib": "^2.0.0",
12
15
  "constructs": "^10.0.5"
@@ -2800,7 +2803,7 @@
2800
2803
  },
2801
2804
  "name": "@mrgrain/cdk-esbuild",
2802
2805
  "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"
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"
2804
2807
  },
2805
2808
  "repository": {
2806
2809
  "type": "git",
@@ -2817,6 +2820,51 @@
2817
2820
  }
2818
2821
  },
2819
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
+ },
2820
2868
  "@mrgrain/cdk-esbuild.AssetProps": {
2821
2869
  "assembly": "@mrgrain/cdk-esbuild",
2822
2870
  "datatype": true,
@@ -4080,42 +4128,339 @@
4080
4128
  ]
4081
4129
  }
4082
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
+ }
4083
4149
  }
4084
4150
  ],
4085
4151
  "symbolId": "src/bundler:BundlerProps"
4086
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
+ },
4087
4393
  "@mrgrain/cdk-esbuild.CodeConfig": {
4088
4394
  "assembly": "@mrgrain/cdk-esbuild",
4089
4395
  "datatype": true,
4090
4396
  "docs": {
4091
- "stability": "stable"
4397
+ "stability": "stable",
4398
+ "summary": "Result of binding `Code` into a `Function`."
4092
4399
  },
4093
4400
  "fqn": "@mrgrain/cdk-esbuild.CodeConfig",
4094
4401
  "kind": "interface",
4095
4402
  "locationInModule": {
4096
- "filename": "src/code.ts",
4097
- "line": 18
4403
+ "filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
4404
+ "line": 94
4098
4405
  },
4099
4406
  "name": "CodeConfig",
4100
4407
  "properties": [
4101
4408
  {
4102
4409
  "abstract": true,
4103
4410
  "docs": {
4411
+ "default": "- code is not an ECR container image",
4104
4412
  "stability": "stable",
4105
- "summary": "The location of the code in S3."
4413
+ "summary": "Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`)."
4106
4414
  },
4107
4415
  "immutable": true,
4108
4416
  "locationInModule": {
4109
- "filename": "src/code.ts",
4110
- "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
4111
4455
  },
4112
4456
  "name": "s3Location",
4457
+ "optional": true,
4113
4458
  "type": {
4114
4459
  "fqn": "aws-cdk-lib.aws_s3.Location"
4115
4460
  }
4116
4461
  }
4117
4462
  ],
4118
- "symbolId": "src/code:CodeConfig"
4463
+ "symbolId": "aws-lambda/lib/code:CodeConfig"
4119
4464
  },
4120
4465
  "@mrgrain/cdk-esbuild.EsbuildBundler": {
4121
4466
  "assembly": "@mrgrain/cdk-esbuild",
@@ -4131,7 +4476,7 @@
4131
4476
  },
4132
4477
  "locationInModule": {
4133
4478
  "filename": "src/bundler.ts",
4134
- "line": 106
4479
+ "line": 115
4135
4480
  },
4136
4481
  "parameters": [
4137
4482
  {
@@ -4182,7 +4527,7 @@
4182
4527
  "kind": "class",
4183
4528
  "locationInModule": {
4184
4529
  "filename": "src/bundler.ts",
4185
- "line": 88
4530
+ "line": 97
4186
4531
  },
4187
4532
  "name": "EsbuildBundler",
4188
4533
  "properties": [
@@ -4195,7 +4540,7 @@
4195
4540
  "immutable": true,
4196
4541
  "locationInModule": {
4197
4542
  "filename": "src/bundler.ts",
4198
- "line": 113
4543
+ "line": 122
4199
4544
  },
4200
4545
  "name": "entryPoints",
4201
4546
  "type": {
@@ -4232,7 +4577,7 @@
4232
4577
  "immutable": true,
4233
4578
  "locationInModule": {
4234
4579
  "filename": "src/bundler.ts",
4235
- "line": 101
4580
+ "line": 110
4236
4581
  },
4237
4582
  "name": "image",
4238
4583
  "type": {
@@ -4247,7 +4592,7 @@
4247
4592
  "immutable": true,
4248
4593
  "locationInModule": {
4249
4594
  "filename": "src/bundler.ts",
4250
- "line": 94
4595
+ "line": 103
4251
4596
  },
4252
4597
  "name": "local",
4253
4598
  "type": {
@@ -4262,7 +4607,7 @@
4262
4607
  "immutable": true,
4263
4608
  "locationInModule": {
4264
4609
  "filename": "src/bundler.ts",
4265
- "line": 120
4610
+ "line": 129
4266
4611
  },
4267
4612
  "name": "props",
4268
4613
  "type": {
@@ -4510,6 +4855,7 @@
4510
4855
  },
4511
4856
  "@mrgrain/cdk-esbuild.JavaScriptAsset": {
4512
4857
  "assembly": "@mrgrain/cdk-esbuild",
4858
+ "base": "@mrgrain/cdk-esbuild.Asset",
4513
4859
  "docs": {
4514
4860
  "remarks": "The asset can be used by other constructs.",
4515
4861
  "stability": "stable",
@@ -4555,6 +4901,7 @@
4555
4901
  },
4556
4902
  "@mrgrain/cdk-esbuild.JavaScriptCode": {
4557
4903
  "assembly": "@mrgrain/cdk-esbuild",
4904
+ "base": "@mrgrain/cdk-esbuild.Code",
4558
4905
  "docs": {
4559
4906
  "stability": "stable",
4560
4907
  "summary": "Represents the deployed JavaScript Code."
@@ -4566,7 +4913,7 @@
4566
4913
  },
4567
4914
  "locationInModule": {
4568
4915
  "filename": "src/code.ts",
4569
- "line": 124
4916
+ "line": 114
4570
4917
  },
4571
4918
  "parameters": [
4572
4919
  {
@@ -4619,7 +4966,7 @@
4619
4966
  "kind": "class",
4620
4967
  "locationInModule": {
4621
4968
  "filename": "src/code.ts",
4622
- "line": 121
4969
+ "line": 105
4623
4970
  },
4624
4971
  "methods": [
4625
4972
  {
@@ -4628,9 +4975,10 @@
4628
4975
  },
4629
4976
  "locationInModule": {
4630
4977
  "filename": "src/code.ts",
4631
- "line": 74
4978
+ "line": 106
4632
4979
  },
4633
- "name": "bind",
4980
+ "name": "getAsset",
4981
+ "overrides": "@mrgrain/cdk-esbuild.Code",
4634
4982
  "parameters": [
4635
4983
  {
4636
4984
  "name": "scope",
@@ -4639,110 +4987,15 @@
4639
4987
  }
4640
4988
  }
4641
4989
  ],
4990
+ "protected": true,
4642
4991
  "returns": {
4643
4992
  "type": {
4644
- "fqn": "@mrgrain/cdk-esbuild.CodeConfig"
4993
+ "fqn": "@mrgrain/cdk-esbuild.Asset"
4645
4994
  }
4646
4995
  }
4647
- },
4648
- {
4649
- "docs": {
4650
- "remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
4651
- "stability": "stable",
4652
- "summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
4653
- },
4654
- "locationInModule": {
4655
- "filename": "src/code.ts",
4656
- "line": 106
4657
- },
4658
- "name": "bindToResource",
4659
- "parameters": [
4660
- {
4661
- "name": "resource",
4662
- "type": {
4663
- "fqn": "aws-cdk-lib.CfnResource"
4664
- }
4665
- },
4666
- {
4667
- "name": "options",
4668
- "optional": true,
4669
- "type": {
4670
- "fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
4671
- }
4672
- }
4673
- ]
4674
4996
  }
4675
4997
  ],
4676
4998
  "name": "JavaScriptCode",
4677
- "properties": [
4678
- {
4679
- "docs": {
4680
- "stability": "stable"
4681
- },
4682
- "immutable": true,
4683
- "locationInModule": {
4684
- "filename": "src/code.ts",
4685
- "line": 122
4686
- },
4687
- "name": "assetClass",
4688
- "protected": true,
4689
- "type": {
4690
- "fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
4691
- }
4692
- },
4693
- {
4694
- "docs": {
4695
- "stability": "stable"
4696
- },
4697
- "locationInModule": {
4698
- "filename": "src/code.ts",
4699
- "line": 42
4700
- },
4701
- "name": "asset",
4702
- "protected": true,
4703
- "type": {
4704
- "union": {
4705
- "types": [
4706
- {
4707
- "fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
4708
- },
4709
- {
4710
- "fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
4711
- }
4712
- ]
4713
- }
4714
- }
4715
- },
4716
- {
4717
- "docs": {
4718
- "deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
4719
- "stability": "deprecated",
4720
- "summary": "Determines whether this Code is inline code or not."
4721
- },
4722
- "locationInModule": {
4723
- "filename": "src/code.ts",
4724
- "line": 49
4725
- },
4726
- "name": "isInline",
4727
- "type": {
4728
- "primitive": "boolean"
4729
- }
4730
- },
4731
- {
4732
- "docs": {
4733
- "stability": "stable"
4734
- },
4735
- "locationInModule": {
4736
- "filename": "src/code.ts",
4737
- "line": 40
4738
- },
4739
- "name": "props",
4740
- "protected": true,
4741
- "type": {
4742
- "fqn": "@mrgrain/cdk-esbuild.AssetProps"
4743
- }
4744
- }
4745
- ],
4746
4999
  "symbolId": "src/code:JavaScriptCode"
4747
5000
  },
4748
5001
  "@mrgrain/cdk-esbuild.JavaScriptCodeProps": {
@@ -4758,7 +5011,7 @@
4758
5011
  "kind": "interface",
4759
5012
  "locationInModule": {
4760
5013
  "filename": "src/code.ts",
4761
- "line": 27
5014
+ "line": 19
4762
5015
  },
4763
5016
  "name": "JavaScriptCodeProps",
4764
5017
  "properties": [
@@ -5679,6 +5932,7 @@
5679
5932
  },
5680
5933
  "@mrgrain/cdk-esbuild.TypeScriptAsset": {
5681
5934
  "assembly": "@mrgrain/cdk-esbuild",
5935
+ "base": "@mrgrain/cdk-esbuild.Asset",
5682
5936
  "docs": {
5683
5937
  "remarks": "The asset can be used by other constructs.",
5684
5938
  "stability": "stable",
@@ -5724,6 +5978,7 @@
5724
5978
  },
5725
5979
  "@mrgrain/cdk-esbuild.TypeScriptCode": {
5726
5980
  "assembly": "@mrgrain/cdk-esbuild",
5981
+ "base": "@mrgrain/cdk-esbuild.Code",
5727
5982
  "docs": {
5728
5983
  "stability": "stable",
5729
5984
  "summary": "Represents the deployed TypeScript Code."
@@ -5735,7 +5990,7 @@
5735
5990
  },
5736
5991
  "locationInModule": {
5737
5992
  "filename": "src/code.ts",
5738
- "line": 156
5993
+ "line": 152
5739
5994
  },
5740
5995
  "parameters": [
5741
5996
  {
@@ -5788,7 +6043,7 @@
5788
6043
  "kind": "class",
5789
6044
  "locationInModule": {
5790
6045
  "filename": "src/code.ts",
5791
- "line": 153
6046
+ "line": 143
5792
6047
  },
5793
6048
  "methods": [
5794
6049
  {
@@ -5797,9 +6052,10 @@
5797
6052
  },
5798
6053
  "locationInModule": {
5799
6054
  "filename": "src/code.ts",
5800
- "line": 74
6055
+ "line": 144
5801
6056
  },
5802
- "name": "bind",
6057
+ "name": "getAsset",
6058
+ "overrides": "@mrgrain/cdk-esbuild.Code",
5803
6059
  "parameters": [
5804
6060
  {
5805
6061
  "name": "scope",
@@ -5808,110 +6064,15 @@
5808
6064
  }
5809
6065
  }
5810
6066
  ],
6067
+ "protected": true,
5811
6068
  "returns": {
5812
6069
  "type": {
5813
- "fqn": "@mrgrain/cdk-esbuild.CodeConfig"
6070
+ "fqn": "@mrgrain/cdk-esbuild.Asset"
5814
6071
  }
5815
6072
  }
5816
- },
5817
- {
5818
- "docs": {
5819
- "remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
5820
- "stability": "stable",
5821
- "summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
5822
- },
5823
- "locationInModule": {
5824
- "filename": "src/code.ts",
5825
- "line": 106
5826
- },
5827
- "name": "bindToResource",
5828
- "parameters": [
5829
- {
5830
- "name": "resource",
5831
- "type": {
5832
- "fqn": "aws-cdk-lib.CfnResource"
5833
- }
5834
- },
5835
- {
5836
- "name": "options",
5837
- "optional": true,
5838
- "type": {
5839
- "fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
5840
- }
5841
- }
5842
- ]
5843
6073
  }
5844
6074
  ],
5845
6075
  "name": "TypeScriptCode",
5846
- "properties": [
5847
- {
5848
- "docs": {
5849
- "stability": "stable"
5850
- },
5851
- "immutable": true,
5852
- "locationInModule": {
5853
- "filename": "src/code.ts",
5854
- "line": 154
5855
- },
5856
- "name": "assetClass",
5857
- "protected": true,
5858
- "type": {
5859
- "fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
5860
- }
5861
- },
5862
- {
5863
- "docs": {
5864
- "stability": "stable"
5865
- },
5866
- "locationInModule": {
5867
- "filename": "src/code.ts",
5868
- "line": 42
5869
- },
5870
- "name": "asset",
5871
- "protected": true,
5872
- "type": {
5873
- "union": {
5874
- "types": [
5875
- {
5876
- "fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
5877
- },
5878
- {
5879
- "fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
5880
- }
5881
- ]
5882
- }
5883
- }
5884
- },
5885
- {
5886
- "docs": {
5887
- "deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
5888
- "stability": "deprecated",
5889
- "summary": "Determines whether this Code is inline code or not."
5890
- },
5891
- "locationInModule": {
5892
- "filename": "src/code.ts",
5893
- "line": 49
5894
- },
5895
- "name": "isInline",
5896
- "type": {
5897
- "primitive": "boolean"
5898
- }
5899
- },
5900
- {
5901
- "docs": {
5902
- "stability": "stable"
5903
- },
5904
- "locationInModule": {
5905
- "filename": "src/code.ts",
5906
- "line": 40
5907
- },
5908
- "name": "props",
5909
- "protected": true,
5910
- "type": {
5911
- "fqn": "@mrgrain/cdk-esbuild.AssetProps"
5912
- }
5913
- }
5914
- ],
5915
6076
  "symbolId": "src/code:TypeScriptCode"
5916
6077
  },
5917
6078
  "@mrgrain/cdk-esbuild.TypeScriptCodeProps": {
@@ -5927,7 +6088,7 @@
5927
6088
  "kind": "interface",
5928
6089
  "locationInModule": {
5929
6090
  "filename": "src/code.ts",
5930
- "line": 28
6091
+ "line": 20
5931
6092
  },
5932
6093
  "name": "TypeScriptCodeProps",
5933
6094
  "properties": [
@@ -6140,6 +6301,6 @@
6140
6301
  "symbolId": "src/source:TypeScriptSourceProps"
6141
6302
  }
6142
6303
  },
6143
- "version": "4.0.0-alpha.4",
6144
- "fingerprint": "F7RCu82jXsVez/knXhfZPI6zZQT6khrFd75hrqk45p8="
6304
+ "version": "4.0.0-alpha.7",
6305
+ "fingerprint": "Xl4tA+wEh22dovogBHbnmpRxV5IYdQURyfWyXBLufDU="
6145
6306
  }