zone5 1.6.1 → 1.6.2

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.
@@ -10,12 +10,8 @@ export const sourceFileHash = (sourceBaseDir, sourceFile) => {
10
10
  return hash.digest('hex');
11
11
  };
12
12
  export const ensureDirectoryExists = async (dirPath) => {
13
- try {
14
- await access(dirPath);
15
- }
16
- catch {
17
- await mkdir(dirPath, { recursive: true });
18
- }
13
+ // mkdir with recursive: true is idempotent - no need to check if dir exists first
14
+ await mkdir(dirPath, { recursive: true });
19
15
  };
20
16
  export const fileExists = async (filePath) => {
21
17
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zone5",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "repository": {
5
5
  "url": "https://github.com/cwygoda/zone5"
6
6
  },