lerna
Version:
Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository
16 lines (14 loc) • 467 B
JavaScript
import "../../chunk-MLKGABMK.js";
// packages/lerna/src/migrations/add-schema-config/add-schema-config.ts
import { formatFiles, readJson, writeJson } from "@nx/devkit";
async function generator(tree) {
const lernaJson = readJson(tree, "lerna.json");
if (!lernaJson.$schema) {
lernaJson.$schema = "node_modules/lerna/schemas/lerna-schema.json";
writeJson(tree, "lerna.json", lernaJson);
}
await formatFiles(tree);
}
export {
generator as default
};