feature: moved config generation from postinstall to sib-manager

This commit is contained in:
plup 2019-09-17 15:35:57 -04:00
parent 8484786575
commit 0a0e0d0baf
2 changed files with 1 additions and 10 deletions

View File

@ -3,8 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"serve": "node server.js", "serve": "node server.js"
"postinstall": "node postinstall.js"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.4.4", "@babel/core": "^7.4.4",

View File

@ -1,8 +0,0 @@
const fs = require('fs');
const { exec } = require('child_process');
if (!fs.existsSync('src/config.json')) {
const cmd = `rsync -ru src/config.sample.json src/config.json`;
console.log(cmd);
exec(cmd);
}