@arcgis/components-build-utils 5.0.0-next.121 → 5.0.0-next.122

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/dist/file.d.cts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
2
2
  export declare const existsAsync: (file: string) => Promise<boolean>;
3
3
  /** Wrapper for execSync to execute shell commands */
4
- export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
4
+ export declare function shSync(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
5
+ export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): Promise<string>;
5
6
  export declare function createFileIfNotExists(filePath: string, content: string): Promise<void>;
6
7
  /**
7
8
  * Climb the directory tree upward, until found a directory that contains the
package/dist/file.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
2
2
  export declare const existsAsync: (file: string) => Promise<boolean>;
3
3
  /** Wrapper for execSync to execute shell commands */
4
- export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
4
+ export declare function shSync(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
5
+ export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): Promise<string>;
5
6
  export declare function createFileIfNotExists(filePath: string, content: string): Promise<void>;
6
7
  /**
7
8
  * Climb the directory tree upward, until found a directory that contains the
package/dist/index.cjs CHANGED
@@ -34,7 +34,7 @@ const existsAsync = async (file) => (
34
34
  // which interferes with debugging when "Pause on caught exceptions" is enabled
35
35
  await new Promise((resolve2) => node_fs.access(file, promises.constants.F_OK, (error) => resolve2(!error)))
36
36
  );
37
- function sh(command, options = {}) {
37
+ function shSync(command, options = {}) {
38
38
  try {
39
39
  const normalizedOptions = { encoding: "utf8", ...options };
40
40
  return node_child_process.execSync(command.trim(), normalizedOptions).trim();
@@ -374,7 +374,7 @@ exports.isPosix = isPosix;
374
374
  exports.normalizePath = normalizePath;
375
375
  exports.path = path;
376
376
  exports.retrievePackageJson = retrievePackageJson;
377
- exports.sh = sh;
377
+ exports.sh = shSync;
378
378
  exports.toPosixPathSeparators = toPosixPathSeparators;
379
379
  exports.toSystemPathSeparators = toSystemPathSeparators;
380
380
  exports.vitePresetPlugin = vitePresetPlugin;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { existsAsync, sh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
1
+ export { existsAsync, shSync as sh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
2
2
  export { gitIgnoreFileToGlobs, gitIgnoreToGlob } from './glob.ts';
3
3
  export { isPosix, toPosixPathSeparators, normalizePath, toSystemPathSeparators, getCwd, path } from './path.ts';
4
4
  export { type MiniPackageJson, retrievePackageJson, asyncRetrievePackageJson, fetchPackageLocation, detectPackageManager, } from './packageJson.ts';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { existsAsync, sh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
1
+ export { existsAsync, shSync as sh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
2
2
  export { gitIgnoreFileToGlobs, gitIgnoreToGlob } from './glob.ts';
3
3
  export { isPosix, toPosixPathSeparators, normalizePath, toSystemPathSeparators, getCwd, path } from './path.ts';
4
4
  export { type MiniPackageJson, retrievePackageJson, asyncRetrievePackageJson, fetchPackageLocation, detectPackageManager, } from './packageJson.ts';
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ const existsAsync = async (file) => (
10
10
  // which interferes with debugging when "Pause on caught exceptions" is enabled
11
11
  await new Promise((resolve2) => access(file, constants.F_OK, (error) => resolve2(!error)))
12
12
  );
13
- function sh(command, options = {}) {
13
+ function shSync(command, options = {}) {
14
14
  try {
15
15
  const normalizedOptions = { encoding: "utf8", ...options };
16
16
  return execSync(command.trim(), normalizedOptions).trim();
@@ -351,7 +351,7 @@ export {
351
351
  normalizePath,
352
352
  path,
353
353
  retrievePackageJson,
354
- sh,
354
+ shSync as sh,
355
355
  toPosixPathSeparators,
356
356
  toSystemPathSeparators,
357
357
  vitePresetPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/components-build-utils",
3
- "version": "5.0.0-next.121",
3
+ "version": "5.0.0-next.122",
4
4
  "description": "Collection of common internal build-time patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
5
5
  "homepage": "https://developers.arcgis.com/javascript/latest/",
6
6
  "type": "module",