From 275bf78022ead774dc59306717e3a5040e83332f Mon Sep 17 00:00:00 2001 From: Alhadis Date: Wed, 26 May 2021 08:22:06 +1000 Subject: [PATCH] Fix an idiotic bug with npx(1) Backticks aren't escaped in npx(1)'s positional arguments like they used to, and they're also passed to sh(1) as double-quoted strings (which the FUCK would you not use single-quotes??!). Because the `--header` comment contained "run `make types` to update", NPM was essentially fork-bombing its process. References: npm/run-script#14 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2761010..644625b 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ all: install lint types test # Generate TypeScript declarations from JSDoc types: index.d.ts index.d.ts: index.mjs lib/*.mjs - npx jg typewrite \ + "`npx jg -p typewrite`" \ --exclude BlendModes \ --declare const BlendModes '{[key: string]: (...args: number[]) => number};' \ --header '// Generated file; run `make types` to update.' \