Socket
Socket
Sign inDemoInstall

@coffeekraken/s-monorepo

Package Overview
Dependencies
13
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coffeekraken/s-monorepo

Powerful class that let you manage your monorepo with features like publishing your packages with some dependencies check, run a command directly in all of your packages, and more...


Version published
Weekly downloads
383
decreased by-4.25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

{{#> layout-readme }}

SMonorepo

This package expose a simple SMonorepo class that allows you to perform actions on a monorepo.

Features

  • Execute a command into all the packages of the monorepo at once
  • List all the packages of the monorepo
  • Launch a development stack to transpile typescript files automatically
    • Can produce esm and/or cjs output
    • Transpiled files are stored under dist/pkg/%moduleSystem
    • Generate automatically the exports key in package.json
      • For this to work, you must name your export file exports.ts
    • Produce packages compatible with require (cjs) AND import (esm)
  • And more...

Usage

You can use these features through the JS API:

import __SMonorepo from '@coffeekraken/s-monorepo';
const monorepo = new __SMonorepo();
const result = await monorepo.list();

Or Using the sugar CLI:

# run a command in each repos
sugar monorepo.run "ls -la"
# List all the repos
sugar monorepo.list

Settings

{{> interface namespace='@coffeekraken.s-monorepo.node.interface.SMonorepoSettingsInterface' }}

Dev parameters

{{> interface namespace='@coffeekraken.s-monorepo.node.interface.SMonorepoDevParamsInterface' }}

List parameters

{{> interface namespace='@coffeekraken.s-monorepo.node.interface.SMonorepoListParamsInterface' }}

Run parameters

{{> interface namespace='@coffeekraken.s-monorepo.node.interface.SMonorepoRunParamsInterface' }}

Upgrade parameters

{{> interface namespace='@coffeekraken.s-monorepo.node.interface.SMonorepoUpgradeParamsInterface' }}

API

For more information about the API, please check out the API documentation

{{/ layout-readme }}

FAQs

Last updated on 18 Aug 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc