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.
- package/dist/processor/file.js +2 -6
- package/package.json +1 -1
package/dist/processor/file.js
CHANGED
|
@@ -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
|
-
|
|
14
|
-
|
|
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 {
|