Create /tmp directory

This commit is contained in:
Aleksandr Statciuk 2023-04-30 05:16:45 +03:00
parent 3f5b98de81
commit fa47e80a8f
5 changed files with 4 additions and 6 deletions

View file

@ -1,7 +1,7 @@
const _ = require('lodash')
const file = require('./file')
const DATA_DIR = process.env.DATA_DIR || './scripts/data'
const DATA_DIR = process.env.DATA_DIR || './scripts/tmp/data'
class API {
constructor(filepath) {

View file

@ -1,7 +1,7 @@
const nedb = require('nedb-promises')
const file = require('./file')
const DB_DIR = process.env.DB_DIR || './scripts/database'
const DB_DIR = process.env.DB_DIR || './scripts/tmp/database'
class Database {
constructor(filepath) {

View file

@ -4,7 +4,7 @@ const logger = require('./logger')
const file = require('./file')
const PUBLIC_DIR = process.env.PUBLIC_DIR || '.gh-pages'
const LOGS_DIR = process.env.LOGS_DIR || 'scripts/logs/generators'
const LOGS_DIR = process.env.LOGS_DIR || 'scripts/tmp/logs/generators'
const generator = {}