Skip to content

Commit

Permalink
corrected support path for constructs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshay committed Nov 30, 2023
1 parent 3bd9906 commit 8d6b2e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-mice-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lshay/constructs": patch
---

Correctly resolve support files'
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ class CrossRegionCertificateProvider extends Construct {
super(scope, id)

const code = Code.fromAsset(
path.dirname(
// eslint-disable-next-line unicorn/prefer-module
require.resolve(
// eslint-disable-next-line n/no-missing-require
"@lshay/constructs/support/cross-region-certificate/index.js",
path.resolve(
path.dirname(
// eslint-disable-next-line unicorn/prefer-module
require.resolve(
// eslint-disable-next-line n/no-missing-require
"@lshay/constructs",
),
),
"support",
"cross-region-certificate-provider",
),
)

Expand Down

0 comments on commit 8d6b2e1

Please sign in to comment.