Skip to content

Commit

Permalink
chore(deps): update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jul 26, 2024
1 parent 1973dc0 commit e196aea
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 129 deletions.
170 changes: 46 additions & 124 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"sharp": "^0.33.3",
"standard-version": "^9.5.0",
"svgo": "^3.3.2",
"tempy": "^1.0.1",
"tempy": "^3.1.0",
"typescript": "^5.5.3",
"url-loader": "^4.1.1",
"webpack": "^5.92.1"
Expand Down
4 changes: 2 additions & 2 deletions test/ImageminPlugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import path from "path";
import fs from "fs";
import webpack from "webpack";
import fileType from "file-type";
import tempy from "tempy";
import pify from "pify";

import {
Expand Down Expand Up @@ -2265,12 +2264,13 @@ describe("imagemin plugin", () => {
});

it("should generate image for 'import' and 'asset' types, minimizer original asset, keep and cache result", async () => {
const { temporaryDirectory } = await import("tempy");
const compiler = await runWebpack(
{
entry: path.join(fixturesPath, "generator-and-minimizer-4.js"),
cache: {
type: "filesystem",
cacheLocation: tempy.directory(),
cacheLocation: temporaryDirectory(),
},
copyPlugin: true,
imageminPluginOptions: {
Expand Down
4 changes: 2 additions & 2 deletions test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fs from "fs";
import path from "path";

import pify from "pify";
import tempy from "tempy";
import webpack from "webpack";
import MiniCssExtractPlugin from "mini-css-extract-plugin";

Expand Down Expand Up @@ -33,6 +32,7 @@ async function runWebpack(maybeOptions, getCompiler = false) {

const configs = [];
const CopyPlugin = (await import("copy-webpack-plugin")).default;
const { temporaryDirectory } = await import("tempy");

for (const options of maybeMultiCompiler) {
const config = {
Expand Down Expand Up @@ -129,7 +129,7 @@ async function runWebpack(maybeOptions, getCompiler = false) {
path:
options.output && options.output.path
? options.output.path
: tempy.directory(),
: temporaryDirectory(),
},
plugins: [],
};
Expand Down

0 comments on commit e196aea

Please sign in to comment.