Address review

This commit is contained in:
Ed Rivas 2023-06-15 17:49:54 +00:00
parent 299bdf375a
commit 47bb3b2a1a
4 changed files with 6 additions and 6 deletions

View File

@ -31,6 +31,7 @@ in these places and then run `nvm install` to upgrade:
- `package.json` (`engines.node` field) - `package.json` (`engines.node` field)
- `.nvmrc` - `.nvmrc`
- `netlify.toml` - `netlify.toml`
- `Dockerfile`
To upgrade the yarn version, run `yarn set version latest`, then update the To upgrade the yarn version, run `yarn set version latest`, then update the
version number in `netlify.toml` and `package.json` (`engines.yarn` field) if version number in `netlify.toml` and `package.json` (`engines.yarn` field) if

View File

@ -2,7 +2,7 @@ const { spawn: nodeSpawn } = require('node:child_process');
const fs = require('node:fs/promises'); const fs = require('node:fs/promises');
const deepEqual = require('deep-equal'); const deepEqual = require('deep-equal');
const chalk = require('kleur'); const kleur = require('kleur');
const VERSION_CACHE_PATH = './source/_data/versionCache.json'; const VERSION_CACHE_PATH = './source/_data/versionCache.json';
@ -56,7 +56,7 @@ const getCacheFile = async () => {
*/ */
const writeCacheFile = async (cache) => { const writeCacheFile = async (cache) => {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.info(chalk.green(`[11ty] Writing version cache file...`)); console.info(kleur.green(`[11ty] Writing version cache file...`));
await fs.writeFile(VERSION_CACHE_PATH, JSON.stringify(cache)); await fs.writeFile(VERSION_CACHE_PATH, JSON.stringify(cache));
}; };
@ -65,7 +65,7 @@ const writeCacheFile = async (cache) => {
*/ */
const getLatestVersion = async (repo) => { const getLatestVersion = async (repo) => {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.info(chalk.cyan(`[11ty] Fetching version information for ${repo}`)); console.info(kleur.cyan(`[11ty] Fetching version information for ${repo}`));
const { parseSemVer, compareSemVer } = await import('semver-parser'); const { parseSemVer, compareSemVer } = await import('semver-parser');
let stdout; let stdout;
try { try {
@ -76,7 +76,7 @@ const getLatestVersion = async (repo) => {
); );
} catch (err) { } catch (err) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.error(chalk.red(`[11ty] Failed to fetch git tags for ${repo}`)); console.error(kleur.red(`[11ty] Failed to fetch git tags for ${repo}`));
throw err; throw err;
} }
const isNotPreRelease = (version) => { const isNotPreRelease = (version) => {

View File

@ -49,7 +49,7 @@
{% markdown %} {% markdown %}
Sass will automatically convert between compatible units, although which unit Sass will automatically convert between compatible units, although which unit
it will choose for the result depends on which implementation of Sass you're it will choose for the result depends on which implementation of Sass you're
using.If you try to combine incompatible units, like `1in + 1em`, Sass will using. If you try to combine incompatible units, like `1in + 1em`, Sass will
throw an error. throw an error.
{% endmarkdown %} {% endmarkdown %}

View File

@ -1,6 +1,5 @@
/*! Sass */ /*! Sass */
@charset 'utf-8';
@use 'config'; @use 'config';
@use 'vendor/normalize'; @use 'vendor/normalize';
@use 'vendor/sanitize'; @use 'vendor/sanitize';