[ci] yarn format
This commit is contained in:
parent
6ec7968d12
commit
2ad2ccdc50
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ const CI_INTRUCTIONS = {
|
||||||
async function main() {
|
async function main() {
|
||||||
// Check for ESM support by loading the "supports-esm" in an way that works in both ESM & CJS.
|
// Check for ESM support by loading the "supports-esm" in an way that works in both ESM & CJS.
|
||||||
const supportsESM = typeof require !== 'undefined' ? require('supports-esm') : (await import('supports-esm')).default;
|
const supportsESM = typeof require !== 'undefined' ? require('supports-esm') : (await import('supports-esm')).default;
|
||||||
|
|
||||||
// Supported: load Astro and run. Enjoy!
|
// Supported: load Astro and run. Enjoy!
|
||||||
if (supportsESM) {
|
if (supportsESM) {
|
||||||
return import('./dist/cli.js')
|
return import('./dist/cli.js')
|
||||||
|
@ -33,8 +33,8 @@ async function main() {
|
||||||
const semver = require('semver');
|
const semver = require('semver');
|
||||||
const engines = pkg.engines.node;
|
const engines = pkg.engines.node;
|
||||||
const version = process.versions.node;
|
const version = process.versions.node;
|
||||||
|
|
||||||
// TODO: Remove "semver" in Astro v1.0: This is mainly just to check our work. Once run in
|
// TODO: Remove "semver" in Astro v1.0: This is mainly just to check our work. Once run in
|
||||||
// the wild for a bit without error, we can assume our engine range is correct and won't
|
// the wild for a bit without error, we can assume our engine range is correct and won't
|
||||||
// change over time.
|
// change over time.
|
||||||
const isSupported = semver.satisfies(version, engines);
|
const isSupported = semver.satisfies(version, engines);
|
||||||
|
|
Loading…
Reference in a new issue