From 5eba8d027c32ac45939d626e02879b87e4f69fcb Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Mon, 1 May 2023 18:08:02 -0700 Subject: [PATCH] build: Fix broken docs. --- .github/workflows/build.yml | 2 ++ packages/regex/tsconfig.json | 2 +- website/docusaurus.config.js | 10 +++++----- website/package.json | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51daf3df..c5442d04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,3 +86,5 @@ jobs: - run: yarn install --immutable - run: yarn run pack - run: cd website && yarn run build + env: + NODE_OPTIONS: --openssl-legacy-provider diff --git a/packages/regex/tsconfig.json b/packages/regex/tsconfig.json index d6fe215b..4e0df70e 100644 --- a/packages/regex/tsconfig.json +++ b/packages/regex/tsconfig.json @@ -10,7 +10,7 @@ ], "extends": "../../tsconfig.options.json", "include": [ - "src/**/*", + "**/*", "types/**/*", "../../types/**/*" ], diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 5b725b4e..1ebd9406 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -130,11 +130,11 @@ module.exports = { // path: 'packages/data', // slug: 'emojibase-data', // }, - // { - // entry: '.', - // path: 'packages/regex', - // slug: 'emojibase-regex', - // }, + { + entry: '.', + path: 'packages/regex', + slug: 'emojibase-regex', + }, ], minimal: true, readmes: true, diff --git a/website/package.json b/website/package.json index afb87f79..4c6f8daa 100644 --- a/website/package.json +++ b/website/package.json @@ -4,8 +4,8 @@ "private": true, "scripts": { "docusaurus": "docusaurus", - "start": "docusaurus start", - "build": "docusaurus build", + "start": "NODE_OPTIONS=--openssl-legacy-provider docusaurus start", + "build": "NODE_OPTIONS=--openssl-legacy-provider docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", "serve": "docusaurus serve"