From 33078ece667630f8e8962925c87b89003190c069 Mon Sep 17 00:00:00 2001 From: Divlo Date: Wed, 23 Feb 2022 09:06:12 +0100 Subject: [PATCH] chore: temporarily support Node.js v14 to deploy on Vercel --- .eslintrc.json | 5 +++-- package-lock.json | 4 ++-- package.json | 4 ++-- utils/blog.ts | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index a014981..d8f0e4f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,6 @@ { "extends": ["conventions", "next/core-web-vitals", "prettier"], - "plugins": ["prettier"], + "plugins": ["prettier", "unicorn"], "parserOptions": { "project": "./tsconfig.json" }, @@ -10,6 +10,7 @@ "jest": true }, "rules": { - "prettier/prettier": "error" + "prettier/prettier": "error", + "unicorn/prefer-node-protocol": "off" } } diff --git a/package-lock.json b/package-lock.json index 15df441..ff42dca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -79,8 +79,8 @@ "vercel": "24.0.0" }, "engines": { - "node": ">=16.0.0", - "npm": ">=8.0.0" + "node": ">=14.0.0", + "npm": ">=7.0.0" } }, "jsonresume-theme-custom": { diff --git a/package.json b/package.json index 4656cd1..430eb1f 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "url": "https://github.com/Divlo/Divlo" }, "engines": { - "node": ">=16.0.0", - "npm": ">=8.0.0" + "node": ">=14.0.0", + "npm": ">=7.0.0" }, "scripts": { "dev": "next dev", diff --git a/utils/blog.ts b/utils/blog.ts index 428ab62..9bace5d 100644 --- a/utils/blog.ts +++ b/utils/blog.ts @@ -1,5 +1,5 @@ -import fs from 'node:fs' -import path from 'node:path' +import fs from 'fs' +import path from 'path' import type { MDXRemoteSerializeResult } from 'next-mdx-remote' import { nodeTypes } from '@mdx-js/mdx'