@pnpm/modules-yaml
Advanced tools
Comparing version 10.0.8 to 11.0.0
@@ -25,5 +25,5 @@ import { DependenciesField, HoistedDependencies, Registries } from '@pnpm/types'; | ||
} | ||
export declare function read(modulesDir: string): Promise<Modules | null>; | ||
export declare function write(modulesDir: string, modules: Modules & { | ||
export declare function readModulesManifest(modulesDir: string): Promise<Modules | null>; | ||
export declare function writeModulesManifest(modulesDir: string, modules: Modules & { | ||
registries: Registries; | ||
}): Promise<void>; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.write = exports.read = void 0; | ||
exports.writeModulesManifest = exports.readModulesManifest = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
@@ -15,3 +15,3 @@ const read_yaml_file_1 = __importDefault(require("read-yaml-file")); | ||
const MODULES_FILENAME = '.modules.yaml'; | ||
async function read(modulesDir) { | ||
async function readModulesManifest(modulesDir) { | ||
const modulesYamlPath = path_1.default.join(modulesDir, MODULES_FILENAME); | ||
@@ -69,3 +69,3 @@ let modules; | ||
} | ||
exports.read = read; | ||
exports.readModulesManifest = readModulesManifest; | ||
const YAML_OPTS = { | ||
@@ -77,3 +77,3 @@ lineWidth: 1000, | ||
}; | ||
async function write(modulesDir, modules) { | ||
async function writeModulesManifest(modulesDir, modules) { | ||
const modulesYamlPath = path_1.default.join(modulesDir, MODULES_FILENAME); | ||
@@ -102,3 +102,3 @@ const saveModules = { ...modules }; | ||
} | ||
exports.write = write; | ||
exports.writeModulesManifest = writeModulesManifest; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/modules-yaml", | ||
"version": "10.0.8", | ||
"version": "11.0.0", | ||
"description": "Reads/writes `node_modules/.modules.yaml`", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/modules-yaml": "10.0.8", | ||
"@pnpm/modules-yaml": "11.0.0", | ||
"@types/is-windows": "^1.0.0", | ||
@@ -35,0 +35,0 @@ "tempy": "^1.0.1" |
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
11356