Skip to content

Commit 2e9f635

Browse files
committed
fix: Adjusted node version and removed latest changes
1 parent 96fd417 commit 2e9f635

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

.circleci/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
executors:
44
default:
55
docker:
6-
- image: cimg/node:18.20.2
6+
- image: cimg/node:20.19.0
77
working_directory: ~/react-native-paper
88

99
commands:
@@ -106,7 +106,6 @@ jobs:
106106
name: Build docs
107107
command: |
108108
export DOCUSAURUS_BASE_URL="/output/job/$CIRCLE_WORKFLOW_JOB_ID/artifacts/$CIRCLE_NODE_INDEX/docs/"
109-
export NODE_OPTIONS="--require $(pwd)/docs/scripts/node-shims.cjs"
110109
cd docs && yarn build && cd ..
111110
bash .circleci/comment-artifacts.sh
112111
- store_artifacts:

docs/docusaurus.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ const path = require('path');
55
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
66
const lightCodeTheme = require('prism-react-renderer/themes/github');
77

8-
// Node 18 lacks a global File in some environments; undici expects it during build.
9-
if (typeof globalThis.File === 'undefined') {
10-
globalThis.File = require('undici').File;
11-
}
12-
138
const { extendedExamples } = require('./src/data/extendedExamples.js');
149
const { screenshots } = require('./src/data/screenshots.js');
1510
const { themeColors } = require('./src/data/themeColors.js');

docs/scripts/node-shims.cjs

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)