@trayio/tray-npm
TypeScript icon, indicating that this package has built-in type declarations

0.35.0 • Public • Published

Script to build and modify workspaces before publishing to NPM

Usage

Importing the module

import * as path from 'path';
import { NpmExtensions } from '@trayio/tray-npm';
	
const dependencyVersionUpdater = new NpmExtensions();
const rootWorkspacesPath = process.env.PROJECT_CWD || '';
const modulePath = process.env.INIT_CWD || '';

const rootPackageJsonPath = path.join(rootWorkspacesPath, 'package.json');
const modulePackageJsonPath = path.join(modulePath, 'package.json');

dependencyVersionUpdater.resolveDependencyVersions(
	rootPackageJsonPath,
	modulePackageJsonPath
)

NPM

npx npmx resolveDependencies

/@trayio/tray-npm/

    Package Sidebar

    Install

    npm i @trayio/tray-npm

    Weekly Downloads

    0

    Version

    0.35.0

    License

    MIT

    Unpacked Size

    14.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • trayprod
    • johnbastian_trayio
    • thomaschaplin
    • simone_trayio