Skip to content

Commit

Permalink
[DEPENDENCY] Bump rimraf from 4.4.1 to 5.0.0 (#597)
Browse files Browse the repository at this point in the history
* [DEPENDENCY] Bump rimraf from 4.4.1 to 5.0.0

Bumps [rimraf](https://github.com/isaacs/rimraf) from 4.4.1 to 5.0.0.
- [Release notes](https://github.com/isaacs/rimraf/releases)
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](isaacs/rimraf@v4.4.1...v5.0.0)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* [INTERNAL] rimraf: Migrate to named import

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florian Vogt <florian.vogt@sap.com>
  • Loading branch information
dependabot[bot] and flovogt authored Apr 17, 2023
1 parent ade2c49 commit 1da76bc
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 21 deletions.
2 changes: 1 addition & 1 deletion lib/build/ProjectBuilder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import rimraf from "rimraf";
import {rimraf} from "rimraf";
import * as resourceFactory from "@ui5/fs/resourceFactory";
import BuildLogger from "@ui5/logger/internal/loggers/Build";
const log = new BuildLogger("ProjectBuilder");
Expand Down
2 changes: 1 addition & 1 deletion lib/ui5Framework/maven/Installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const StreamZip = _StreamZip.async;
import {promisify} from "node:util";
import Registry from "./Registry.js";
import AbstractInstaller from "../AbstractInstaller.js";
import rimraf from "rimraf";
import {rimraf} from "rimraf";
const stat = promisify(fs.stat);
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
Expand Down
2 changes: 1 addition & 1 deletion lib/ui5Framework/npm/Installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fs from "graceful-fs";
import {promisify} from "node:util";
import Registry from "./Registry.js";
import AbstractInstaller from "../AbstractInstaller.js";
import rimraf from "rimraf";
import {rimraf} from "rimraf";
const stat = promisify(fs.stat);
const readFile = promisify(fs.readFile);
const rename = promisify(fs.rename);
Expand Down
84 changes: 70 additions & 14 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 @@ -136,7 +136,7 @@
"read-pkg": "^8.0.0",
"read-pkg-up": "^9.1.0",
"resolve": "^1.22.3",
"rimraf": "^4.4.1",
"rimraf": "^5.0.0",
"semver": "^7.4.0",
"xml2js": "^0.5.0",
"yesno": "^0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion test/lib/ui5framework/maven/Installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sinon from "sinon";
import esmock from "esmock";
import path from "node:path";
import fs from "graceful-fs";
import rimraf from "rimraf";
import {rimraf} from "rimraf";

test.beforeEach(async (t) => {
t.context.mkdirpStub = sinon.stub().resolves();
Expand Down
8 changes: 6 additions & 2 deletions test/lib/ui5framework/npm/Installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ test.beforeEach(async (t) => {
"../../../../lib/utils/fs.js": {
mkdirp: t.context.mkdirpStub
},
"rimraf": t.context.rimrafStub,
"rimraf": {
rimraf: t.context.rimrafStub
},
"lockfile": {
lock: t.context.lockStub,
unlock: t.context.unlockStub
Expand All @@ -30,7 +32,9 @@ test.beforeEach(async (t) => {
"../../../../lib/utils/fs.js": {
mkdirp: t.context.mkdirpStub
},
"rimraf": t.context.rimrafStub,
"rimraf": {
rimraf: t.context.rimrafStub
},
"graceful-fs": {
rename: t.context.renameStub,
stat: t.context.statStub
Expand Down

0 comments on commit 1da76bc

Please sign in to comment.