@@ -25,7 +25,7 @@ import { debugLog, debugLogArray, debugLogObject } from './util/debug.js';
25
25
import { addNsValues , addValues , createFileNode } from './util/dependency-graph.js' ;
26
26
import { isFile } from './util/fs.js' ;
27
27
import { _glob , negate } from './util/glob.js' ;
28
- import { getGitIgnoredFn } from './util/globby.js' ;
28
+ import { getGitIgnoredHandler } from './util/globby.js' ;
29
29
import { getHandler } from './util/handle-dependency.js' ;
30
30
import { getHasStrictlyNsReferences , getType } from './util/has-strictly-ns-references.js' ;
31
31
import { getIsIdentifierReferencedHandler } from './util/is-identifier-referenced.js' ;
@@ -66,7 +66,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
66
66
const factory = new PrincipalFactory ( ) ;
67
67
const streamer = new ConsoleStreamer ( { isEnabled : isShowProgress } ) ;
68
68
69
- const isGitIgnored = await getGitIgnoredFn ( { cwd, gitignore } ) ;
69
+ const isGitIgnored = await getGitIgnoredHandler ( { cwd, gitignore } ) ;
70
70
const toSourceFilePath = getToSourcePathHandler ( chief ) ;
71
71
72
72
streamer . cast ( 'Reading workspace configuration(s)...' ) ;
@@ -156,12 +156,12 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
156
156
157
157
collector . addIgnorePatterns ( ignore . map ( pattern => join ( cwd , pattern ) ) ) ;
158
158
159
- // Add dependencies from package.json
159
+ // Add dependencies from package.json#scripts
160
160
const options = { manifestScriptNames, cwd : dir , dependencies } ;
161
161
const dependenciesFromManifest = _getDependenciesFromScripts ( manifestScripts , options ) ;
162
162
principal . addReferencedDependencies ( name , new Set ( dependenciesFromManifest . map ( id => [ manifestPath , id ] ) ) ) ;
163
163
164
- // Add entry paths from package.json
164
+ // Add entry paths from package.json#main, #bin, #exports
165
165
const entryPathsFromManifest = await getEntryPathFromManifest ( manifest , { ...sharedGlobOptions , ignore } ) ;
166
166
debugLogArray ( name , 'Entry paths in package.json' , entryPathsFromManifest ) ;
167
167
principal . addEntryPaths ( entryPathsFromManifest ) ;
0 commit comments