Skip to content

Commit 28323a7

Browse files
committed
fix: Relax Node.js requirement to 14.15.0 as minimum
1 parent 21d14a0 commit 28323a7

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
tests:
1717
strategy:
1818
matrix:
19-
node: ['14', '16', '18']
19+
node: ['14.15.0', '16', '18']
2020
os: ['ubuntu']
2121
include:
2222
- os: macos

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ nodeLinker: node-modules
44

55
plugins:
66
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
7-
spec: '@yarnpkg/plugin-workspace-tools'
7+
spec: "@yarnpkg/plugin-workspace-tools"
88

99
yarnPath: .yarn/releases/yarn-3.3.0.cjs

benchmark/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const fs = require('node:fs');
2-
const path = require('node:path');
1+
const fs = require('fs');
2+
const path = require('path');
33
const Table = require('cli-table');
44
const Benchmark = require('benchmark');
55
const { parse } = require('../packages/react-docgen');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"engines": {
4-
"node": ">=14.0.0",
4+
"node": ">=14.15.0",
55
"yarn": ">=3.2.2"
66
},
77
"scripts": {

packages/react-docgen-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"bin"
1111
],
1212
"engines": {
13-
"node": ">=14.0.0"
13+
"node": ">=14.15.0"
1414
},
1515
"scripts": {
1616
"build": "echo 'done'",

packages/react-docgen-cli/src/__tests__/react-docgen-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
const TEST_TIMEOUT = 120000;
55

6-
import fs, { promises } from 'node:fs';
7-
import path from 'node:path';
6+
import fs, { promises } from 'fs';
7+
import path from 'path';
88
import rimraf from 'rimraf';
99
import { directory as tempDirectory, file as tempFile } from 'tempy';
1010
import spawn from 'cross-spawn';

packages/react-docgen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dist"
1212
],
1313
"engines": {
14-
"node": ">=14.18.0"
14+
"node": ">=14.15.0"
1515
},
1616
"main": "dist/main.js",
1717
"typings": "dist/main.d.ts",

packages/react-docgen/src/babelParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ParserOptions, TransformOptions } from '@babel/core';
22
import { loadPartialConfig, parseSync } from '@babel/core';
33
import type { File } from '@babel/types';
4-
import { extname } from 'node:path';
4+
import { extname } from 'path';
55

66
const TYPESCRIPT_EXTS = {
77
'.cts': true,

packages/react-docgen/src/importer/makeFsImporter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { shallowIgnoreVisitors } from '../utils/traverse';
22
import resolve from 'resolve';
3-
import { dirname } from 'node:path';
4-
import fs from 'node:fs';
3+
import { dirname } from 'path';
4+
import fs from 'fs';
55
import type { NodePath } from '@babel/traverse';
66
import { visitors } from '@babel/traverse';
77
import type { ExportSpecifier, Identifier, ObjectProperty } from '@babel/types';

0 commit comments

Comments
 (0)