This package has been deprecated

Author message:

Deprecated in favor of @kiwicom/monorepo-npm-publisher

@kiwicom/npm-publisher

0.9.0 • Public • Published

This package prepares our public NPM packages to be published. It can automatically find these packages, transpile them based on our Babel configuration, copy Flow versions of the files and automatically publish it to NPM (in CI). It publishes only packages with new version and it ignores old or current versions.

This publisher uses @kiwicom/babel-preset-kiwicom behind the scenes to transpile JS and Flow files.

Please note: changelogs are not responsibility of this package. You should write them manually for your users.

Installation

yarn add --dev @kiwicom/npm-publisher

This package is intended to be run by CI server.

Usage

import path from 'path';
import publish from '@kiwicom/npm-publisher';

(async () => {
  await publish({
    // Run in a "dry" mode (without publishing to NPM)?
    dryRun: true,

    // Where to store transpiled code before it's being published.
    buildCache: path.join(os.tmpdir(), 'PROJECT_ID', '.build'),

    // Folder where to look for NPM packages. It takes into account
    // only packages with public visibility set in `package.json`.
    packages: '../packages',

    npmAuthToken: 'TODO: https://www.npmjs.com/settings/<USERNAME>/tokens',

    // TODO: add a check that this script is actually used from CI
  });
})();

This NPM publisher automatically takes .npmignore (or .gitignore) files into account. Read this info for more details: https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package

Readme

Keywords

none

Package Sidebar

Install

npm i @kiwicom/npm-publisher

Weekly Downloads

1

Version

0.9.0

License

MIT

Unpacked Size

14.9 kB

Total Files

11

Last publish

Collaborators

  • mvidalgarcia
  • dsil
  • jakubzaba
  • robincsl_kiwi
  • kiwicom.platform
  • dinodsaurus