@vnejs/tools 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/tools",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "CLI tools of @vnejs",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -69,10 +69,8 @@ module.exports = async (options) => {
69
69
  if (!c) return;
70
70
  const dirName = `${height}p`;
71
71
  await clear(dirName, options.media);
72
- await Promise.all([
73
- resize(dirName, options.media, (d) => [Math.round((d.width * height) / 1080)], "original", options),
74
- resize(dirName, options.media, (d) => [Math.round((d.width * height) / 2160)], "original-4k", options),
75
- ]);
72
+ await resize(dirName, options.media, (d) => [Math.round((d.width * height) / 1080)], "original", options);
73
+ await resize(dirName, options.media, (d) => [Math.round((d.width * height) / 2160)], "original-4k", options);
76
74
  });
77
75
 
78
76
  // addPromise(["all", "mobile", "360"].includes(options.target), 360);
@@ -66,10 +66,8 @@ module.exports = async (options) => {
66
66
 
67
67
  const dirName = `${height}p`;
68
68
  await clear(dirName, options.media);
69
- await Promise.all([
70
- resize(dirName, options.media, height, "original", options),
71
- resize(dirName, options.media, height, "original-4k", options),
72
- ]);
69
+ await resize(dirName, options.media, height, "original", options);
70
+ await resize(dirName, options.media, height, "original-4k", options);
73
71
  });
74
72
 
75
73
  // addPromise(["all", "mobile", "360"].includes(options.target), 360);