@arcgis/node-toolkit 5.2.0-next.72 → 5.2.0-next.74
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/workspace.d.ts +5 -0
- package/dist/workspace.js +4 -0
- package/package.json +1 -1
package/dist/workspace.d.ts
CHANGED
|
@@ -8,6 +8,11 @@ export declare function setRootTargetFile(target: string): void;
|
|
|
8
8
|
* By default, it looks for the pnpm-lock.yaml file, but you can call setRootTargetFile to specify a different target file if needed.
|
|
9
9
|
*/
|
|
10
10
|
export declare function findRepositoryRoot(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Get the path to the Turbo CLI. This allows us to directly invoke it without incurring the overhead of going through
|
|
13
|
+
* the package manager.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getTurboPath(repositoryRoot?: string): string;
|
|
11
16
|
/**
|
|
12
17
|
* Parse a version string into its components.
|
|
13
18
|
*
|
package/dist/workspace.js
CHANGED
|
@@ -15,6 +15,9 @@ function findRepositoryRoot() {
|
|
|
15
15
|
}
|
|
16
16
|
return path.dirname(lockFilePath);
|
|
17
17
|
}
|
|
18
|
+
function getTurboPath(repositoryRoot = findRepositoryRoot()) {
|
|
19
|
+
return path.join(repositoryRoot, "node_modules/turbo/bin/turbo");
|
|
20
|
+
}
|
|
18
21
|
const parseVersion = (version) => {
|
|
19
22
|
const versionParts = /^(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*)(?:-(?<prereleaseParts>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/u.exec(
|
|
20
23
|
version
|
|
@@ -69,6 +72,7 @@ export {
|
|
|
69
72
|
detectPackageManager,
|
|
70
73
|
findRepositoryRoot,
|
|
71
74
|
getSystemVersion,
|
|
75
|
+
getTurboPath,
|
|
72
76
|
parseVersion,
|
|
73
77
|
setRootTargetFile
|
|
74
78
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/node-toolkit",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.74",
|
|
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",
|