Skip to content

Commit

Permalink
chore(deps): update npm dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Feb 29, 2024
1 parent a55310c commit 6b91880
Show file tree
Hide file tree
Showing 25 changed files with 71 additions and 52 deletions.
4 changes: 2 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"matchManagers": ["npm"],
"matchDepTypes": ["devDependencies"],
"excludePackagePrefixes": ["webpack"],
"excludePackageNames": ["@playwright/test", "react", "react-dom", "typescript", "pnpm"]
"excludePackageNames": ["@playwright/test", "react", "react-dom", "typescript", "pnpm", "copy-webpack-plugin", "internal-ip", "execa", "sass-loader"]
},
{
"groupName": "npm dependencies",
Expand All @@ -69,7 +69,7 @@
{
"groupName": "npm ignored dependencies",
"matchManagers": ["npm"],
"matchPackageNames": ["@playwright/test", "react", "react-dom", "typescript", "pnpm"],
"matchPackageNames": ["@playwright/test", "react", "react-dom", "typescript", "pnpm", "copy-webpack-plugin", "internal-ip", "execa", "sass-loader"],
"enabled": false
},
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
"oxlint": "0.2.10",
"prettier": "3.2",
"prettier-2": "npm:prettier@^2",
"rimraf": "3.0.2",
"rimraf": "5.0.5",
"ts-jest": "29.1.2",
"typescript": "5.0.2",
"webpack": "5.90.0",
"webpack-cli": "4.10.0",
"why-is-node-running": "2.2.2"
},
"packageManager": "[email protected]"
}
}
2 changes: 1 addition & 1 deletion packages/rspack-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/webpack-bundle-analyzer": "^4.6.0",
"concat-stream": "^2.0.0",
"cross-env": "^7.0.3",
"execa": "^5.0.0",
"execa": "5.0.0",
"internal-ip": "6.2.0",
"source-map-support": "^0.5.19"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/rspack-plugin-html/tests/basic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const path = require("path");
const fs = require("fs");
const { rspack } = require("@rspack/core");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const _ = require("lodash");
const { default: HtmlWebpackPlugin, defaultTemplateCompiler } = require("../");

