Update dependencies, use aws4-axios@2.2.1 to avoid adding more dependiencies

Also filter out dmg-license dependencies from the shrinkwrap file
aws4-axios@2.3.0 brings in react-native, see aws/aws-sdk-js-v3#1797

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2021-02-15 18:03:05 +01:00
parent b206483c7c
commit c1d7ab3fa9
3 changed files with 1330 additions and 2728 deletions

4044
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -46,6 +46,15 @@
"author": "Balena Inc. <hello@etcher.io>",
"license": "Apache-2.0",
"platformSpecificDependencies": [
"xmlbuilder",
"xmldom",
"@types/plist",
"@types/verror",
"crc",
"iconv-corefoundation",
"plist",
"smart-buffer",
"dmg-license",
"fsevents",
"winusb-driver-generator"
],
@ -66,6 +75,7 @@
"@types/terser-webpack-plugin": "^5.0.2",
"@types/tmp": "^0.2.0",
"@types/webpack-node-externals": "^2.5.0",
"aws4-axios": "2.2.1",
"chai": "^4.2.0",
"copy-webpack-plugin": "^7.0.0",
"css-loader": "^5.0.1",

View File

@ -29,6 +29,10 @@ const SHRINKWRAP_FILENAME = path.join(__dirname, '..', 'npm-shrinkwrap.json');
async function main() {
try {
const cleaned = omit(shrinkwrap, packageInfo.platformSpecificDependencies);
for (const item of Object.values(cleaned.dependencies)) {
// @ts-ignore
item.dev = true;
}
await writeFileAsync(
SHRINKWRAP_FILENAME,
JSON.stringify(cleaned, null, JSON_INDENT),