mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13: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) {
|
||||
const parts = cmd.split(' ');
|
||||
// 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();
|
||||
cmd = 'node ' + fallback[x] + ' ' + parts.join(' ');
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user