From e8342c37d5f7e4b6e9766d6e153a0ff8b727f6ad Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 1 Nov 2024 16:26:00 -0700 Subject: [PATCH] regexp-generator: Ensure folder exists before generating --- tools/regexp-generator/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/regexp-generator/package.json b/tools/regexp-generator/package.json index 57b661b8c0..977418ec29 100644 --- a/tools/regexp-generator/package.json +++ b/tools/regexp-generator/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", + "prebuild": "mkdirp ../../test/built-ins/RegExp/CharacterClassEscapes", "build": "node index.js" }, "author": "", @@ -14,5 +15,8 @@ "jsesc": "^2.5.1", "regexpu-core": "^4.2.0", "slugify": "^1.3.0" + }, + "devDependencies": { + "mkdirp": "^3.0.1" } }