chore: upgrade npm dependencies (#1443)

This commit is contained in:
LongYinan 2023-01-19 00:32:52 +08:00 committed by GitHub
parent 0848746534
commit 62b16d6a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1173 additions and 1043 deletions

View file

@ -53,6 +53,8 @@ rules:
}, },
] ]
'import/no-extraneous-dependencies': 2
'@typescript-eslint/adjacent-overload-signatures': 2 '@typescript-eslint/adjacent-overload-signatures': 2
'@typescript-eslint/await-thenable': 2 '@typescript-eslint/await-thenable': 2

View file

@ -4,5 +4,8 @@
"private": true, "private": true,
"scripts": { "scripts": {
"build": "node ../cli/scripts/index.js build --js false --release" "build": "node ../cli/scripts/index.js build --js false --release"
},
"devDependencies": {
"benny": "^3.7.1"
} }
} }

View file

@ -46,7 +46,7 @@
"@types/lodash-es": "^4.17.6", "@types/lodash-es": "^4.17.6",
"clipanion": "^3.1.0", "clipanion": "^3.1.0",
"colorette": "^2.0.19", "colorette": "^2.0.19",
"core-js": "^3.26.1", "core-js": "^3.27.1",
"debug": "^4.3.4", "debug": "^4.3.4",
"env-paths": "^3.0.0", "env-paths": "^3.0.0",
"fdir": "^5.3.0", "fdir": "^5.3.0",

View file

@ -1,7 +1,7 @@
import { join, parse } from 'path' import { join, parse } from 'path'
import chalk from 'chalk'
import { Command, Option } from 'clipanion' import { Command, Option } from 'clipanion'
import * as chalk from 'colorette'
import { fdir } from 'fdir' import { fdir } from 'fdir'
import { getNapiConfig } from './consts' import { getNapiConfig } from './consts'

View file

@ -3,8 +3,8 @@ import { existsSync, mkdirSync } from 'fs'
import { tmpdir } from 'os' import { tmpdir } from 'os'
import { join, parse, sep } from 'path' import { join, parse, sep } from 'path'
import { Instance } from 'chalk'
import { Command, Option } from 'clipanion' import { Command, Option } from 'clipanion'
import * as chalk from 'colorette'
import envPaths from 'env-paths' import envPaths from 'env-paths'
import { groupBy } from 'lodash-es' import { groupBy } from 'lodash-es'
@ -22,7 +22,6 @@ import {
} from './utils' } from './utils'
const debug = debugFactory('build') const debug = debugFactory('build')
const chalk = new Instance({ level: 1 })
const ZIG_PLATFORM_TARGET_MAP = { const ZIG_PLATFORM_TARGET_MAP = {
'x86_64-unknown-linux-musl': 'x86_64-linux-musl', 'x86_64-unknown-linux-musl': 'x86_64-linux-musl',
@ -167,8 +166,8 @@ export class BuildCommand extends Command {
'lto', 'lto',
)} and increase ${chalk.green( )} and increase ${chalk.green(
'codegen-units', 'codegen-units',
)}. Disabled by default. See ${chalk.underline.blue( )}. Disabled by default. See ${chalk.underline(
'https://github.com/napi-rs/napi-rs/issues/297', chalk.blue('https://github.com/napi-rs/napi-rs/issues/297'),
)}`, )}`,
}, },
) )

View file

@ -1,8 +1,8 @@
import { mkdirSync } from 'fs' import { mkdirSync } from 'fs'
import { join } from 'path' import { join } from 'path'
import chalk from 'chalk'
import { Command, Option } from 'clipanion' import { Command, Option } from 'clipanion'
import * as chalk from 'colorette'
import { getNapiConfig } from './consts' import { getNapiConfig } from './consts'
import { debugFactory } from './debug' import { debugFactory } from './debug'

View file

@ -1,8 +1,8 @@
import { writeFileSync, mkdirSync } from 'fs' import { writeFileSync, mkdirSync } from 'fs'
import { join } from 'path' import { join } from 'path'
import chalk from 'chalk'
import { Command, Option } from 'clipanion' import { Command, Option } from 'clipanion'
import * as chalk from 'colorette'
import inquirer from 'inquirer' import inquirer from 'inquirer'
import { CreateNpmDirCommand } from '../create-npm-dir' import { CreateNpmDirCommand } from '../create-npm-dir'

View file

@ -2,8 +2,8 @@ import { createReadStream, existsSync, statSync } from 'fs'
import { join } from 'path' import { join } from 'path'
import { Octokit } from '@octokit/rest' import { Octokit } from '@octokit/rest'
import chalk from 'chalk'
import { Command, Option } from 'clipanion' import { Command, Option } from 'clipanion'
import * as chalk from 'colorette'
import { getNapiConfig } from './consts' import { getNapiConfig } from './consts'
import { debugFactory } from './debug' import { debugFactory } from './debug'

View file

@ -1,7 +1,7 @@
import { join } from 'path' import { join } from 'path'
import chalk from 'chalk'
import { Command, Option } from 'clipanion' import { Command, Option } from 'clipanion'
import * as chalk from 'colorette'
import inquirer from 'inquirer' import inquirer from 'inquirer'
import { load, dump } from 'js-yaml' import { load, dump } from 'js-yaml'

