Sha256: dd0c748aa8b524434ecc5d91a226cc82614385aea8d87520ec79937654f1b082

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 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: './node_modules/hauler/bin/dev-server.js',
});

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hauler-0.1.0 bin/update-scripts.js