From 602a78a48a7e807ad89f2920c48f13c79cab2480 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Thu, 19 May 2022 13:48:45 -0500 Subject: [PATCH] =?UTF-8?q?Move=20apiDirectory=20to=20it=E2=80=99s=20own?= =?UTF-8?q?=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-lists.js | 4 +++- helpers/api/config.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 helpers/api/config.js diff --git a/build-lists.js b/build-lists.js index 3edadbc..b32e6de 100644 --- a/build-lists.js +++ b/build-lists.js @@ -30,6 +30,9 @@ import { import { PaginatedList } from '~/helpers/api/pagination.js' +import { + apiDirectory +} from '~/helpers/api/config.js' import { cliOptions @@ -38,7 +41,6 @@ import { // Setup dotenv dotenv.config() -export const apiDirectory = './static/api' function normalizeVersion ( rawVersion ) { diff --git a/helpers/api/config.js b/helpers/api/config.js new file mode 100644 index 0000000..2740464 --- /dev/null +++ b/helpers/api/config.js @@ -0,0 +1 @@ +export const apiDirectory = './static/api'