Files
pnpm/__utils__/assert-project/package.json
Zoltan Kochan 31858c544b refactor: merge env lockfile into pnpm-lock.yaml (#10964)
Instead of a separate pnpm-lock.env.yaml file, the env lockfile
(configDependencies and packageManagerDependencies) is now stored as
the first YAML document in pnpm-lock.yaml, separated by `---`.

The combined file starts with `---\n` when an env document is present,
allowing pnpm to check just the first 4 bytes to know whether
the file contains an env document. Reading uses streaming I/O that
stops as soon as the document separator is found, avoiding parsing
of the full lockfile.

Writing preserves both documents: when the env lockfile is updated
the main lockfile portion is kept, and vice versa.
2026-03-15 01:44:20 +01:00

61 lines
1.7 KiB
JSON

{
"name": "@pnpm/assert-project",
"description": "Utils for testing projects that use pnpm",
"version": "1000.0.4",
"author": {
"name": "Zoltan Kochan",
"email": "z@kochan.io",
"url": "https://www.kochan.io/"
},
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"main": "lib/index.js",
"type": "module",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"devDependencies": {
"@pnpm/assert-project": "workspace:*",
"@types/is-windows": "catalog:",
"@types/isexe": "catalog:",
"@types/js-yaml": "catalog:",
"@types/node": "catalog:"
},
"directories": {
"test": "test"
},
"homepage": "https://github.com/pnpm/pnpm/blob/master/privatePackages/assert-project#readme",
"keywords": [
"pnpm",
"pnpm11"
],
"license": "MIT",
"engines": {
"node": ">=10"
},
"repository": "https://github.com/pnpm/pnpm/tree/main/__utils__/assert-project",
"scripts": {
"lint": "eslint src/**/*.ts test/**/*.ts",
"lint-test": "tslint -c tslint.json --project test",
"compile": "rimraf tsconfig.tsbuildinfo lib && tsc --build",
"prepublishOnly": "pnpm run compile",
"pretest": "pnpm install -C test/fixture/project --force --no-shared-workspace-lockfile",
"test": "pnpm pretest && pnpm run compile && jest"
},
"dependencies": {
"@pnpm/assert-store": "workspace:*",
"@pnpm/constants": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/modules-yaml": "workspace:*",
"@pnpm/registry-mock": "catalog:",
"@pnpm/types": "workspace:*",
"is-windows": "catalog:",
"isexe": "catalog:",
"js-yaml": "catalog:",
"read-yaml-file": "catalog:",
"write-package": "catalog:"
}
}