@@ -8,7 +8,7 @@ import path from 'path';
88import { BuildFiles , cliSettings , error , infoOut , warningOut } from './cli' ;
99import { BobProject } from "./builders/bob" ;
1010import { ImpactMarkdown } from "./builders/imd" ;
11- import { allExtensions , referencesFileName } from "./extensions" ;
11+ import { referencesFileName } from "./extensions" ;
1212import { getBranchLibraryName } from "./builders/environment" ;
1313import { renameFiles , replaceIncludes } from './utils' ;
1414import { ReadFileSystem } from './readFileSystem' ;
@@ -23,7 +23,7 @@ if (isCli || process.env.VSCODE_INSPECTOR_OPTIONS) {
2323async function main ( ) {
2424 const parms = process . argv . slice ( 2 ) ;
2525 let cwd = process . cwd ( ) ;
26- let scanGlob = `**/*.{ ${ allExtensions . join ( `,` ) } , ${ allExtensions . map ( e => e . toUpperCase ( ) ) . join ( `,` ) } }` ;
26+ let scanGlob : string | undefined = undefined ;
2727
2828 for ( let i = 0 ; i < parms . length ; i ++ ) {
2929 switch ( parms [ i ] ) {
@@ -162,6 +162,10 @@ async function main() {
162162
163163 let files : string [ ] ;
164164
165+ if ( ! scanGlob ) {
166+ scanGlob = targets . getSearchGlob ( ) ;
167+ }
168+
165169 try {
166170 files = await fs . getFiles ( cwd , scanGlob ) ;
167171 } catch ( e ) {
@@ -295,6 +299,5 @@ async function listDeps(cwd: string, targets: Targets, query: string) {
295299export { Targets } from './targets' ;
296300export { MakeProject } from './builders/make' ;
297301export { BobProject } from "./builders/bob" ;
298- export { ImpactMarkdown } from "./builders/imd"
299- export { allExtensions } from "./extensions" ;
302+ export { ImpactMarkdown } from "./builders/imd"
300303export * as Utils from './utils' ;
0 commit comments