Sha256: e8b5889d6dd288d9ada9340d379dc82eb498f0ac08426fc783ba8730650d5423

Contents?: true

Size: 394 Bytes

Versions: 6

Compression:

Stored size: 394 Bytes

Contents

#!/usr/bin/env node

const fs = require('fs');
const path = require('path');

const pkgFilepath = path.join(process.cwd(), 'package.json');
const pkg = require(pkgFilepath);
if (!pkg.scripts) {
  Object.assign(pkg, { scripts: {} });
}

Object.assign(pkg.scripts, {
  start: 'hauler-server $(pwd)',
});

const output = JSON.stringify(pkg, null, 2);
fs.writeFileSync(pkgFilepath, `${output}\n`);

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hauler-0.3.4 src/bin/update-scripts.js
hauler-0.3.3 src/bin/update-scripts.js
hauler-0.3.2 src/bin/update-scripts.js
hauler-0.3.1 src/bin/update-scripts.js
hauler-0.3.0 src/bin/update-scripts.js
hauler-0.2.0 bin/update-scripts.js