@arcgis/node-toolkit 5.2.0-next.71 → 5.2.0-next.73
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/LICENSE.md +4 -2
- package/dist/workspace.d.ts +5 -0
- package/dist/workspace.js +4 -0
- package/package.json +1 -1
package/LICENSE.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# Licensing
|
|
2
2
|
|
|
3
|
-
COPYRIGHT
|
|
3
|
+
COPYRIGHT Esri
|
|
4
4
|
|
|
5
5
|
All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
|
|
6
6
|
|
|
7
|
-
This material is licensed for use under the
|
|
7
|
+
This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement.
|
|
8
8
|
You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
|
|
9
9
|
|
|
10
|
+
See use restrictions at https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf.
|
|
11
|
+
|
|
10
12
|
For additional information, contact:
|
|
11
13
|
Environmental Systems Research Institute, Inc.
|
|
12
14
|
Attn: Contracts and Legal Services Department
|
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.73",
|
|
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",
|