Skip to content

Commit

Permalink
v1.10.3
Browse files Browse the repository at this point in the history
## Version 1.10.3
### Bug Fixes
- Ensure that a file is Javascript before trying to import it as a custom command. (#198)
  • Loading branch information
tmeyer2115 authored Apr 12, 2021
2 parents 4a86d9d + 2162a50 commit 6902768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jambo",
"version": "1.10.2",
"version": "1.10.3",
"description": "A JAMStack implementation using Handlebars",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/commands/commandimporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class CommandImporter {
const mergedDirectory = this._mergeCommandDirectories(commandDirectories);
fs.readdirSync(mergedDirectory)
.map(directoryPath => path.resolve(mergedDirectory, directoryPath))
.filter(directoryPath => directoryPath.endsWith('.js'))
.filter(directoryPath => fs.lstatSync(directoryPath).isFile())
.forEach(filePath => {
const requiredModule = require(filePath);
Expand Down

0 comments on commit 6902768

Please sign in to comment.