Better wording for assertNoPnpmDlx

This commit is contained in:
Joseph Garrone
2024-06-28 19:01:00 +02:00
parent ff2321fde5
commit 249877b9c5

View File

@ -4,9 +4,9 @@ export function assertNoPnpmDlx() {
if (__dirname.includes(`${pathSep}pnpm${pathSep}dlx${pathSep}`)) { if (__dirname.includes(`${pathSep}pnpm${pathSep}dlx${pathSep}`)) {
console.log( console.log(
[ [
"Please don't use `pnpm dlx keycloakify`. Even if you're using pnpm as a package manager", "Please don't use `pnpm dlx keycloakify`.",
"use `npx keycloakify` or `pnpm exec keycloakify` instead since you want to use the keycloakify version that is installed in your project and", "\nUse `npx keycloakify` or `pnpm exec keycloakify` instead since you want to use the",
"not the latest version on NPM." "keycloakify version that is installed in your project and not the latest version on NPM."
].join(" ") ].join(" ")
); );
process.exit(1); process.exit(1);