-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Currently the package.json of each package is loaded before the package data can be loaded.
Line 262 in 8a03c5e
data = this.package(opts).then(pkg => loadData(this.name, this.path, pkg)) |
This can be optimized by adding all data of package.json to the state
Lines 113 to 117 in 8a03c5e
interface StateFs { | |
hash: string | |
installed: string[] | |
names: string[] | |
} |
to look something like:
interface StateFs {
hash: string
installed: {
[key: string]: Package
},
names: string[]
}