fix(cli): 🔥 update instructions

This commit is contained in:
Leifer Mendez
2022-12-18 14:14:16 +01:00
parent 96e220cd71
commit a21633fb7c
6 changed files with 16 additions and 24 deletions

View File

@@ -18,7 +18,7 @@
"exports": {
"./mock": "./lib/mock/index.cjs",
"./mongo": "./lib/mongo/index.cjs",
"./json-file": "./lib/json-file/index.cjs",
"./json": "./lib/json/index.cjs",
"./mysql": "./lib/mysql/index.cjs"
}
}

View File

@@ -31,10 +31,10 @@ module.exports = [
plugins: [commonjs()],
},
{
input: join(__dirname, 'src', 'json-file', 'index.js'),
input: join(__dirname, 'src', 'json', 'index.js'),
output: {
banner: banner['banner.output'].join(''),
file: join(__dirname, 'lib', 'json-file', 'index.cjs'),
file: join(__dirname, 'lib', 'json', 'index.cjs'),
},
plugins: [commonjs()],
},

View File

@@ -1,8 +1,7 @@
const path = require('path')
const StormDB = require('stormdb')
const engine = new StormDB.localFileEngine(
path.join(process.cwd(), './db.stormdb')
)
const { join } = require('path')
const engine = new StormDB.localFileEngine(join(process.cwd(), './db.stormdb'))
class JsonFileAdapter {
db