From 0a0e0d0baf556e22e0b3d1910a8a3524235dc5de Mon Sep 17 00:00:00 2001 From: plup Date: Tue, 17 Sep 2019 15:35:57 -0400 Subject: [PATCH] feature: moved config generation from postinstall to sib-manager --- package.json | 3 +-- postinstall.js | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 postinstall.js diff --git a/package.json b/package.json index 637731c..9d5a49d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/postinstall.js b/postinstall.js deleted file mode 100644 index ff2fe59..0000000 --- a/postinstall.js +++ /dev/null @@ -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); -} \ No newline at end of file