Skip to content

Commit 91bbbca

Browse files
authored
Fix string errors in some recipes (#348)
* fix string errors in some recipes * allow ImportString
1 parent 815d54c commit 91bbbca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builders/_lando.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ module.exports = {
151151
// Handle custom config files
152152
for (let [remote, local] of Object.entries(config)) {
153153
// if we dont have entries we can work with then just go to the next iteration
154-
if (!_.has(remoteFiles, remote) && typeof remote !== 'string') continue;
154+
const isValidLocal = typeof local === 'string' || local?.constructor?.name === 'ImportString';
155+
if (!_.has(remoteFiles, remote) && (typeof remote !== 'string' || !isValidLocal)) continue;
155156

156157
// if this is special type then get it from remoteFile
157158
remote = _.has(remoteFiles, remote) ? remoteFiles[remote] : path.resolve('/', remote);

0 commit comments

Comments
 (0)