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",
"license": "MIT",
"scripts": {
"serve": "node server.js",
"postinstall": "node postinstall.js"
"serve": "node server.js"
},
"devDependencies": {
"@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);
}