feature: moved config generation from postinstall to sib-manager
This commit is contained in:
parent
8484786575
commit
0a0e0d0baf
@ -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",
|
||||||
|
@ -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);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user