Expand Down Expand Up @@ -158,7 +158,8 @@ describe("HtmlWebpackPlugin", () => {
jest.setTimeout(process.env.CI ? 120000 : 10000);

beforeEach(done => {
rimraf(OUTPUT_DIR, done);
rimraf.sync(OUTPUT_DIR);
done();
});

it("generates a default index.html file for a single entry point", done => {
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack-test-tools/src/case/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ECompareResultType,
TModuleCompareResult
} from "../";
import rimraf from "rimraf";
import { rimraf } from "rimraf";

const DEFAULT_CASE_CONFIG: Partial<IDiffProcessorOptions> = {
webpackPath: require.resolve("webpack"),
Expand Down
6 changes: 3 additions & 3 deletions packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@types/ws": "8.5.10",
"babel-loader": "^9.1.0",
"babel-plugin-import": "^1.13.5",
"copy-webpack-plugin": "5.1.2",
"copy-webpack-plugin": "5",
"cross-env": "^7.0.3",
"file-loader": "^6.2.0",
"glob": "^10.3.10",
Expand All @@ -55,8 +55,8 @@
"postcss-pxtorem": "^6.0.0",
"pug-loader": "^2.4.0",
"react-relay": "^16.0.0",
"sass": "^1.56.2",
"sass-loader": "^13.2.0",
"sass": "1.56.2",
"sass-loader": "13.2.0",
"source-map": "^0.7.4",
"styled-components": "^6.0.8",
"terser": "5.27.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/tests/ConfigTestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require("path");
const fs = require("graceful-fs");
const vm = require("vm");
const { URL, pathToFileURL, fileURLToPath } = require("url");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const checkArrayExpectation = require("./checkArrayExpectation");
const createLazyTestEnv = require("./helpers/createLazyTestEnv");
const deprecationTracking = require("./helpers/deprecationTracking");
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/tests/HotTestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require("./helpers/warmup-webpack");
const path = require("path");
const fs = require("graceful-fs");
const vm = require("vm");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const checkArrayExpectation = require("./checkArrayExpectation");
const createLazyTestEnv = require("./helpers/createLazyTestEnv");

Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/tests/StatsTestCases.basictest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require("./helpers/warmup-webpack");
const path = require("path");
const fs = require("graceful-fs");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const captureStdio = require("./helpers/captureStdio");
const webpack = require("..");

Expand Down
5 changes: 3 additions & 2 deletions packages/rspack/tests/TestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require("path");
const fs = require("graceful-fs");
const vm = require("vm");
const { pathToFileURL, URL } = require("url");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const checkArrayExpectation = require("./checkArrayExpectation");
const createLazyTestEnv = require("./helpers/createLazyTestEnv");
const deprecationTracking = require("./helpers/deprecationTracking");
Expand Down Expand Up @@ -242,7 +242,8 @@ const describeCases = config => {
for (const fn of cleanups) fn();
});
beforeAll(done => {
rimraf(cacheDirectory, done);
rimraf.sync(cacheDirectory);
done();
});
if (config.cache) {
it(
Expand Down
5 changes: 3 additions & 2 deletions packages/rspack/tests/WatchTestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require("./helpers/warmup-webpack");
const path = require("path");
const fs = require("graceful-fs");
const vm = require("vm");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const checkArrayExpectation = require("./checkArrayExpectation");
const createLazyTestEnv = require("./helpers/createLazyTestEnv");
const { remove } = require("./helpers/remove");
Expand Down Expand Up @@ -109,7 +109,8 @@ const describeCases = config => {
.map(name => ({ name }));

beforeAll(done => {
rimraf(tempDirectory, done);
rimraf.sync(tempDirectory);
done();
});

it(
Expand Down
51 changes: 34 additions & 17 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion scripts/diff.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-nocheck
const { Tester, DiffProcessor, DiffStatsReporter, DiffHtmlReporter } = require("../packages/rspack-test-tools/dist");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const path = require("path");
const fs = require("fs-extra");

Expand Down
2 changes: 1 addition & 1 deletion webpack-test/BuildDependencies.longtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const path = require("path");
const child_process = require("child_process");
const fs = require("fs");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");

const cacheDirectory = path.resolve(__dirname, "js/buildDepsCache");
const outputDirectory = path.resolve(__dirname, "js/buildDeps");
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/ChangesAndRemovals.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const path = require("path");
const { createFsFromVolume, Volume } = require("memfs");
const fs = require("graceful-fs");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");

const createCompiler = config => {
const webpack = require("@rspack/core").rspack;
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/Compiler-caching.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const path = require("path");
const fs = require("graceful-fs");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");

let fixtureCount = 0;

Expand Down
2 changes: 1 addition & 1 deletion webpack-test/ConfigTestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require("path");
const fs = require("graceful-fs");
const vm = require("vm");
const { URL, pathToFileURL, fileURLToPath } = require("url");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const checkArrayExpectation = require("./checkArrayExpectation");
const createLazyTestEnv = require("./helpers/createLazyTestEnv");
const deprecationTracking = require("./helpers/deprecationTracking");
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/HotTestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require("./helpers/warmup-webpack");
const path = require("path");
const fs = require("graceful-fs");
const vm = require("vm");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const checkArrayExpectation = require("./checkArrayExpectation");
const createLazyTestEnv = require("./helpers/createLazyTestEnv");
const { normalizeFilteredTestName } = require("./lib/util/filterUtil");
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/MemoryLimitTestCases.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// require("./helpers/warmup-webpack");
const path = require("path");
const fs = require("graceful-fs");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const captureStdio = require("./helpers/captureStdio");
const webpack = require("@rspack/core").rspack;
const { normalizeFilteredTestName } = require("./lib/util/filterUtil")
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/PersistentCaching.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const path = require("path");
const util = require("util");
const fs = require("fs");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const vm = require("vm");

const readdir = util.promisify(fs.readdir);
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/ProfilingPlugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const path = require("path");
const fs = require("graceful-fs");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");

describe.skip("Profiling Plugin", function () {
jest.setTimeout(120000);
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/StatsTestCases.basictest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require("./helpers/warmup-webpack");
const path = require("path");
const fs = require("graceful-fs");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const captureStdio = require("./helpers/captureStdio");
const webpack = require("..");
const { normalizeFilteredTestName } = require('./lib/util/filterUtil')
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/TestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require("path");
const fs = require("graceful-fs");
const vm = require("vm");
const { pathToFileURL, URL } = require("url");
const rimraf = require("rimraf");
const { rimraf } = require("rimraf");
const checkArrayExpectation = require("./checkArrayExpectation");
const createLazyTestEnv = require("./helpers/createLazyTestEnv");
const deprecationTracking = require("./helpers/deprecationTracking");
Expand Down
Loading

0 comments on commit 6b91880

Please sign in to comment.