adastra-cli
Version:
Adastra CLI ✨ is a CLI toolkit built on top of Shopify CLI 3.X, this means that existing Adastra commands are the same as Shopify's. The goal from this package is to allow developers to use one CLI intefrace between the Vite and Shopify development server
17 lines (13 loc) • 518 B
JavaScript
const currentVersion = process.versions.node
const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10)
const minimumMajorVersion = 14
if (requiredMajorVersion < minimumMajorVersion) {
console.error(`Node.js v${currentVersion} is out of date and unsupported!`)
console.error(`Please use Node.js v${minimumMajorVersion} or higher.`)
process.exit(1)
}
;(async () => {
const oclif = await import('@oclif/core')
await oclif.execute({ type: 'esm', dir: import.meta.url })
})()