98c51dd660
* build: ensure consistent package-lock across multiple machines * build: fix linting errors and use npm ci instead of npm install * build: use a yarn.lock and yarn instead of package-lock and npm * chore: replace package-lock.json files with yarn.lock * chore: replace last instance of `npm install`
18 lines
336 B
Python
18 lines
336 B
Python
import subprocess
|
|
import sys
|
|
|
|
|
|
def npx(*npx_args):
|
|
call_args = [__get_executable_name()] + list(npx_args)
|
|
subprocess.check_call(call_args)
|
|
|
|
|
|
def __get_executable_name():
|
|
executable = 'npx'
|
|
if sys.platform == 'win32':
|
|
executable += '.cmd'
|
|
return executable
|
|
|
|
|
|
if __name__ == '__main__':
|
|
npx(*sys.argv[1:])
|