@lead-routing/cli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -902,8 +902,15 @@ function getTunneledDbUrl(localDir, localPort) {
|
|
|
902
902
|
}
|
|
903
903
|
function findPrismaBin() {
|
|
904
904
|
const candidates = [
|
|
905
|
+
// npx / npm global install: @lead-routing/cli is nested under the scope dir,
|
|
906
|
+
// so prisma lands 3 levels above dist/ in node_modules/.bin/
|
|
907
|
+
// e.g. ~/.npm/_npx/HASH/node_modules/.bin/prisma
|
|
908
|
+
path.join(__dirname, "../../../.bin/prisma"),
|
|
909
|
+
path.join(__dirname, "../../../prisma/bin/prisma.js"),
|
|
910
|
+
// Fallback: prisma nested inside the package's own node_modules (hoisted install)
|
|
905
911
|
path.join(__dirname, "../node_modules/.bin/prisma"),
|
|
906
912
|
path.join(__dirname, "../node_modules/prisma/bin/prisma.js"),
|
|
913
|
+
// Monorepo dev paths
|
|
907
914
|
path.resolve("packages/db/node_modules/.bin/prisma"),
|
|
908
915
|
path.resolve("node_modules/.bin/prisma"),
|
|
909
916
|
path.resolve("node_modules/.pnpm/node_modules/.bin/prisma")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lead-routing/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Self-hosted deployment CLI for Lead Routing",
|
|
5
5
|
"homepage": "https://github.com/lead-routing/lead-routing",
|
|
6
6
|
"keywords": ["salesforce", "lead-routing", "self-hosted", "deployment", "cli"],
|