@napi-rs/cli 3.10.7 → 3.10.8
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/cli.js +235 -20
- package/dist/index.cjs +235 -20
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +235 -20
- package/package.json +2 -2
- package/src/api/__tests__/artifacts.spec.ts +1644 -1
- package/src/api/artifacts.ts +547 -21
- package/src/utils/__tests__/__snapshots__/target.spec.ts.md +7 -0
- package/src/utils/__tests__/__snapshots__/target.spec.ts.snap +0 -0
- package/src/utils/misc.ts +2 -2
- package/src/utils/target.ts +1 -0
|
Binary file
|
package/src/utils/misc.ts
CHANGED
|
@@ -633,7 +633,7 @@ export async function withPackageFileSystemReconciliation<T>(
|
|
|
633
633
|
return acquire(0)
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
-
function managedPackagePathIsWithin(root: string, path: string) {
|
|
636
|
+
export function managedPackagePathIsWithin(root: string, path: string) {
|
|
637
637
|
const relativePath = relative(resolve(root), resolve(path))
|
|
638
638
|
return (
|
|
639
639
|
relativePath === '' ||
|
|
@@ -643,7 +643,7 @@ function managedPackagePathIsWithin(root: string, path: string) {
|
|
|
643
643
|
)
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
function canonicalizeManagedPackagePath(path: string) {
|
|
646
|
+
export function canonicalizeManagedPackagePath(path: string) {
|
|
647
647
|
let current = resolve(path)
|
|
648
648
|
const missingSegments: string[] = []
|
|
649
649
|
while (true) {
|
package/src/utils/target.ts
CHANGED