next save conversation

This commit is contained in:
Leifer Mendez
2022-11-15 20:47:12 +01:00
parent a5c38658a8
commit 1290d6b478
12 changed files with 71 additions and 50 deletions

View File

@@ -2,7 +2,7 @@
"name": "@bot-whatsapp/provider",
"version": "0.0.1",
"description": "Esto es el conector a Twilio, Meta, etc...",
"main": "./lib/bundle.mock.cjs",
"main": "./lib/mock/index.cjs",
"private": true,
"scripts": {
"test.unit": "cross-env NODE_ENV=test node ../../node_modules/uvu/bin.js tests"
@@ -15,6 +15,8 @@
"qr-image": "^3.2.0"
},
"files": [
"./lib/*"
"./lib/mock/*",
"./lib/twilio/*",
"./lib/web-whatsapp/*"
]
}

View File

@@ -5,7 +5,7 @@ module.exports = [
{
input: join(__dirname, 'web-whatsapp', 'index.js'),
output: {
file: join(__dirname, 'lib', 'bundle.web-whatsapp.cjs'),
file: join(__dirname, 'lib', 'web-whatsapp', 'index.cjs'),
format: 'cjs',
},
plugins: [commonjs()],
@@ -13,7 +13,7 @@ module.exports = [
{
input: join(__dirname, 'twilio', 'index.js'),
output: {
file: join(__dirname, 'lib', 'bundle.twilio.cjs'),
file: join(__dirname, 'lib', 'twilio', 'index.cjs'),
format: 'cjs',
},
plugins: [commonjs()],
@@ -21,7 +21,7 @@ module.exports = [
{
input: join(__dirname, 'mock', 'index.js'),
output: {
file: join(__dirname, 'lib', 'bundle.mock.cjs'),
file: join(__dirname, 'lib', 'mock', 'index.cjs'),
format: 'cjs',
},
plugins: [commonjs()],