From 0fc1fc6ebf2fa716c0c013171245147f8286b8e7 Mon Sep 17 00:00:00 2001 From: Mark Striemer Date: Mon, 7 Nov 2022 15:04:24 +0000 Subject: [PATCH] Bug 1799207 - Part 1: Fix installing lit on Windows r=hjones Differential Revision: https://phabricator.services.mozilla.com/D161341 --- toolkit/content/vendor/lit/package-lock.json | 21 +++++++++++++++++++- toolkit/content/vendor/lit/package.json | 7 ++++--- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/toolkit/content/vendor/lit/package-lock.json b/toolkit/content/vendor/lit/package-lock.json index b530f3adf6f1..3d6b6e5e22a1 100644 --- a/toolkit/content/vendor/lit/package-lock.json +++ b/toolkit/content/vendor/lit/package-lock.json @@ -12,7 +12,8 @@ "lit": "^2.4.0" }, "devDependencies": { - "esbuild": "^0.15.10" + "esbuild": "^0.15.10", + "mkdirp": "^1.0.4" } }, "node_modules/@lit/reactive-element": { @@ -104,6 +105,18 @@ "dependencies": { "@types/trusted-types": "^2.0.2" } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } } }, "dependencies": { @@ -180,6 +193,12 @@ "requires": { "@types/trusted-types": "^2.0.2" } + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true } } } diff --git a/toolkit/content/vendor/lit/package.json b/toolkit/content/vendor/lit/package.json index 21e8eae1e231..5d727785da0b 100644 --- a/toolkit/content/vendor/lit/package.json +++ b/toolkit/content/vendor/lit/package.json @@ -6,8 +6,8 @@ "scripts": { "build": "esbuild index.mjs --bundle --outfile=lit.all.mjs --format=esm --legal-comments=inline", "patch": "patch lit.all.mjs lit-html-no-inner-html.patch", - "mv-dest": "mkdir -p ../../widgets/vendor && mv lit.all.mjs ../../widgets/vendor/lit.all.mjs", - "vendor": "npm install && npm run build && npm run patch && npm run mv-dest", + "mv-dest": "mkdirp ../../widgets/vendor && mv lit.all.mjs ../../widgets/vendor/lit.all.mjs", + "vendor": "npm ci && npm run build && npm run patch && npm run mv-dest", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", @@ -16,6 +16,7 @@ "lit": "^2.4.0" }, "devDependencies": { - "esbuild": "^0.15.10" + "esbuild": "^0.15.10", + "mkdirp": "^1.0.4" } }