cook-ssg 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cook-ssg",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Cook your static pages into a beautifully performing site. Static site generation the web platform way.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,7 +30,7 @@
30
30
  "update:fix": "ncu -u"
31
31
  },
32
32
  "engines": {
33
- "node": ">=18.0.0"
33
+ "node": ">=20.9.0"
34
34
  },
35
35
  "keywords": [
36
36
  "static-site-generator",
@@ -63,12 +63,10 @@
63
63
  "lodash.clonedeep": "^4.5.0",
64
64
  "lodash.merge": "^4.6.2",
65
65
  "marked": "^18.0.6",
66
- "rimraf": "^6.1.2",
67
- "sharp": "^0.34.5",
66
+ "sharp": "^0.35.5",
68
67
  "terser": "^5.46.1"
69
68
  },
70
69
  "devDependencies": {
71
- "happy-dom": "^20.8.9",
72
70
  "http-server": "^14.1.1",
73
71
  "npm-check-updates": "^22.0.1"
74
72
  }
@@ -7,7 +7,6 @@
7
7
  // -----------------------------
8
8
  import chalk from 'chalk';
9
9
  import fs from 'fs-extra';
10
- import { rimraf } from 'rimraf';
11
10
  import Logger from '../utils/logger/logger.js';
12
11
  import Util from '../utils/util/util.js';
13
12
 
@@ -32,7 +31,7 @@ class CreateDist {
32
31
  Logger.persist.header(`\nCreate /${distPath}`);
33
32
 
34
33
  // Remove `/dist` (fails silently if not there as that is the intended result)
35
- rimraf.sync(distPath);
34
+ fs.rmSync(distPath, { recursive: true, force: true });
36
35
  // Make fresh '/dist' folder
37
36
  await fs.mkdir(distPath).catch(Util.customError);
38
37