Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/meta-updater

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/meta-updater

Keeps meta files up-to-date in a monorepo

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.4K
decreased by-53.06%
Maintainers
2
Weekly downloads
 
Created
Source

@pnpm/meta-updater

Keeps meta files up-to-date in a monorepo

npm version

Installation

<pnpm|yarn|npm> add @pnpm/meta-updater

Usage

Create a JavaScript file that contains the updater functions. For instance, the next file will have updaters for package.json and tsconfig.json files:

module.exports = (workspaceDir) => {
  return {
    'package.json': (manifest, dir) => {
      return {
        ...manifest,
        author: 'Foo Bar',
      }
    },
    'tsconfig.json': (tsConfig, dir) => {
      return {
        ...tsConfig,
        compilerOptions: {
          outDir: 'lib',
          rootDir: 'src',
        },
      }
    },
  }
}

To perform the update on the affected config files, pass the path to the updater file to the CLI. For instance: meta-updater ./update.js

License

MIT © Zoltan Kochan

FAQs

Package last updated on 28 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc