Entities with space in their names throws a error when herbs update:
SyntaxError: Unexpected identifier
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.useCases (C:\Users\David\AppData\Roaming\npm\node_modules\@herbsjs\herbs-cli\src\generators\new\domain\useCases.js:28:20)
at Command.run (C:\Users\David\AppData\Roaming\npm\node_modules\@herbsjs\herbs-cli\src\commands\update.js:9:75)
Ex:
entity('To Do List', {
\src\domain\entities\index.js:
module.exports = {
Item: require('./item.js'),
To Do List: require('./todoList.js') //bug
}
Entities with space in their names throws a error when
herbs update:Ex:
entity('To Do List', {\src\domain\entities\index.js: