We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5047d2 commit 6dc0d57Copy full SHA for 6dc0d57
lib/utils/ember.js
@@ -157,9 +157,8 @@ function isModuleByFilePath(filePath, module) {
157
const expectedFileNameTs = `${module}.ts`;
158
const expectedFolderName = `${module}s`;
159
160
- const filePathParts = filePath.split(path.sep);
161
- const actualFolders = filePathParts.slice(0, -1);
162
- const actualFileName = filePathParts[filePathParts.length - 1];
+ const actualFolders = path.dirname(filePath).split(path.sep);
+ const actualFileName = path.basename(filePath);
163
164
/* Check both folder and filename to support both classic and POD's structure */
165
return (
0 commit comments