From 1dcd825a2d536679cd21ebd53b1feac161b029be Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Wed, 1 Mar 2023 13:49:48 +0100 Subject: [PATCH] min node ver 14 --- .github/workflows/test-bids-examples.yml | 2 +- bids-validator/README.md | 4 ++-- bids-validator/esbuild.mjs | 2 +- bids-validator/package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-bids-examples.yml b/.github/workflows/test-bids-examples.yml index 8bd3c9559..d70c6358f 100644 --- a/.github/workflows/test-bids-examples.yml +++ b/.github/workflows/test-bids-examples.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 14 - uses: actions/checkout@v3 with: submodules: recursive diff --git a/bids-validator/README.md b/bids-validator/README.md index 8418537cb..e4c7d652d 100644 --- a/bids-validator/README.md +++ b/bids-validator/README.md @@ -38,7 +38,7 @@ couple of minutes please open [developer tools ](https://developer.chrome.com/devtools) and report the error at [https://github.com/bids-standard/bids-validator/issues](https://github.com/bids-standard/bids-validator/issues). 1. Command line version: - 1. Install [Node.js](https://nodejs.org) (at least version 12.12.0) + 1. Install [Node.js](https://nodejs.org) (at least version 14.0.0) 1. Update `npm` to be at least version 7 (`npm install --global npm@^7`) 1. From a terminal run `npm install -g bids-validator` 1. Run `bids-validator` to start validating datasets. @@ -51,7 +51,7 @@ 1. Install [Pip](https://pip.pypa.io/en/stable/installing/) package manager for Python, if not already installed. 1. From a terminal run `pip install bids_validator` to acquire the - [BIDS Validator PyPI package](https://pypi.org/project/bids-validator/) + [BIDS Validator PyPI package](https://pypi.org/project/bids-validator/) or `conda install bids-validator` for the [Conda package](https://anaconda.org/conda-forge/bids-validator). 1. Open a Python terminal and type: `python` diff --git a/bids-validator/esbuild.mjs b/bids-validator/esbuild.mjs index b495f2d60..2246d1430 100644 --- a/bids-validator/esbuild.mjs +++ b/bids-validator/esbuild.mjs @@ -10,7 +10,7 @@ await esbuild.build({ path.join(process.cwd(), 'utils', 'consoleFormat.js'), ], outdir: path.join(process.cwd(), 'dist', 'commonjs'), - target: 'node12', + target: 'node14', bundle: true, sourcemap: true, platform: 'node', diff --git a/bids-validator/package.json b/bids-validator/package.json index 166fc5098..f1dea9adf 100644 --- a/bids-validator/package.json +++ b/bids-validator/package.json @@ -24,7 +24,7 @@ "url": "https://github.com/bids-standard/bids-validator.git" }, "engines": { - "node": ">=12.12.0" + "node": ">=14.0.0" }, "bin": { "bids-validator": "bin/bids-validator"