@pnpm/types
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -1,5 +0,9 @@ | ||
import { PackageManifest } from './package'; | ||
import { DependenciesField } from './misc'; | ||
import { PackageJson, PackageManifest } from './package'; | ||
export interface LogBase { | ||
level: 'debug' | 'info' | 'warn' | 'error'; | ||
} | ||
export declare type IncludedDependencies = { | ||
[dependenciesField in DependenciesField]: boolean; | ||
}; | ||
export interface PnpmOptions { | ||
@@ -12,2 +16,3 @@ rawNpmConfig?: object; | ||
ignoreScripts?: boolean; | ||
include?: IncludedDependencies; | ||
save?: boolean; | ||
@@ -68,3 +73,6 @@ saveProd?: boolean; | ||
} | ||
export declare type ReadPackageHook = (pkg: PackageManifest) => PackageManifest; | ||
export interface ReadPackageHook { | ||
(pkg: PackageManifest): PackageManifest; | ||
(pkg: PackageJson): PackageJson; | ||
} | ||
export declare type StrictPnpmOptions = PnpmOptions & { | ||
@@ -71,0 +79,0 @@ rawNpmConfig: object; |
@@ -42,6 +42,5 @@ export interface Dependencies { | ||
}; | ||
export interface PackageJson { | ||
name: string; | ||
version: string; | ||
private?: boolean; | ||
interface BaseManifest { | ||
name?: string; | ||
version?: string; | ||
bin?: PackageBin; | ||
@@ -66,22 +65,17 @@ directories?: { | ||
} | ||
export interface PackageManifest { | ||
export declare type DependencyManifest = BaseManifest & { | ||
name: string; | ||
version: string; | ||
bin?: PackageBin; | ||
directories?: { | ||
bin?: string; | ||
}; | ||
dependencies?: Dependencies; | ||
devDependencies?: Dependencies; | ||
optionalDependencies?: Dependencies; | ||
peerDependencies?: Dependencies; | ||
bundleDependencies?: string[]; | ||
bundledDependencies?: string[]; | ||
engines?: { | ||
node?: string; | ||
npm?: string; | ||
}; | ||
cpu?: string[]; | ||
os?: string[]; | ||
}; | ||
export declare type ImporterManifest = BaseManifest & { | ||
private?: boolean; | ||
}; | ||
export declare type PackageJson = BaseManifest & { | ||
private?: boolean; | ||
}; | ||
export declare type PackageManifest = BaseManifest & { | ||
name: string; | ||
version: string; | ||
deprecated?: string; | ||
} | ||
}; | ||
export {}; |
{ | ||
"name": "@pnpm/types", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Basic types used by pnpm", | ||
@@ -34,4 +34,4 @@ "main": "lib/index.js", | ||
"rimraf": "2.6.3", | ||
"tslint": "5.13.1", | ||
"typescript": "3.3.3333" | ||
"tslint": "5.16.0", | ||
"typescript": "3.4.4" | ||
}, | ||
@@ -38,0 +38,0 @@ "mos": { |
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
9853
247