@travetto/pack 2.1.0 → 2.1.3

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,4 +1,4 @@
1
- import * as fs from 'fs';
1
+ import * as fs from 'fs/promises';
2
2
 
3
3
  import { FsUtil, PathUtil } from '@travetto/boot';
4
4
  import { BasePlugin } from '@travetto/cli/src/plugin-base';
@@ -40,7 +40,7 @@ CMD ["node", "./node_modules/@travetto/cli/bin/trv", "run", "${this.cmd.app}"]
40
40
  if (this.cmd.output === '-' || this.cmd.output === '/dev/stdout' || !this.cmd.output) {
41
41
  console.log(content);
42
42
  } else {
43
- await fs.promises.writeFile(this.cmd.output, content, { encoding: 'utf8' });
43
+ await fs.writeFile(this.cmd.output, content, { encoding: 'utf8' });
44
44
  }
45
45
  }
46
46
  }
@@ -1,5 +1,5 @@
1
1
  import * as path from 'path';
2
- import * as fs from 'fs';
2
+ import * as fs from 'fs/promises';
3
3
 
4
4
  import { ExecUtil, PathUtil } from '@travetto/boot';
5
5
  import { color } from '@travetto/cli/src/color';
@@ -34,8 +34,8 @@ export const Zip: PackOperation<ZipConfig> = {
34
34
  const zipFile = PathUtil.resolveUnix(output);
35
35
 
36
36
  yield 'Preparing Target';
37
- await fs.promises.mkdir(path.dirname(zipFile), { recursive: true });
38
- await new Promise(res => fs.unlink(zipFile, res)); // Unlink
37
+ await fs.mkdir(path.dirname(zipFile), { recursive: true });
38
+ await fs.unlink(zipFile); // Unlink
39
39
 
40
40
  yield 'Compressing';
41
41
  if (/win/i.test(process.platform)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@travetto/pack",
3
3
  "displayName": "Pack",
4
- "version": "2.1.0",
4
+ "version": "2.1.3",
5
5
  "description": "Code packing utilities",
6
6
  "keywords": [
7
7
  "travetto",
@@ -25,12 +25,12 @@
25
25
  "directory": "module/pack"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/base": "^2.1.0",
28
+ "@travetto/base": "^2.1.3",
29
29
  "@types/picomatch": "^2.3.0",
30
30
  "picomatch": "^2.3.1"
31
31
  },
32
32
  "optionalPeerDependencies": {
33
- "@travetto/cli": "^2.1.0"
33
+ "@travetto/cli": "^2.1.3"
34
34
  },
35
35
  "docDependencies": {
36
36
  "@travetto/rest": true