oportunidades 8
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-14 08:25:30 +02:00
parent 287e991486
commit ba1c0340ea
9112 changed files with 2199795 additions and 856 deletions
@@ -0,0 +1,3 @@
#!/usr/bin/env node
// CommonJS shim for compatibility with older Corepack versions
import('./pnpm.mjs')
@@ -0,0 +1,36 @@
#!/usr/bin/env node
const [major, minor] = process.version.slice(1).split('.')
const COMPATIBILITY_PAGE = `Visit https://r.pnpm.io/comp to see the list of past pnpm versions with respective Node.js version support.`
// We don't use the semver library here because:
// 1. it is already bundled to dist/pnpm.mjs, so we would load it twice
// 2. we want this file to support potentially older Node.js versions than what semver supports
if (major == 20) {
console.warn(`warn: This version of pnpm requires at least Node.js v22.13
warn: The current version of Node.js is ${process.version}
warn: ${COMPATIBILITY_PAGE}`)
} else if (major < 22 || major == 22 && minor < 13) {
console.error(`ERROR: This version of pnpm requires at least Node.js v22.13
The current version of Node.js is ${process.version}
${COMPATIBILITY_PAGE}`)
process.exit(1)
}
import * as module from 'module'
// We need to load v8-compile-cache.js separately in order to have effect
try {
module.enableCompileCache?.()
} catch {
// We don't have/need to care about v8-compile-cache failed
}
global['pnpm__startedAt'] = Date.now()
// Use dynamic import so the Node.js version check above runs first; a static
// import would be hoisted and parse the bundle before the check, crashing on
// older Node.js versions that don't recognize newer syntax in bundled deps.
await import('../dist/pnpm.mjs')
// if you want to debug at your local env, you can use this
// require('../lib/pnpm')
@@ -0,0 +1,3 @@
#!/usr/bin/env node
// CommonJS shim for compatibility with older Corepack versions
import('./pnpx.mjs')
@@ -0,0 +1,5 @@
#!/usr/bin/env node
process.argv = [...process.argv.slice(0, 2), 'dlx', ...process.argv.slice(2)]
await import('./pnpm.mjs')