@ms-cloudpack/path-utilities 3.2.16 → 3.2.18
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findProjectRoot.js","sourceRoot":"","sources":["../src/findProjectRoot.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE7F;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAC7B,GAAW,EACX,
|
|
1
|
+
{"version":3,"file":"findProjectRoot.js","sourceRoot":"","sources":["../src/findProjectRoot.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE7F;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAC7B,GAAW,EACX,OAAO,GAGH,EAAE;IAEN,IAAI,CAAC;QACH,OAAO,sBAAsB,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;IAClE,CAAC;AACH,CAAC","sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-restricted-imports -- this is the definition of the wrapper\nimport { findProjectRoot as wsToolsFindProjectRoot, findPackageRoot } from 'workspace-tools';\n\n/**\n * Find the project root:\n * - Current workspace root (for multi-workspace monorepo)\n * - Git root\n * - Package root (unless `options.noPackageRoot` is true)\n * - undefined if not found\n */\nexport function findProjectRoot(\n cwd: string,\n options: {\n /** Skip the package root fallback */\n noPackageRoot?: boolean;\n } = {},\n): string | undefined {\n try {\n return wsToolsFindProjectRoot(cwd);\n } catch {\n return options.noPackageRoot ? undefined : findPackageRoot(cwd);\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/path-utilities",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.18",
|
|
4
4
|
"description": "Path utilities for Cloudpack.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"test": "cloudpack-scripts test"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ms-cloudpack/path-string-parsing": "^1.3.
|
|
27
|
+
"@ms-cloudpack/path-string-parsing": "^1.3.6",
|
|
28
28
|
"import-meta-resolve": "^4.1.0",
|
|
29
29
|
"resolve": "^1.22.0",
|
|
30
30
|
"tinyglobby": "^0.2.13",
|
|
31
|
-
"workspace-tools": "^0.
|
|
31
|
+
"workspace-tools": "^0.42.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@ms-cloudpack/common-types": "^0.
|
|
34
|
+
"@ms-cloudpack/common-types": "^0.35.0",
|
|
35
35
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
36
36
|
"@ms-cloudpack/scripts": "^0.0.1",
|
|
37
37
|
"@ms-cloudpack/test-utilities": "^0.5.0"
|