mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
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:
parent
b206483c7c
commit
c1d7ab3fa9
4044
npm-shrinkwrap.json
generated
4044
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -46,6 +46,15 @@
|
|||||||
"author": "Balena Inc. <hello@etcher.io>",
|
"author": "Balena Inc. <hello@etcher.io>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"platformSpecificDependencies": [
|
"platformSpecificDependencies": [
|
||||||
|
"xmlbuilder",
|
||||||
|
"xmldom",
|
||||||
|
"@types/plist",
|
||||||
|
"@types/verror",
|
||||||
|
"crc",
|
||||||
|
"iconv-corefoundation",
|
||||||
|
"plist",
|
||||||
|
"smart-buffer",
|
||||||
|
"dmg-license",
|
||||||
"fsevents",
|
"fsevents",
|
||||||
"winusb-driver-generator"
|
"winusb-driver-generator"
|
||||||
],
|
],
|
||||||
@ -66,6 +75,7 @@
|
|||||||
"@types/terser-webpack-plugin": "^5.0.2",
|
"@types/terser-webpack-plugin": "^5.0.2",
|
||||||
"@types/tmp": "^0.2.0",
|
"@types/tmp": "^0.2.0",
|
||||||
"@types/webpack-node-externals": "^2.5.0",
|
"@types/webpack-node-externals": "^2.5.0",
|
||||||
|
"aws4-axios": "2.2.1",
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
"copy-webpack-plugin": "^7.0.0",
|
"copy-webpack-plugin": "^7.0.0",
|
||||||
"css-loader": "^5.0.1",
|
"css-loader": "^5.0.1",
|
||||||
|
@ -29,6 +29,10 @@ const SHRINKWRAP_FILENAME = path.join(__dirname, '..', 'npm-shrinkwrap.json');
|
|||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
const cleaned = omit(shrinkwrap, packageInfo.platformSpecificDependencies);
|
const cleaned = omit(shrinkwrap, packageInfo.platformSpecificDependencies);
|
||||||
|
for (const item of Object.values(cleaned.dependencies)) {
|
||||||
|
// @ts-ignore
|
||||||
|
item.dev = true;
|
||||||
|
}
|
||||||
await writeFileAsync(
|
await writeFileAsync(
|
||||||
SHRINKWRAP_FILENAME,
|
SHRINKWRAP_FILENAME,
|
||||||
JSON.stringify(cleaned, null, JSON_INDENT),
|
JSON.stringify(cleaned, null, JSON_INDENT),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user