From 2f8a3926baa679a2465acd030a7f148878933685 Mon Sep 17 00:00:00 2001 From: Va Da Date: Mon, 4 Jun 2018 17:45:04 +0100 Subject: [PATCH] refactor: move /src -> /lib and create run.js --- index.js | 4 +--- {src => lib}/LimitedInput.js | 0 {src => lib}/createPrompter.js | 0 {src => lib}/defaults.js | 0 {src => lib}/getConfig.js | 0 {src => lib}/index.js | 0 {src => lib}/lernaUtils.js | 0 {src => lib}/questions.js | 0 run.js | 3 +++ 9 files changed, 4 insertions(+), 3 deletions(-) rename {src => lib}/LimitedInput.js (100%) rename {src => lib}/createPrompter.js (100%) rename {src => lib}/defaults.js (100%) rename {src => lib}/getConfig.js (100%) rename {src => lib}/index.js (100%) rename {src => lib}/lernaUtils.js (100%) rename {src => lib}/questions.js (100%) create mode 100644 run.js diff --git a/index.js b/index.js index 8a562153..b58e228f 100644 --- a/index.js +++ b/index.js @@ -1,3 +1 @@ -const {prompter} = require('./src/index'); - -module.exports = {prompter}; +module.exports = require('./lib/index'); diff --git a/src/LimitedInput.js b/lib/LimitedInput.js similarity index 100% rename from src/LimitedInput.js rename to lib/LimitedInput.js diff --git a/src/createPrompter.js b/lib/createPrompter.js similarity index 100% rename from src/createPrompter.js rename to lib/createPrompter.js diff --git a/src/defaults.js b/lib/defaults.js similarity index 100% rename from src/defaults.js rename to lib/defaults.js diff --git a/src/getConfig.js b/lib/getConfig.js similarity index 100% rename from src/getConfig.js rename to lib/getConfig.js diff --git a/src/index.js b/lib/index.js similarity index 100% rename from src/index.js rename to lib/index.js diff --git a/src/lernaUtils.js b/lib/lernaUtils.js similarity index 100% rename from src/lernaUtils.js rename to lib/lernaUtils.js diff --git a/src/questions.js b/lib/questions.js similarity index 100% rename from src/questions.js rename to lib/questions.js diff --git a/run.js b/run.js new file mode 100644 index 00000000..1c8d8948 --- /dev/null +++ b/run.js @@ -0,0 +1,3 @@ +const {prompter} = require('.'); + +prompter();