@pnpm/types
Advanced tools
Comparing version 10.0.0 to 10.1.0
@@ -14,3 +14,3 @@ export type DependenciesField = 'optionalDependencies' | 'dependencies' | 'devDependencies'; | ||
} | ||
export type HoistedDependencies = Record<string, Record<string, 'public' | 'private'>>; | ||
export type HoistedDependencies = Record<DepPath | string, Record<string, 'public' | 'private'>>; | ||
export interface PatchFile { | ||
@@ -20,1 +20,13 @@ path: string; | ||
} | ||
export type PkgResolutionId = string & { | ||
__brand: 'PkgResolutionId'; | ||
}; | ||
export type PkgId = string & { | ||
__brand: 'PkgId'; | ||
}; | ||
export type PkgIdWithPatchHash = string & { | ||
__brand: 'PkgIdWithPatchHash'; | ||
}; | ||
export type DepPath = string & { | ||
__brand: 'DepPath'; | ||
}; |
@@ -108,3 +108,6 @@ export type Dependencies = Record<string, string>; | ||
} | ||
export type DependencyManifest = BaseManifest & Required<Pick<BaseManifest, 'name' | 'version'>>; | ||
export interface DependencyManifest extends BaseManifest { | ||
name: string; | ||
version: string; | ||
} | ||
export type PackageExtension = Pick<BaseManifest, 'dependencies' | 'optionalDependencies' | 'peerDependencies' | 'peerDependenciesMeta'>; | ||
@@ -117,3 +120,3 @@ export interface PeerDependencyRules { | ||
export type AllowedDeprecatedVersions = Record<string, string>; | ||
export type ProjectManifest = BaseManifest & { | ||
export interface ProjectManifest extends BaseManifest { | ||
packageManager?: string; | ||
@@ -143,6 +146,6 @@ workspaces?: string[]; | ||
resolutions?: Record<string, string>; | ||
}; | ||
export type PackageManifest = DependencyManifest & { | ||
} | ||
export interface PackageManifest extends DependencyManifest { | ||
deprecated?: string; | ||
}; | ||
} | ||
export interface SupportedArchitectures { | ||
@@ -149,0 +152,0 @@ os?: string[]; |
{ | ||
"name": "@pnpm/types", | ||
"version": "10.0.0", | ||
"version": "10.1.0", | ||
"description": "Basic types used by pnpm", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/types": "10.0.0" | ||
"@pnpm/types": "10.1.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "exports": { |
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
11969
275