3
3
import * as path from 'path' ;
4
4
import { logError , logInfo } from './utils/logger' ;
5
5
import { URI } from 'vscode-uri' ;
6
- import { isGlimmerXProject , isELSAddonRoot , isRootStartingWithFilePath , safeWalkAsync , asyncGetPackageJSON } from './utils/layout-helpers' ;
6
+ import { isEmberLikeProject , isELSAddonRoot , isRootStartingWithFilePath , safeWalkAsync , asyncGetPackageJSON } from './utils/layout-helpers' ;
7
7
8
8
import Server from './server' ;
9
9
@@ -83,7 +83,7 @@ export default class ProjectRoots {
83
83
async findProjectsInsideRoot ( workspaceRoot : string ) {
84
84
const roots = await safeWalkAsync ( workspaceRoot , {
85
85
directories : false ,
86
- globs : [ '**/ember-cli-build.js' , '**/package.json' ] ,
86
+ globs : [ '**/ember-cli-build.js' , '**/ember-cli-build.cjs' , '**/ package.json'] ,
87
87
ignore : [ '**/.git/**' , '**/bower_components/**' , '**/dist/**' , '**/node_modules/**' , '**/tmp/**' ] ,
88
88
} ) ;
89
89
@@ -97,7 +97,7 @@ export default class ProjectRoots {
97
97
98
98
if ( filePath . endsWith ( 'package.json' ) ) {
99
99
try {
100
- if ( await isGlimmerXProject ( fullPath ) ) {
100
+ if ( await isEmberLikeProject ( fullPath ) ) {
101
101
await this . onProjectAdd ( fullPath ) ;
102
102
}
103
103
} catch ( e ) {
0 commit comments