mirror of
https://github.com/koush/scrypted.git
synced 2026-03-05 19:01:59 +00:00
20 lines
825 B
JavaScript
Executable File
20 lines
825 B
JavaScript
Executable File
#! /usr/bin/env node
|
|
const fs = require('fs');
|
|
|
|
const pkg = JSON.parse(fs.readFileSync('package.json'));
|
|
pkg.scripts = Object.assign({
|
|
"scrypted-setup-project": "scrypted-setup-project",
|
|
"prescrypted-setup-project": "scrypted-package-json",
|
|
"build": "scrypted-webpack",
|
|
"preprepublishOnly": "scrypted-changelog",
|
|
"prepublishOnly": "NODE_ENV=production scrypted-webpack",
|
|
"prescrypted-vscode-launch": "scrypted-webpack",
|
|
"scrypted-vscode-launch": "scrypted-deploy-debug",
|
|
"scrypted-deploy-debug": "scrypted-deploy-debug",
|
|
"scrypted-debug": "scrypted-debug",
|
|
"scrypted-deploy": "scrypted-deploy",
|
|
"scrypted-changelog": "scrypted-changelog",
|
|
"scrypted-package-json": "scrypted-package-json",
|
|
}, pkg.scripts);
|
|
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 3) + '\n');
|