Skip to content

Commit

Permalink
feat: support nodejs v18
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Apr 21, 2022
1 parent 445a8ed commit b20fd96
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Yarn install
run: yarn
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
strategy:
matrix:
os: [ windows-2019, ubuntu-20.04 ]
node-version: [ 16, 14, 12, 17 ]
node-version: [ 18, 16, 14, 12 ]

name: Test (Node v${{ matrix.node-version }}, OS ${{ matrix.os }})
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"definition": "./typings/index.d.ts"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": "^12.20.0 || ^14.13.1 || >= 16.0.0"
},
"scripts": {
"clean": "rimraf target typings flow-typed buildcache docs coverage",
Expand Down Expand Up @@ -77,7 +77,7 @@
"commander": "^9.2.0",
"find-cache-dir": "^3.3.2",
"find-up": "^6.3.0",
"fs-extra": "^10.0.1",
"fs-extra": "^10.1.0",
"globby": "^13.1.1",
"js-yaml": "^4.1.0",
"lodash-es": "^4.17.21",
Expand All @@ -92,7 +92,7 @@
"@qiwi/npm-run-all": "^4.1.7",
"@types/jest": "^27.4.1",
"@types/js-yaml": "^4.0.5",
"@types/node": "^17.0.24",
"@types/node": "^17.0.25",
"cpy-cli": "^4.1.0",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
Expand Down
1 change: 1 addition & 0 deletions src/main/ts/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node

import { Command, Option } from 'commander'
import process from 'node:process'

import { run } from './runner'

Expand Down
2 changes: 1 addition & 1 deletion src/main/ts/lockfile/v1.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import lf from '@yarnpkg/lockfile'
import { SpawnSyncReturns } from 'child_process'
import { keyBy } from 'lodash-es'
import { SpawnSyncReturns } from 'node:child_process'

import {
TAuditEntry,
Expand Down
2 changes: 1 addition & 1 deletion src/main/ts/util.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import chalk from 'chalk'
import crypto from 'crypto'
import findCacheDir from 'find-cache-dir'
import { findUpSync, pathExistsSync } from 'find-up'
import fse, { SymlinkType } from 'fs-extra'
import { globbySync as glob, Options as GlobbyOptions } from 'globby'
import yaml from 'js-yaml'
import { reduce } from 'lodash-es'
import type { StdioOptions } from 'node:child_process'
import crypto from 'node:crypto'
import { createRequire } from 'node:module'
import { dirname, join, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
Expand Down
22 changes: 18 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@
dependencies:
"@types/node" "*"

"@types/node@*", "@types/node@^17.0.24":
"@types/node@*":
version "17.0.24"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.24.tgz#20ba1bf69c1b4ab405c7a01e950c4f446b05029f"
integrity sha512-aveCYRQbgTH9Pssp1voEP7HiuWlD2jW2BO56w+bVrJn04i61yh6mRfoKO6hEYQD9vF+W8Chkwc6j1M36uPkx4g==
Expand All @@ -922,6 +922,11 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.35.tgz#42c953a4e2b18ab931f72477e7012172f4ffa313"
integrity sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag==

"@types/node@^17.0.25":
version "17.0.25"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.25.tgz#527051f3c2f77aa52e5dc74e45a3da5fb2301448"
integrity sha512-wANk6fBrUwdpY4isjWrKTufkrXdu1D2YHCot2fD/DfWxF5sMrVSA+KN7ydckvaTCh0HiqX9IVl0L5/ZoXg5M7w==

"@types/normalize-package-data@^2.4.0":
version "2.4.1"
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
Expand Down Expand Up @@ -1045,9 +1050,9 @@
integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==

abab@^2.0.3, abab@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"
integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==
version "2.0.6"
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291"
integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==

abbrev@1, abbrev@~1.1.1:
version "1.1.1"
Expand Down Expand Up @@ -2557,6 +2562,15 @@ fs-extra@^10.0.0, fs-extra@^10.0.1:
jsonfile "^6.0.1"
universalify "^2.0.0"

fs-extra@^10.1.0:
version "10.1.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf"
integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==
dependencies:
graceful-fs "^4.2.0"
jsonfile "^6.0.1"
universalify "^2.0.0"

fs-minipass@^2.0.0, fs-minipass@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb"
Expand Down

0 comments on commit b20fd96

Please sign in to comment.