Sha256: 225820ab7c8883d0c94a083222904231247d3724be23e8f650cc1ee5e47cada2

Contents?: true

Size: 500 Bytes

Versions: 25

Compression:

Stored size: 500 Bytes

Contents

#!/usr/bin/env node
const {resolve} = require('path');
const {existsSync, writeFileSync, readFileSync} = require('fs');
const npmrc = resolve('.', '.npmrc');
const npmrcContents = process.argv[2];

if (!npmrcContents) {
  console.error('npmrc contents not specified.');
  process.exit(1);
}

if (existsSync(npmrc)) {
  console.log('.npmrc already exists.')
} else {
  writeFileSync(npmrc, npmrcContents)

  console.log('\nGenerated .npmrc:');
  console.log(readFileSync(npmrc, {encoding: 'utf8'}))
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 lib/snippets/generate-local-npmrc
shipit-engine-0.38.0 lib/snippets/generate-local-npmrc
shipit-engine-0.37.0 lib/snippets/generate-local-npmrc
shipit-engine-0.36.1 lib/snippets/generate-local-npmrc
shipit-engine-0.36.0 lib/snippets/generate-local-npmrc
shipit-engine-0.35.1 lib/snippets/generate-local-npmrc
shipit-engine-0.35.0 lib/snippets/generate-local-npmrc
shipit-engine-0.34.0 lib/snippets/generate-local-npmrc
shipit-engine-0.33.0 lib/snippets/generate-local-npmrc
shipit-engine-0.32.0 lib/snippets/generate-local-npmrc
shipit-engine-0.31.0 lib/snippets/generate-local-npmrc
shipit-engine-0.30.0 lib/snippets/generate-local-npmrc
shipit-engine-0.29.0 lib/snippets/generate-local-npmrc
shipit-engine-0.28.1 lib/snippets/generate-local-npmrc
shipit-engine-0.28.0 lib/snippets/generate-local-npmrc
shipit-engine-0.27.1 lib/snippets/generate-local-npmrc
shipit-engine-0.27.0 lib/snippets/generate-local-npmrc
shipit-engine-0.26.0 lib/snippets/generate-local-npmrc
shipit-engine-0.25.1 lib/snippets/generate-local-npmrc
shipit-engine-0.25.0 lib/snippets/generate-local-npmrc