js-build-tools 2.3.1 → 2.4.0

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,23 +1,23 @@
1
- const { rm, exists } = require('fs')
2
-
3
- /**
4
- * Return a promise to be completed once the specified directory is deleted.
5
- * @function
6
- * @memberOf module:partials
7
- * @param {string} dirPath
8
- * @returns {Promise<*>}
9
- */
10
- const removeDirectory = dirPath => new Promise(
11
- (resolve, reject) => exists(
12
- dirPath,
13
- doesExist => doesExist
14
- ? rm(
15
- dirPath,
16
- { recursive: true },
17
- error => error ? reject(error) : resolve(dirPath)
18
- )
19
- : resolve(dirPath)
20
- )
21
- )
22
-
23
- module.exports = removeDirectory
1
+ const { rm, exists } = require('fs')
2
+
3
+ /**
4
+ * Return a promise to be completed once the specified directory is deleted.
5
+ * @function
6
+ * @memberOf module:partials
7
+ * @param {string} dirPath
8
+ * @returns {Promise<*>}
9
+ */
10
+ const removeDirectory = dirPath => new Promise(
11
+ (resolve, reject) => exists(
12
+ dirPath,
13
+ doesExist => doesExist
14
+ ? rm(
15
+ dirPath,
16
+ { recursive: true },
17
+ error => error ? reject(error) : resolve(dirPath)
18
+ )
19
+ : resolve(dirPath)
20
+ )
21
+ )
22
+
23
+ module.exports = removeDirectory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-build-tools",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "description": "Standardised build process with gulp.",
5
5
  "main": "gulpfile.base.js",
6
6
  "scripts": {