Skip to content

Commit

Permalink
fix: no extension .aegir files work again
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Jun 14, 2022
1 parent b6f06c9 commit 265a8bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/config/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const loadTs = async (filepath) => {
* @type {Loader}
*/
const noExt = async (filepath) => {
console.log('noExt')
try {
return await loadEsm(filepath)
} catch (err) {
Expand All @@ -80,10 +79,9 @@ const noExt = async (filepath) => {
} catch (err) {
console.error(`Could not load your config file at '${filepath}'`)
console.error(err, err)
throw new Error(`Could not load your no-extension aegir config file at '${filepath}' as ESM nor TS`)
}
}

return null
}

/**
Expand Down Expand Up @@ -120,7 +118,8 @@ export const config = async (searchFrom) => {
'package.json',
'.aegir.js',
'.aegir.cjs',
'.aegir.ts'
'.aegir.ts',
'.aegir'
]
})
.search(searchFrom)
Expand Down

0 comments on commit 265a8bf

Please sign in to comment.