@monorepo-utils/package-utils

Package utility for monorepo.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
594Apr 9, 2021Jul 19, 2018Minified + gzip package size for @monorepo-utils/package-utils in KB

Readme

@monorepo-utils/package-utils

Package utility for monorepo.

Install

Install with npm:

npm install @monorepo-utils/package-utils

Usage

getPackages(rootDirectory: string): PackageResult[]

export interface PackageResult {
    // path to package's directory
    location: string;
    // package.json content
    packageJSON: any;
}
export declare const getPackages: (rootDirectory: string) => PackageResult[];

Changelog

See Releases page.

Running tests

yarn test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Thanks to azz/get-monorepo-packages: Get a list of packages from a monorepo

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.