increase 95% coverage

This commit is contained in:
Leifer Mendez
2022-11-28 11:48:25 +01:00
parent f466b0cf7b
commit 82a6b634a9
11 changed files with 36 additions and 19 deletions

View File

@@ -12,7 +12,8 @@
"dotenv": "^16.0.3",
"mongodb": "^4.11.0"
},
"files": [
"./lib/*"
]
"exports": {
"./mock": "./lib/mock/index.cjs",
"./mongo": "./lib/mongo/index.cjs"
}
}

View File

@@ -3,7 +3,7 @@ const { join } = require('path')
module.exports = [
{
input: join(__dirname, 'mock', 'index.js'),
input: join(__dirname, 'src', 'mock', 'index.js'),
output: {
file: join(__dirname, 'lib', 'mock', 'index.cjs'),
format: 'cjs',
@@ -11,7 +11,7 @@ module.exports = [
plugins: [commonjs()],
},
{
input: join(__dirname, 'mongo', 'index.js'),
input: join(__dirname, 'src', 'mongo', 'index.js'),
output: {
file: join(__dirname, 'lib', 'mongo', 'index.cjs'),
format: 'cjs',