@arcgis/components-build-utils 4.32.0-next.52 → 4.32.0-next.55
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/index.cjs +3 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -40,6 +40,7 @@ __export(src_exports, {
|
|
|
40
40
|
findPath: () => findPath,
|
|
41
41
|
getCwd: () => getCwd,
|
|
42
42
|
isPosix: () => isPosix,
|
|
43
|
+
normalizePath: () => normalizePath,
|
|
43
44
|
path: () => path,
|
|
44
45
|
retrievePackageJson: () => retrievePackageJson,
|
|
45
46
|
sh: () => sh,
|
|
@@ -55,6 +56,7 @@ var import_posix = __toESM(require("path/posix"), 1);
|
|
|
55
56
|
var import_win32 = __toESM(require("path/win32"), 1);
|
|
56
57
|
var isPosix = import_path.sep === import_posix.default.sep;
|
|
57
58
|
var toPosixPathSeparators = (relativePath) => relativePath.includes(import_win32.default.sep) ? relativePath.replaceAll(import_win32.default.sep, import_posix.default.sep) : relativePath;
|
|
59
|
+
var normalizePath = isPosix ? (path2) => path2 : toPosixPathSeparators;
|
|
58
60
|
var toWin32PathSeparators = (relativePath) => relativePath.includes(import_posix.default.sep) ? relativePath.replaceAll(import_posix.default.sep, import_win32.default.sep) : relativePath;
|
|
59
61
|
var toSystemPathSeparators = isPosix ? (path2) => path2 : toWin32PathSeparators;
|
|
60
62
|
var getCwd = isPosix ? process.cwd : () => toPosixPathSeparators(process.cwd());
|
|
@@ -214,6 +216,7 @@ function detectPackageManager(cwd = process.cwd()) {
|
|
|
214
216
|
findPath,
|
|
215
217
|
getCwd,
|
|
216
218
|
isPosix,
|
|
219
|
+
normalizePath,
|
|
217
220
|
path,
|
|
218
221
|
retrievePackageJson,
|
|
219
222
|
sh,
|
package/dist/index.d.cts
CHANGED
|
@@ -21,6 +21,7 @@ declare function asyncFindPath(target: string, startDirectory?: string): Promise
|
|
|
21
21
|
*/
|
|
22
22
|
declare const isPosix: boolean;
|
|
23
23
|
declare const toPosixPathSeparators: (relativePath: string) => string;
|
|
24
|
+
declare const normalizePath: (relativePath: string) => string;
|
|
24
25
|
/**
|
|
25
26
|
* On Windows, replace all `/` in the path back with `\\`. Do this only if you
|
|
26
27
|
* wish to output the path in the console or error message.
|
|
@@ -66,4 +67,4 @@ declare function fetchPackageLocation(packageName: string, cwd?: string): Promis
|
|
|
66
67
|
*/
|
|
67
68
|
declare function detectPackageManager(cwd?: string): string;
|
|
68
69
|
|
|
69
|
-
export { type MiniPackageJson, asyncFindPath, asyncRetrievePackageJson, createFileIfNotExists, detectPackageManager, existsAsync, exportsForTests, fetchPackageLocation, findPath, getCwd, isPosix, path, retrievePackageJson, sh, toPosixPathSeparators, toSystemPathSeparators };
|
|
70
|
+
export { type MiniPackageJson, asyncFindPath, asyncRetrievePackageJson, createFileIfNotExists, detectPackageManager, existsAsync, exportsForTests, fetchPackageLocation, findPath, getCwd, isPosix, normalizePath, path, retrievePackageJson, sh, toPosixPathSeparators, toSystemPathSeparators };
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare function asyncFindPath(target: string, startDirectory?: string): Promise
|
|
|
21
21
|
*/
|
|
22
22
|
declare const isPosix: boolean;
|
|
23
23
|
declare const toPosixPathSeparators: (relativePath: string) => string;
|
|
24
|
+
declare const normalizePath: (relativePath: string) => string;
|
|
24
25
|
/**
|
|
25
26
|
* On Windows, replace all `/` in the path back with `\\`. Do this only if you
|
|
26
27
|
* wish to output the path in the console or error message.
|
|
@@ -66,4 +67,4 @@ declare function fetchPackageLocation(packageName: string, cwd?: string): Promis
|
|
|
66
67
|
*/
|
|
67
68
|
declare function detectPackageManager(cwd?: string): string;
|
|
68
69
|
|
|
69
|
-
export { type MiniPackageJson, asyncFindPath, asyncRetrievePackageJson, createFileIfNotExists, detectPackageManager, existsAsync, exportsForTests, fetchPackageLocation, findPath, getCwd, isPosix, path, retrievePackageJson, sh, toPosixPathSeparators, toSystemPathSeparators };
|
|
70
|
+
export { type MiniPackageJson, asyncFindPath, asyncRetrievePackageJson, createFileIfNotExists, detectPackageManager, existsAsync, exportsForTests, fetchPackageLocation, findPath, getCwd, isPosix, normalizePath, path, retrievePackageJson, sh, toPosixPathSeparators, toSystemPathSeparators };
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import posix from "path/posix";
|
|
|
7
7
|
import win32 from "path/win32";
|
|
8
8
|
var isPosix = sep === posix.sep;
|
|
9
9
|
var toPosixPathSeparators = (relativePath) => relativePath.includes(win32.sep) ? relativePath.replaceAll(win32.sep, posix.sep) : relativePath;
|
|
10
|
+
var normalizePath = isPosix ? (path2) => path2 : toPosixPathSeparators;
|
|
10
11
|
var toWin32PathSeparators = (relativePath) => relativePath.includes(posix.sep) ? relativePath.replaceAll(posix.sep, win32.sep) : relativePath;
|
|
11
12
|
var toSystemPathSeparators = isPosix ? (path2) => path2 : toWin32PathSeparators;
|
|
12
13
|
var getCwd = isPosix ? process.cwd : () => toPosixPathSeparators(process.cwd());
|
|
@@ -165,6 +166,7 @@ export {
|
|
|
165
166
|
findPath,
|
|
166
167
|
getCwd,
|
|
167
168
|
isPosix,
|
|
169
|
+
normalizePath,
|
|
168
170
|
path,
|
|
169
171
|
retrievePackageJson,
|
|
170
172
|
sh,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/components-build-utils",
|
|
3
|
-
"version": "4.32.0-next.
|
|
3
|
+
"version": "4.32.0-next.55",
|
|
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",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"chalk": "^5.3.0",
|
|
27
27
|
"commander": "^11.1.0",
|
|
28
28
|
"glob": "^11.0.0",
|
|
29
|
+
"split2": "^4.2.0",
|
|
29
30
|
"tslib": "^2.7.0"
|
|
30
31
|
}
|
|
31
32
|
}
|