mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Use already-loaded app metadata
This commit is contained in:
@@ -81,8 +81,7 @@ const EXCLUDE_REGEXPS_SOURCES = [
|
||||
]
|
||||
|
||||
// Ignore spec directories in all bundled packages
|
||||
const packageMetadata = require(path.join(CONFIG.repositoryRootPath, 'package.json'))
|
||||
for (let packageName in packageMetadata.packageDependencies) {
|
||||
for (let packageName in CONFIG.appMetadata.packageDependencies) {
|
||||
EXCLUDE_REGEXPS_SOURCES.push('^' + escapeRegExp(path.join(CONFIG.repositoryRootPath, 'node_modules', packageName, 'spec')))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user