@pnpm/lockfile-file
Advanced tools
Comparing version 3.1.4 to 3.2.0
# @pnpm/lockfile-file | ||
## 3.2.0 | ||
### Minor Changes | ||
- 9ad8c27bf: Add optional neverBuiltDependencies property to the lockfile object. | ||
### Patch Changes | ||
- Updated dependencies [9ad8c27bf] | ||
- Updated dependencies [9ad8c27bf] | ||
- @pnpm/lockfile-types@2.2.0 | ||
- @pnpm/types@6.4.0 | ||
- @pnpm/merge-lockfile-changes@1.0.1 | ||
## 3.1.4 | ||
@@ -4,0 +18,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Lockfile } from '@pnpm/lockfile-types'; | ||
import { Lockfile, ProjectSnapshot } from '@pnpm/lockfile-types'; | ||
export declare function writeWantedLockfile(pkgPath: string, wantedLockfile: Lockfile, opts?: { | ||
@@ -8,2 +8,4 @@ forceSharedFormat?: boolean; | ||
}): Promise<void>; | ||
declare type LockfileFile = Omit<Lockfile, 'importers'> & Partial<ProjectSnapshot> & Partial<Pick<Lockfile, 'importers'>>; | ||
export declare function normalizeLockfile(lockfile: Lockfile, forceSharedFormat: boolean): LockfileFile; | ||
export default function writeLockfiles(opts: { | ||
@@ -16,1 +18,2 @@ forceSharedFormat?: boolean; | ||
}): Promise<void>; | ||
export {}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.writeCurrentLockfile = exports.writeWantedLockfile = void 0; | ||
exports.normalizeLockfile = exports.writeCurrentLockfile = exports.writeWantedLockfile = void 0; | ||
const logger_1 = __importDefault(require("./logger")); | ||
@@ -93,4 +93,13 @@ const types_1 = require("@pnpm/types"); | ||
} | ||
if (lockfileToSave.neverBuiltDependencies) { | ||
if (R.isEmpty(lockfileToSave.neverBuiltDependencies)) { | ||
delete lockfileToSave.neverBuiltDependencies; | ||
} | ||
else { | ||
lockfileToSave.neverBuiltDependencies = lockfileToSave.neverBuiltDependencies.sort(); | ||
} | ||
} | ||
return lockfileToSave; | ||
} | ||
exports.normalizeLockfile = normalizeLockfile; | ||
async function writeLockfiles(opts) { | ||
@@ -97,0 +106,0 @@ const wantedLockfilePath = path.join(opts.wantedLockfileDir, constants_1.WANTED_LOCKFILE); |
{ | ||
"name": "@pnpm/lockfile-file", | ||
"version": "3.1.4", | ||
"version": "3.2.0", | ||
"description": "Read/write pnpm-lock.yaml files", | ||
@@ -50,5 +50,5 @@ "main": "lib/index.js", | ||
"@pnpm/error": "1.4.0", | ||
"@pnpm/lockfile-types": "2.1.1", | ||
"@pnpm/merge-lockfile-changes": "1.0.0", | ||
"@pnpm/types": "6.3.1", | ||
"@pnpm/lockfile-types": "2.2.0", | ||
"@pnpm/merge-lockfile-changes": "1.0.1", | ||
"@pnpm/types": "6.4.0", | ||
"@zkochan/rimraf": "^1.0.0", | ||
@@ -55,0 +55,0 @@ "js-yaml": "^4.0.0", |
27170
457
+ Added@pnpm/lockfile-types@2.2.0(transitive)
+ Added@pnpm/merge-lockfile-changes@1.0.1(transitive)
+ Added@pnpm/types@6.4.0(transitive)
- Removed@pnpm/lockfile-types@2.1.1(transitive)
- Removed@pnpm/merge-lockfile-changes@1.0.0(transitive)
- Removed@pnpm/types@6.3.1(transitive)
Updated@pnpm/lockfile-types@2.2.0
Updated@pnpm/types@6.4.0