Skip to content

Commit 74513fc

Browse files
committed
chore: update various major packages
1 parent ed88307 commit 74513fc

File tree

8 files changed

+161
-53
lines changed

8 files changed

+161
-53
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import * as del from "del";
1+
import { deleteSync } from "del";
22

3-
del.sync("./lib");
3+
deleteSync("./lib");

packages/node-plop/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444
"dependencies": {
4545
"@types/inquirer": "^8.2.6",
4646
"change-case": "^4.1.2",
47-
"del": "^6.0.0",
47+
"del": "^7.1.0",
4848
"globby": "^13.2.2",
4949
"handlebars": "^4.7.8",
5050
"inquirer": "^8.2.2",
51-
"isbinaryfile": "^4.0.8",
51+
"isbinaryfile": "^5.0.0",
5252
"lodash.get": "^4.4.2",
5353
"lower-case": "^2.0.2",
54-
"mkdirp": "^1.0.4",
54+
"mkdirp": "^3.0.1",
5555
"resolve": "^1.22.4",
5656
"title-case": "^3.0.3",
5757
"upper-case": "^2.0.2"

packages/node-plop/src/actions/_common-action-add-file.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from "path";
2-
import del from "del";
2+
import { deleteAsync } from "del";
33
import {
44
getRenderedTemplate,
55
getTransformedTemplate,
@@ -19,7 +19,7 @@ export default async function addFile(data, cfg, plop) {
1919

2020
// if we are forcing and the file already exists, delete the file
2121
if (force === true && destExists) {
22-
await del([fileDestPath], { force });
22+
await deleteAsync([fileDestPath], { force });
2323
destExists = false;
2424
}
2525

packages/node-plop/src/fs-promise-proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import fs from "fs";
2-
import mkdirp from "mkdirp";
2+
import { mkdirp } from "mkdirp";
33

44
export const makeDir = mkdirp;
55
export const readdir = fs.promises.readdir;

packages/node-plop/tests/helpers/path.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from "path";
22
import { normalizePath } from "../../src/actions/_common-action-utils.js";
3-
import del from "del";
3+
import { deleteAsync } from "del";
44
import * as fspp from "../../src/fs-promise-proxy.js";
55
import { fileURLToPath } from "node:url";
66

@@ -14,12 +14,12 @@ export function setupMockPath(importMetaUrl) {
1414

1515
async function clean() {
1616
// remove the src folder
17-
await del([normalizePath(testSrcPath)], { force: true });
17+
await deleteAsync([normalizePath(testSrcPath)], { force: true });
1818

1919
try {
2020
const mockIsEmpty = (await fspp.readdir(mockPath)).length === 0;
2121
if (mockIsEmpty) {
22-
await del([mockPath], { force: true });
22+
await deleteAsync([mockPath], { force: true });
2323
}
2424
} catch (err) {
2525
// there was no mock directory to remove

packages/node-plop/tests/imported-custom-action/custom-action.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import del from "del";
1+
import { deleteAsync } from "del";
22
import * as fspp from "../../src/fs-promise-proxy.js";
33
import { normalizePath } from "../../src/actions/_common-action-utils.js";
44

55
export default async function (data, cfg /*, plop*/) {
66
const removeFilePath = cfg.path;
77
if (await fspp.fileExists(removeFilePath)) {
8-
return await del([normalizePath(removeFilePath)]);
8+
return await deleteAsync([normalizePath(removeFilePath)]);
99
} else {
1010
throw `Path does not exist ${removeFilePath}`;
1111
}

packages/plop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"liftoff": "^4.0.0",
4848
"minimist": "^1.2.8",
4949
"node-plop": "^0.31.1",
50-
"ora": "^6.0.1",
50+
"ora": "^7.0.1",
5151
"v8flags": "^4.0.1"
5252
},
5353
"engines": {

0 commit comments

Comments
 (0)