@settlemint/sdk-utils 2.3.0-pr537f3bf0 → 2.3.0-prf341a7af

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,5 +1,5 @@
1
1
  // src/environment/load-env.ts
2
- import { join } from "path";
2
+ import { join } from "node:path";
3
3
 
4
4
  // src/terminal/ascii.ts
5
5
  import { magentaBright } from "yoctocolors";
@@ -21,7 +21,7 @@ var cancel = (msg) => {
21
21
  };
22
22
 
23
23
  // src/terminal/execute-command.ts
24
- import { spawn } from "child_process";
24
+ import { spawn } from "node:child_process";
25
25
 
26
26
  // src/terminal/intro.ts
27
27
  import { magentaBright as magentaBright2 } from "yoctocolors";
@@ -221,11 +221,11 @@ async function loadEnvironmentEnv(validateEnv, prod, path = process.cwd()) {
221
221
  }
222
222
 
223
223
  // src/environment/write-env.ts
224
- import { writeFile } from "fs/promises";
225
- import { join as join3 } from "path";
224
+ import { writeFile } from "node:fs/promises";
225
+ import { join as join3 } from "node:path";
226
226
 
227
227
  // src/filesystem/project-root.ts
228
- import { dirname } from "path";
228
+ import { dirname } from "node:path";
229
229
  import { findUp } from "find-up";
230
230
  async function projectRoot(fallbackToCwd = false, cwd) {
231
231
  const packageJsonPath = await findUp("package.json", { cwd });
@@ -239,7 +239,7 @@ async function projectRoot(fallbackToCwd = false, cwd) {
239
239
  }
240
240
 
241
241
  // src/filesystem/exists.ts
242
- import { stat } from "fs/promises";
242
+ import { stat } from "node:fs/promises";
243
243
  async function exists(path) {
244
244
  try {
245
245
  await stat(path);
@@ -250,8 +250,8 @@ async function exists(path) {
250
250
  }
251
251
 
252
252
  // src/filesystem/mono-repo.ts
253
- import { readFile } from "fs/promises";
254
- import { dirname as dirname2, join as join2 } from "path";
253
+ import { readFile } from "node:fs/promises";
254
+ import { dirname as dirname2, join as join2 } from "node:path";
255
255
  import { findUp as findUp2 } from "find-up";
256
256
  import { glob } from "glob";
257
257
  async function findMonoRepoRoot(startDir) {
@@ -1,5 +1,5 @@
1
1
  // src/filesystem/project-root.ts
2
- import { dirname } from "path";
2
+ import { dirname } from "node:path";
3
3
  import { findUp } from "find-up";
4
4
  async function projectRoot(fallbackToCwd = false, cwd) {
5
5
  const packageJsonPath = await findUp("package.json", { cwd });
@@ -13,7 +13,7 @@ async function projectRoot(fallbackToCwd = false, cwd) {
13
13
  }
14
14
 
15
15
  // src/filesystem/exists.ts
16
- import { stat } from "fs/promises";
16
+ import { stat } from "node:fs/promises";
17
17
  async function exists(path) {
18
18
  try {
19
19
  await stat(path);
@@ -24,8 +24,8 @@ async function exists(path) {
24
24
  }
25
25
 
26
26
  // src/filesystem/mono-repo.ts
27
- import { readFile } from "fs/promises";
28
- import { dirname as dirname2, join } from "path";
27
+ import { readFile } from "node:fs/promises";
28
+ import { dirname as dirname2, join } from "node:path";
29
29
 
30
30
  // src/json.ts
31
31
  function tryParseJson(value, defaultValue = null) {
@@ -1,9 +1,9 @@
1
1
  // src/package-manager/download-and-extract.ts
2
- import { readdir, rm } from "fs/promises";
3
- import { resolve } from "path";
2
+ import { readdir, rm } from "node:fs/promises";
3
+ import { resolve } from "node:path";
4
4
 
5
5
  // src/filesystem/project-root.ts
6
- import { dirname } from "path";
6
+ import { dirname } from "node:path";
7
7
  import { findUp } from "find-up";
8
8
  async function projectRoot(fallbackToCwd = false, cwd) {
9
9
  const packageJsonPath = await findUp("package.json", { cwd });
@@ -17,7 +17,7 @@ async function projectRoot(fallbackToCwd = false, cwd) {
17
17
  }
18
18
 
19
19
  // src/filesystem/exists.ts
20
- import { stat } from "fs/promises";
20
+ import { stat } from "node:fs/promises";
21
21
  async function exists(path) {
22
22
  try {
23
23
  await stat(path);
@@ -28,8 +28,8 @@ async function exists(path) {
28
28
  }
29
29
 
30
30
  // src/filesystem/mono-repo.ts
31
- import { readFile } from "fs/promises";
32
- import { dirname as dirname2, join } from "path";
31
+ import { readFile } from "node:fs/promises";
32
+ import { dirname as dirname2, join } from "node:path";
33
33
  import { findUp as findUp2 } from "find-up";
34
34
  import { glob } from "glob";
35
35
 
@@ -90,7 +90,7 @@ var maskTokens = (output) => {
90
90
  import { inverse, redBright } from "yoctocolors";
91
91
 
92
92
  // src/terminal/execute-command.ts
93
- import { spawn } from "child_process";
93
+ import { spawn } from "node:child_process";
94
94
 
95
95
  // src/terminal/intro.ts
96
96
  import { magentaBright as magentaBright2 } from "yoctocolors";
package/dist/terminal.mjs CHANGED
@@ -39,7 +39,7 @@ var cancel = (msg) => {
39
39
  };
40
40
 
41
41
  // src/terminal/execute-command.ts
42
- import { spawn } from "child_process";
42
+ import { spawn } from "node:child_process";
43
43
  var CommandError = class extends Error {
44
44
  /**
45
45
  * Constructs a new CommandError
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@settlemint/sdk-utils",
3
3
  "description": "Shared utilities and helper functions for SettleMint SDK modules",
4
- "version": "2.3.0-pr537f3bf0",
4
+ "version": "2.3.0-prf341a7af",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "FSL-1.1-MIT",