From e6c782c61718249e7a3dee90f2aee65e528e715b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 14 Jan 2017 11:05:21 +0900 Subject: [PATCH] Refactor --- package.json | 3 ++- init.js => tools/init.js | 2 +- update.sh => tools/update.sh | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename init.js => tools/init.js (98%) rename update.sh => tools/update.sh (100%) diff --git a/package.json b/package.json index 237fdbffa..01cf83837 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ "bugs": "https://github.com/syuilo/misskey/issues", "main": "./built/index.js", "scripts": { - "config": "node ./init.js", + "config": "node ./tools/init.js", "start": "node ./built/index.js", + "update": "./tools/update.sh", "swagger": "node ./swagger.js", "build": "gulp build", "rebuild": "gulp rebuild", diff --git a/init.js b/tools/init.js similarity index 98% rename from init.js rename to tools/init.js index 424b17b55..1c012ea0d 100644 --- a/init.js +++ b/tools/init.js @@ -2,7 +2,7 @@ const fs = require('fs'); const yaml = require('js-yaml'); const inquirer = require('inquirer'); -const configDirPath = `${__dirname}/.config`; +const configDirPath = `${__dirname}/../.config`; const configPath = `${configDirPath}/config.yml`; const form = [ diff --git a/update.sh b/tools/update.sh similarity index 100% rename from update.sh rename to tools/update.sh