@vamship/build-utils 1.5.1 → 1.6.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": "@vamship/build-utils",
3
- "version": "1.5.1",
3
+ "version": "1.6.1",
4
4
  "description": "Utility library for build tooling",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -59,7 +59,7 @@
59
59
  "docdash": "^2.0.1",
60
60
  "dotenv": "^16.0.3",
61
61
  "dotenv-expand": "^10.0.0",
62
- "execa": "^7.1.1",
62
+ "execa": "^5.1.1",
63
63
  "fancy-log": "^2.0.0",
64
64
  "mkdirp": "^3.0.1",
65
65
  "semver": "^7.5.0"
@@ -75,13 +75,12 @@
75
75
  "gulp-typedoc": ">= 3.0.1",
76
76
  "gulp-typescript": ">= 5.0.1",
77
77
  "gulp-zip": ">= 5.1.0",
78
- "jsdoc": ">= 3.6.7",
79
- "mocha": ">= 9.1.2",
78
+ "jsdoc": ">= 4.0.2",
79
+ "mocha": ">= 10.2.0",
80
80
  "nyc": ">= 15.1.0",
81
- "prettier": ">= 2.4.1"
81
+ "prettier": ">= 2.8.8"
82
82
  },
83
83
  "optionalDependencies": {
84
- "gulp-jsdoc3": "= 3.0.0",
85
84
  "typedoc": ">=0.24.7",
86
85
  "typescript": ">=5.0.4"
87
86
  },
package/src/directory.js CHANGED
@@ -229,6 +229,22 @@ class Directory {
229
229
  }
230
230
  return `${this.globPath}**/${extension}`;
231
231
  }
232
+ /**
233
+ * Gets a string glob that can be used to match all folders/files
234
+ * starting with .(dot) in the current folder and all sub folders,
235
+ * optionally filtered by file extension.
236
+ *
237
+ * @param {String} [extension] An optional extension to use when generating
238
+ * a globbing pattern.
239
+ */
240
+ getAllHiddenFilesGlob(extension) {
241
+ if (typeof extension !== 'string') {
242
+ extension = '.*';
243
+ } else {
244
+ extension = `.*.${extension}`;
245
+ }
246
+ return `${this.globPath}**/${extension}`;
247
+ }
232
248
  }
233
249
 
234
250
  module.exports = Directory;
@@ -41,7 +41,7 @@ module.exports = (project, options) => {
41
41
 
42
42
  const paths = dirs
43
43
  .map((dir) => workingDir.getChild(dir))
44
- .map((dir) => dir.getAllFilesGlob())
44
+ .flatMap((dir) => [dir.getAllFilesGlob(), dir.getAllHiddenFilesGlob()])
45
45
  .concat(extras.map((file) => workingDir.getFileGlob(file)));
46
46
 
47
47
  const zipTask = () =>