blob: 2ecaff0c07750eb8266ad89f736f790363378aa2 [file] [log] [blame]
const lockfileContent = require('fs').readFileSync('pnpm-lock.yaml', 'utf8')
const lockfileVersion = lockfileContent.match(/lockfileVersion: '([^']+)'/)
if (!lockfileVersion || lockfileVersion[1] !== '6.0') {
throw new Error('Incorrect pnpm version: ' + lockfileVersion[1])
}