View file

@ -1,8 +1,8 @@
import { spawnSync } from 'child_process' import { spawnSync } from 'child_process'
import { join } from 'path' import { join } from 'path'
import chalk from 'chalk'
import { Command, Option } from 'clipanion' import { Command, Option } from 'clipanion'
import * as chalk from 'colorette'
import { getNapiConfig } from './consts' import { getNapiConfig } from './consts'
import { debugFactory } from './debug' import { debugFactory } from './debug'
@ -61,7 +61,9 @@ export class UniversalCommand extends Command {
} }
debug( debug(
`Looking up source binaries to combine: ${chalk.yellowBright(srcFiles)}`, `Looking up source binaries to combine: ${chalk.yellowBright(
srcFiles.join(', '),
)}`,
) )
const srcFileLookup = await Promise.all( const srcFileLookup = await Promise.all(
srcFiles.map((f) => fileExists(join(this.sourceDir, f))), srcFiles.map((f) => fileExists(join(this.sourceDir, f))),

View file

@ -1,7 +1,7 @@
import { join } from 'path' import { join } from 'path'
import chalk from 'chalk'
import { Command, Option } from 'clipanion' import { Command, Option } from 'clipanion'
import * as chalk from 'colorette'
import { getNapiConfig } from './consts' import { getNapiConfig } from './consts'
import { debugFactory } from './debug' import { debugFactory } from './debug'

View file

@ -11,5 +11,8 @@
"build-i686-release": "node ../../cli/scripts/index.js build --js false --release --features \"latest\" --target i686-pc-windows-msvc", "build-i686-release": "node ../../cli/scripts/index.js build --js false --release --features \"latest\" --target i686-pc-windows-msvc",
"build-release": "node ../../cli/scripts/index.js build --js false --features \"latest\" --release", "build-release": "node ../../cli/scripts/index.js build --js false --features \"latest\" --release",
"test": "node ./index.js" "test": "node ./index.js"
},
"devDependencies": {
"sinon": "^15.0.1"
} }
} }

View file

@ -13,7 +13,8 @@
"build-release": "node ../../cli/scripts/index.js build --js false --release" "build-release": "node ../../cli/scripts/index.js build --js false --release"
}, },
"dependencies": { "dependencies": {
"@types/lodash": "^4.14.189", "@types/lodash": "^4.14.191",
"lodash": "^4.17.21" "lodash": "^4.17.21",
"sinon": "^15.0.1"
} }
} }

View file

@ -1,7 +1,7 @@
import { setTimeout } from 'timers' import { setTimeout } from 'timers'
import { promisify } from 'util' import { promisify } from 'util'
import chalk from 'chalk' import * as chalk from 'colorette'
import Dockerode from 'dockerode' import Dockerode from 'dockerode'
import prettyBytes from 'pretty-bytes' import prettyBytes from 'pretty-bytes'

View file

@ -73,40 +73,40 @@
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-alias": "^4.0.2", "@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-commonjs": "^23.0.2", "@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-json": "^5.0.1", "@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.1", "@rollup/plugin-replace": "^5.0.2",
"@taplo/cli": "^0.5.2", "@taplo/cli": "^0.5.2",
"@types/debug": "^4.1.7", "@types/debug": "^4.1.7",
"@types/lodash-es": "^4.17.6", "@types/lodash-es": "^4.17.6",
"@types/node": "^18.11.9", "@types/node": "^18.11.18",
"@types/sinon": "^10.0.13", "@types/sinon": "^10.0.13",
"@typescript-eslint/eslint-plugin": "^5.43.0", "@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.43.0", "@typescript-eslint/parser": "^5.48.2",
"ava": "^5.1.0", "ava": "^5.1.1",
"benny": "^3.7.1", "benny": "^3.7.1",
"c8": "^7.12.0", "c8": "^7.12.0",
"colorette": "^2.0.19", "colorette": "^2.0.19",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"electron": "20.3.3", "electron": "20.3.3",
"esbuild": "^0.15.14", "esbuild": "^0.17.2",
"eslint": "^8.28.0", "eslint": "^8.32.0",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2", "husky": "^8.0.3",
"lerna": "^6.0.3", "lerna": "^6.4.1",
"lint-staged": "^13.0.3", "lint-staged": "^13.1.0",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"prettier": "^2.7.1", "prettier": "^2.8.3",
"rollup": "^3.3.0", "rollup": "^3.10.0",
"shx": "^0.3.4", "shx": "^0.3.4",
"sinon": "^14.0.2", "sinon": "^15.0.1",
"source-map-support": "^0.5.21", "source-map-support": "^0.5.21",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tslib": "^2.4.1", "tslib": "^2.4.1",
"typescript": "^4.9.3" "typescript": "^4.9.4"
}, },
"packageManager": "yarn@3.3.0" "packageManager": "yarn@3.3.0"
} }

2138
yarn.lock

File diff suppressed because it is too large Load diff