mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 07:43:08 +02:00
fix: postinstall
search path
This commit is contained in:
parent
db4fd843f4
commit
18e63bf2dc
@ -21,7 +21,7 @@ function log(...strings) {
|
|||||||
async function npx(cmd) {
|
async function npx(cmd) {
|
||||||
const parts = cmd.split(' ');
|
const parts = cmd.split(' ');
|
||||||
// fallback for environments with no symlink/npx support (PebbleHost)
|
// fallback for environments with no symlink/npx support (PebbleHost)
|
||||||
if (!fs.existsSync(`./node_modules/.bin/${parts[0]}`)) {
|
if (!fs.existsSync(pathify(`./node_modules/.bin/${parts[0]}`))) {
|
||||||
const x = parts.shift();
|
const x = parts.shift();
|
||||||
cmd = 'node ' + fallback[x] + ' ' + parts.join(' ');
|
cmd = 'node ' + fallback[x] + ' ' + parts.join(' ');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user