Use proxy bin script
ci/woodpecker/push/woodpecker Pipeline failed Podrobnosti

This commit is contained in:
tree 2022-10-15 17:39:22 +02:00
rodič dde42ae817
revize 8cc4a158f4
3 změnil soubory, kde provedl 14 přidání a 3 odebrání

Zobrazit soubor

@ -9,7 +9,7 @@
"test": "playwright test",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"make-data": "./scripts/make-data.js"
"make-data": "./scripts/run.sh scripts/make-data.js"
},
"devDependencies": {
"@playwright/test": "^1.25.0",

Zobrazit soubor

@ -1,5 +1,3 @@
#!/usr/bin/env node
import yaml from 'js-yaml'
import fs from 'fs'

13
scripts/run.sh Executable file
Zobrazit soubor

@ -0,0 +1,13 @@
#!/bin/sh
BUN_BIN=`type -p bun`
NODE_BIN=`type -p node`
for engine in $BUN_BIN $NODE_BIN
do
if [ -x "$engine" ]
then
"$engine" $1
break
fi
done