@genesislcap/build-kit 14.146.1-alpha-0d80785.0 → 14.147.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.
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.downloadTarball = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const node_fs_1 = require("node:fs");
5
6
  const consola_1 = tslib_1.__importDefault(require("consola"));
6
7
  const download_tarball_1 = tslib_1.__importDefault(require("download-tarball"));
7
8
  const tmp_1 = tslib_1.__importDefault(require("tmp"));
8
- const fs_1 = require("./fs");
9
9
  const downloadTarball = (url, destination, subPath = '') => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
10
10
  const tmpDir = tmp_1.default.dirSync();
11
11
  consola_1.default.debug({
@@ -15,6 +15,6 @@ const downloadTarball = (url, destination, subPath = '') => tslib_1.__awaiter(vo
15
15
  });
16
16
  yield (0, download_tarball_1.default)({ url, dir: tmpDir.name });
17
17
  const source = `${tmpDir.name}${subPath}`;
18
- (0, fs_1.rename)(`${source}`, destination);
18
+ (0, node_fs_1.cpSync)(`${source}`, destination, { recursive: true });
19
19
  });
20
20
  exports.downloadTarball = downloadTarball;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/build-kit",
3
3
  "description": "Build utilities & types",
4
- "version": "14.146.1-alpha-0d80785.0",
4
+ "version": "14.147.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@esbuild-kit/cjs-loader": "2.4.2",
39
- "@genesislcap/foundation-testing": "14.146.1-alpha-0d80785.0",
39
+ "@genesislcap/foundation-testing": "14.147.0",
40
40
  "@types/http-proxy": "^1.17.8",
41
41
  "@types/node": "^20.8.7",
42
42
  "tsm": "^2.2.1",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "b760ba8b18511c09ecbf85ed241be59c7d8fd8d4"
54
+ "gitHead": "b0d8376acf8f71736cfcedb43fba7311e5d77331"
55
55
  }
@@ -1,7 +1,7 @@
1
+ import { cpSync } from 'node:fs';
1
2
  import consola from 'consola';
2
3
  import download from 'download-tarball';
3
4
  import tmp from 'tmp';
4
- import { rename } from './fs';
5
5
 
6
6
  export const downloadTarball = async (url: string, destination: string, subPath = '') => {
7
7
  const tmpDir = tmp.dirSync();
@@ -14,5 +14,5 @@ export const downloadTarball = async (url: string, destination: string, subPath
14
14
 
15
15
  await download({ url, dir: tmpDir.name });
16
16
  const source = `${tmpDir.name}${subPath}`;
17
- rename(`${source}`, destination);
17
+ cpSync(`${source}`, destination, { recursive: true });
18
18
  };