@pnpm/directory-fetcher
Advanced tools
Comparing version 1.0.0 to 1.0.1
import { Cafs, DeferredManifestPromise } from '@pnpm/fetcher-base'; | ||
import { DirectoryResolution } from '@pnpm/resolver-base'; | ||
export interface DirectoryFetcherOptions { | ||
lockfileDir: string; | ||
manifest?: DeferredManifestPromise; | ||
@@ -14,3 +15,3 @@ } | ||
export default _default; | ||
export declare function fetchFromDir(dir: string, opts: DirectoryFetcherOptions): Promise<{ | ||
export declare function fetchFromDir(dir: string, opts: Omit<DirectoryFetcherOptions, 'lockfileDir'>): Promise<{ | ||
local: true; | ||
@@ -17,0 +18,0 @@ filesIndex: Record<string, string>; |
@@ -13,3 +13,6 @@ "use strict"; | ||
return { | ||
directory: (cafs, resolution, opts) => fetchFromDir(resolution.directory, opts), | ||
directory: (cafs, resolution, opts) => { | ||
const dir = path_1.default.join(opts.lockfileDir, resolution.directory); | ||
return fetchFromDir(dir, opts); | ||
}, | ||
}; | ||
@@ -16,0 +19,0 @@ }; |
{ | ||
"name": "@pnpm/directory-fetcher", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A fetcher for local directory packages", | ||
"funding": "https://opencollective.com/pnpm", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
@@ -27,4 +27,4 @@ "lib", | ||
"dependencies": { | ||
"@pnpm/fetcher-base": "11.1.0", | ||
"@pnpm/resolver-base": "8.1.0", | ||
"@pnpm/fetcher-base": "11.1.1", | ||
"@pnpm/resolver-base": "8.1.1", | ||
"load-json-file": "^6.2.0", | ||
@@ -31,0 +31,0 @@ "npm-packlist": "^2.2.2", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5433
50
+ Added@pnpm/fetcher-base@11.1.1(transitive)
+ Added@pnpm/resolver-base@8.1.1(transitive)
+ Added@pnpm/types@7.6.0(transitive)
- Removed@pnpm/fetcher-base@11.1.0(transitive)
- Removed@pnpm/resolver-base@8.1.0(transitive)
- Removed@pnpm/types@7.5.0(transitive)
Updated@pnpm/fetcher-base@11.1.1
Updated@pnpm/resolver-base@8.1.1