-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno hydrate using deno cache #585
base: main
Are you sure you want to change the base?
Changes from 2 commits
fe70aef
3d9697d
86198a1
b825730
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,18 @@ module.exports = function maybeHydrate (inventory, callback) { | |
} | ||
else callback() | ||
}, | ||
function _deno(callback) { | ||
if(inv.lambdasBySrcDir[path] !== undefined) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This check is unnecessary, this function only got called on Lambdas that exist in the project inventory There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, happens when the path is the |
||
let isDenoRuntime = (inv.lambdasBySrcDir[path].config.runtime === 'deno') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is the only check you need to run to install! |
||
if(isDenoRuntime) { | ||
install(callback) | ||
} | ||
else callback() | ||
|
||
} | ||
else callback() | ||
|
||
} | ||
], callback) | ||
} | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this block needs to be linted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry 👍