@pnpm/read-project-manifest
Advanced tools
Comparing version 6.0.6 to 6.0.7
@@ -6,3 +6,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.readExactProjectManifest = exports.tryReadProjectManifest = exports.readProjectManifestOnly = exports.readProjectManifest = exports.safeReadProjectManifestOnly = void 0; | ||
exports.safeReadProjectManifestOnly = safeReadProjectManifestOnly; | ||
exports.readProjectManifest = readProjectManifest; | ||
exports.readProjectManifestOnly = readProjectManifestOnly; | ||
exports.tryReadProjectManifest = tryReadProjectManifest; | ||
exports.readExactProjectManifest = readExactProjectManifest; | ||
const fs_1 = require("fs"); | ||
@@ -30,3 +34,2 @@ const path_1 = __importDefault(require("path")); | ||
} | ||
exports.safeReadProjectManifestOnly = safeReadProjectManifestOnly; | ||
async function readProjectManifest(projectDir) { | ||
@@ -39,3 +42,2 @@ const result = await tryReadProjectManifest(projectDir); | ||
} | ||
exports.readProjectManifest = readProjectManifest; | ||
async function readProjectManifestOnly(projectDir) { | ||
@@ -45,3 +47,2 @@ const { manifest } = await readProjectManifest(projectDir); | ||
} | ||
exports.readProjectManifestOnly = readProjectManifestOnly; | ||
async function tryReadProjectManifest(projectDir) { | ||
@@ -118,3 +119,2 @@ try { | ||
} | ||
exports.tryReadProjectManifest = tryReadProjectManifest; | ||
function detectFileFormattingAndComments(text) { | ||
@@ -169,3 +169,2 @@ const { comments, text: newText, hasFinalNewline } = (0, text_comments_parser_1.extractComments)(text); | ||
} | ||
exports.readExactProjectManifest = readExactProjectManifest; | ||
async function readPackageYaml(filePath) { | ||
@@ -172,0 +171,0 @@ try { |
@@ -6,3 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.readJsonFile = exports.readJson5File = void 0; | ||
exports.readJson5File = readJson5File; | ||
exports.readJsonFile = readJsonFile; | ||
const graceful_fs_1 = __importDefault(require("@pnpm/graceful-fs")); | ||
@@ -26,3 +27,2 @@ const json5_1 = __importDefault(require("json5")); | ||
} | ||
exports.readJson5File = readJson5File; | ||
async function readJsonFile(filePath) { | ||
@@ -41,3 +41,2 @@ const text = await readFileWithoutBom(filePath); | ||
} | ||
exports.readJsonFile = readJsonFile; | ||
async function readFileWithoutBom(path) { | ||
@@ -44,0 +43,0 @@ return (0, strip_bom_1.default)(await graceful_fs_1.default.readFile(path, 'utf8')); |
{ | ||
"name": "@pnpm/read-project-manifest", | ||
"version": "6.0.6", | ||
"version": "6.0.7", | ||
"description": "Read a project manifest (called package.json in most cases)", | ||
@@ -35,6 +35,6 @@ "main": "lib/index.js", | ||
"@pnpm/error": "6.0.1", | ||
"@pnpm/graceful-fs": "4.0.0", | ||
"@pnpm/write-project-manifest": "6.0.6", | ||
"@pnpm/text.comments-parser": "3.0.0", | ||
"@pnpm/graceful-fs": "4.0.0", | ||
"@pnpm/types": "12.0.0", | ||
"@pnpm/write-project-manifest": "6.0.5" | ||
"@pnpm/types": "12.1.0" | ||
}, | ||
@@ -46,3 +46,3 @@ "devDependencies": { | ||
"tempy": "^1.0.1", | ||
"@pnpm/read-project-manifest": "6.0.6" | ||
"@pnpm/read-project-manifest": "6.0.7" | ||
}, | ||
@@ -49,0 +49,0 @@ "funding": "https://opencollective.com/pnpm", |
Sorry, the diff of this file is not supported yet
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
21146
291
+ Added@pnpm/types@12.1.0(transitive)
+ Added@pnpm/write-project-manifest@6.0.6(transitive)
- Removed@pnpm/types@12.0.0(transitive)
- Removed@pnpm/write-project-manifest@6.0.5(transitive)
Updated@pnpm/types@12.1.0