Bug 1799207 - Part 1: Fix installing lit on Windows r=hjones

Differential Revision: https://phabricator.services.mozilla.com/D161341
This commit is contained in:
Mark Striemer 2022-11-07 15:04:24 +00:00
Родитель 911bb35d67
Коммит 0fc1fc6ebf
2 изменённых файлов: 24 добавлений и 4 удалений

21
toolkit/content/vendor/lit/package-lock.json сгенерированный поставляемый
Просмотреть файл

@ -12,7 +12,8 @@
"lit": "^2.4.0" "lit": "^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"esbuild": "^0.15.10" "esbuild": "^0.15.10",
"mkdirp": "^1.0.4"
} }
}, },
"node_modules/@lit/reactive-element": { "node_modules/@lit/reactive-element": {
@ -104,6 +105,18 @@
"dependencies": { "dependencies": {
"@types/trusted-types": "^2.0.2" "@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": { "dependencies": {
@ -180,6 +193,12 @@
"requires": { "requires": {
"@types/trusted-types": "^2.0.2" "@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
} }
} }
} }

7
toolkit/content/vendor/lit/package.json поставляемый
Просмотреть файл

@ -6,8 +6,8 @@
"scripts": { "scripts": {
"build": "esbuild index.mjs --bundle --outfile=lit.all.mjs --format=esm --legal-comments=inline", "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", "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", "mv-dest": "mkdirp ../../widgets/vendor && mv lit.all.mjs ../../widgets/vendor/lit.all.mjs",
"vendor": "npm install && npm run build && npm run patch && npm run mv-dest", "vendor": "npm ci && npm run build && npm run patch && npm run mv-dest",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "author": "",
@ -16,6 +16,7 @@
"lit": "^2.4.0" "lit": "^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"esbuild": "^0.15.10" "esbuild": "^0.15.10",
"mkdirp": "^1.0.4"
} }
} }