Skip to content

Commit

Permalink
[sitecore-jss-rendering-host] Downgrade del to accomodate cjs (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
addy-pathania authored Feb 13, 2023
1 parent 5b1755d commit 6542983
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sitecore-jss-rendering-host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"url": "https://github.com/sitecore/jss/issues"
},
"dependencies": {
"del": "^7.0.0",
"del": "^6.1.1",
"import-fresh": "^3.3.0",
"ngrok": "^4.3.3",
"opn": "^6.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/sitecore-jss-rendering-host/src/devServer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deleteSync } from 'del';
import { sync as delSync } from 'del';
import { Application } from 'express';
import { PathParams } from 'express-serve-static-core';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down Expand Up @@ -239,7 +239,7 @@ export function startDevServer({
if (clean) {
const cleanPaths = [`${path.join(buildArtifactsPath, '**')}`, `!${buildArtifactsPath}`];
console.log('cleaning paths', cleanPaths);
const cleanedPaths = deleteSync(cleanPaths);
const cleanedPaths = delSync(cleanPaths);
console.log('cleaned paths', cleanedPaths);
}

Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6138,7 +6138,7 @@ __metadata:
"@types/webpack-dev-middleware": 2.0.5
"@types/webpack-dev-server": 3.1.7
chai: ^4.3.0
del: ^7.0.0
del: ^6.1.1
del-cli: ^5.0.0
eslint: ^8.33.0
import-fresh: ^3.3.0
Expand Down Expand Up @@ -12368,7 +12368,7 @@ __metadata:
languageName: node
linkType: hard

"del@npm:^6.0.0":
"del@npm:^6.0.0, del@npm:^6.1.1":
version: 6.1.1
resolution: "del@npm:6.1.1"
dependencies:
Expand Down

0 comments on commit 6542983

Please sign in to comment.