aberlaas-helper 2.25.0 → 2.26.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.
package/lib/helper.js CHANGED
@@ -46,7 +46,7 @@ export const __ = {
46
46
  },
47
47
 
48
48
  /**
49
- * Find files in host package directory following glob patterns.
49
+ * Find files in host directory following glob patterns.
50
50
  * Will exclude some directories by default, and allow specifying only
51
51
  * specific file extensions
52
52
  * @param {Array} userPattern Patterns to match
@@ -54,7 +54,7 @@ export const __ = {
54
54
  * set, only files of this extensions will be returned
55
55
  * @returns {Array} Array of files matching the patterns
56
56
  */
57
- async findHostPackageFiles(userPattern, safeExtensions = []) {
57
+ async findHostFiles(userPattern, safeExtensions = []) {
58
58
  const patterns = [
59
59
  ..._.castArray(userPattern),
60
60
  // Exclude folders that shouldn't be included
@@ -74,7 +74,7 @@ export const __ = {
74
74
  // Expanding globs
75
75
  let allFiles = await glob(patterns, {
76
76
  directories: false,
77
- cwd: __.hostPackageRoot(),
77
+ cwd: __.hostGitRoot(),
78
78
  });
79
79
 
80
80
  if (_.isEmpty(safeExtensions)) {
@@ -186,7 +186,7 @@ export const __ = {
186
186
  export const hostWorkingDirectory = wrap(__, 'hostWorkingDirectory');
187
187
  export const hostPackageRoot = wrap(__, 'hostPackageRoot');
188
188
  export const hostPackagePath = wrap(__, 'hostPackagePath');
189
- export const findHostPackageFiles = wrap(__, 'findHostPackageFiles');
189
+ export const findHostFiles = wrap(__, 'findHostFiles');
190
190
  export const hostGitRoot = wrap(__, 'hostGitRoot');
191
191
  export const hostGitPath = wrap(__, 'hostGitPath');
192
192
  export const getConfig = wrap(__, 'getConfig');
package/lib/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Helper
2
- export { findHostPackageFiles } from './helper.js';
2
+ export { findHostFiles } from './helper.js';
3
3
  export { getConfig } from './helper.js';
4
4
  export { hostGitPath } from './helper.js';
5
5
  export { hostGitRoot } from './helper.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aberlaas-helper",
3
- "version": "2.25.0",
3
+ "version": "2.26.0",
4
4
  "type": "module",
5
5
  "description": "aberlaas shared helper: Common methods used by all commands",
6
6
  "author": "Tim Carry <tim@pixelastic.com>",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "main": "./lib/main.js",
21
21
  "dependencies": {
22
- "aberlaas-versions": "2.25.0",
22
+ "aberlaas-versions": "2.26.0",
23
23
  "firost": "5.6.1",
24
24
  "golgoth": "3.1.0"
25
25
  },