@travetto/pack 3.0.0-rc.4 → 3.0.0-rc.6

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": "@travetto/pack",
3
- "version": "3.0.0-rc.4",
3
+ "version": "3.0.0-rc.6",
4
4
  "description": "Code packing utilities",
5
5
  "keywords": [
6
6
  "travetto",
@@ -23,12 +23,12 @@
23
23
  "directory": "module/pack"
24
24
  },
25
25
  "dependencies": {
26
- "@travetto/base": "^3.0.0-rc.4",
26
+ "@travetto/base": "^3.0.0-rc.6",
27
27
  "@types/picomatch": "^2.3.0",
28
28
  "picomatch": "^2.3.1"
29
29
  },
30
30
  "peerDependencies": {
31
- "@travetto/cli": "^3.0.0-rc.4"
31
+ "@travetto/cli": "^3.0.0-rc.6"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "@travetto/cli": {
@@ -1,7 +1,7 @@
1
1
  import fs from 'fs/promises';
2
2
 
3
3
  import { IndexedModule, Package, PackageUtil, path, RootIndex } from '@travetto/manifest';
4
- import { FileResourceProvider, TypedObject } from '@travetto/base';
4
+ import { FileQueryProvider, TypedObject } from '@travetto/base';
5
5
 
6
6
  import { PackUtil } from '../util';
7
7
 
@@ -14,8 +14,8 @@ export class AssembleUtil {
14
14
  * Purge workspace using file rules
15
15
  */
16
16
  static async excludeFiles(root: string, files: string[]): Promise<void> {
17
- const checker = PackUtil.excludeChecker(files, root);
18
- for (const el of await new FileResourceProvider([root]).query(checker, true)) {
17
+ const filter = PackUtil.excludeChecker(files, root);
18
+ for await (const el of FileQueryProvider.query({ paths: [root], filter, hidden: true })) {
19
19
  try {
20
20
  await fs.unlink(el);
21
21
  } catch { }