@evitcastudio/kit 1.3.0 → 1.3.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.
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /*!
4
- * @evitcastudio/kit@1.3.0 git+https://github.com/EvitcaStudio/Kit.git
5
- * Compiled Sat, 04 Jan 2025 15:43:23 UTC
4
+ * @evitcastudio/kit@1.3.1 git+https://github.com/EvitcaStudio/Kit.git
5
+ * Compiled Sat, 04 Jan 2025 15:50:23 UTC
6
6
  * Copyright (c) 2025 Jared Bates, Evitca Studio, "doubleactii"
7
7
  *
8
8
  * @evitcastudio/kit is licensed under the MIT License.
@@ -2510,7 +2510,10 @@ async function processAllFiles() {
2510
2510
  }
2511
2511
  async function clearResourceTypeDirectories(pBaseDirectory) {
2512
2512
  try {
2513
- await fs.rm(pBaseDirectory, { recursive: true });
2513
+ const directoryExists = await fs.stat(pBaseDirectory).then((stat) => stat.isDirectory()).catch(() => false);
2514
+ if (directoryExists) {
2515
+ await fs.rm(pBaseDirectory, { recursive: true });
2516
+ }
2514
2517
  } catch (pError) {
2515
2518
  log(`${error(`[Error]`)} clearing resource directory: ${pError}`);
2516
2519
  }
@@ -2569,7 +2572,7 @@ class KitCLI {
2569
2572
  // package.json
2570
2573
  var package_default = {
2571
2574
  name: "@evitcastudio/kit",
2572
- version: "1.3.0",
2575
+ version: "1.3.1",
2573
2576
  author: "doubleactii 56242467+doubleactii@users.noreply.github.com (https://evitcastudio.com)",
2574
2577
  main: "./lib/index.js",
2575
2578
  types: "./lib/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evitcastudio/kit",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "author": "doubleactii 56242467+doubleactii@users.noreply.github.com (https://evitcastudio.com)",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",