Skip to content

Keep copy of package.json in state storage. #2

@martinheidegger

Description

@martinheidegger

Currently the package.json of each package is loaded before the package data can be loaded.

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

lambda-plugins/index.ts

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[] 
 } 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions