Merge pull request #750 from judsonjuniorr/v2-path-mappings

V2 Path mapping & deps fix & bundler changed to tsup
This commit is contained in:
Davidson Gomes
2024-08-12 09:43:08 -03:00
committed by GitHub
90 changed files with 645 additions and 667 deletions

View File

@@ -2,13 +2,14 @@
"name": "evolution-api",
"version": "2.0.9-rc",
"description": "Rest api for communication with WhatsApp",
"main": "./dist/src/main.js",
"main": "./dist/main.js",
"type": "commonjs",
"scripts": {
"build": "tsc",
"start": "ts-node --files --transpile-only ./src/main.ts",
"start:prod": "node dist/src/main",
"dev:server": "clear && tsnd --files --transpile-only --respawn --ignore-watch node_modules ./src/main.ts",
"test": "clear && tsnd --files --transpile-only --respawn --ignore-watch node_modules ./test/all.test.ts",
"build": "tsup",
"start": "tsnd -r tsconfig-paths/register --files --transpile-only ./src/main.ts",
"start:prod": "node dist/main",
"dev:server": "clear && tsnd -r tsconfig-paths/register --files --transpile-only --respawn --ignore-watch node_modules ./src/main.ts",
"test": "clear && tsnd -r tsconfig-paths/register --files --transpile-only --respawn --ignore-watch node_modules ./test/all.test.ts",
"lint": "eslint --fix --ext .ts src",
"db:generate": "node runWithProvider.js \"npx prisma generate --schema ./prisma/DATABASE_PROVIDER-schema.prisma\"",
@@ -75,11 +76,13 @@
"jimp": "^0.16.13",
"join": "^3.0.0",
"js-yaml": "^4.1.0",
"json-schema": "^0.4.0",
"jsonschema": "^1.4.1",
"link-preview-js": "^3.0.4",
"long": "^5.2.3",
"mime": "^3.0.0",
"minio": "^8.0.1",
"node-cache": "^5.1.2",
"node-mime-types": "^1.1.0",
"node-windows": "^1.0.0-beta.8",
"openai": "^4.52.7",
"parse-bmfont-xml": "^1.1.4",
@@ -92,6 +95,7 @@
"sharp": "^0.32.2",
"socket.io": "^4.7.1",
"socks-proxy-agent": "^8.0.1",
"tsup": "^8.2.4",
"uuid": "^9.0.0",
"xml2js": "^0.6.2",
"yamljs": "^0.3.0"
@@ -101,7 +105,7 @@
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@types/js-yaml": "^4.0.5",
"@types/mime-types": "^2.1.1",
"@types/json-schema": "^7.0.15",
"@types/node": "^18.15.11",
"@types/node-windows": "^0.1.2",
"@types/qrcode": "^1.5.0",
@@ -116,6 +120,7 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^2.8.8",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.2.0",
"typescript": "^4.9.5"
}
}