This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const path = require('path') | |
const YAML = require('yaml') | |
const { execSync } = require('child_process') | |
const workspaceConfigPath = path.resolve(__dirname, 'pnpm-workspace.yaml') | |
const loadWorkspaceCatalogs = () => { | |
const workspaceContent = fs.readFileSync(workspaceConfigPath, 'utf8') | |
const workspaceConfig = YAML.parse(workspaceContent) |