chore(cli): upgrade npm dependencies

This commit is contained in:
LongYinan 2022-07-06 21:08:29 +08:00
parent 2bc9218547
commit 5cfff2ad5c
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
7 changed files with 988 additions and 1040 deletions

View file

@ -45,12 +45,12 @@
"@types/js-yaml": "^4.0.5",
"@types/lodash-es": "^4.17.6",
"clipanion": "^3.1.0",
"colorette": "^2.0.17",
"core-js": "^3.22.8",
"colorette": "^2.0.19",
"core-js": "^3.23.3",
"debug": "^4.3.4",
"env-paths": "^3.0.0",
"fdir": "^5.2.0",
"inquirer": "^8.2.4",
"inquirer": "^9.0.0",
"js-yaml": "^4.1.0",
"lodash-es": "4.17.21",
"toml": "^3.0.0",

View file

@ -3,7 +3,7 @@ import { join } from 'path'
import chalk from 'chalk'
import { Command, Option } from 'clipanion'
import inquirer, { prompt } from 'inquirer'
import inquirer from 'inquirer'
import { CreateNpmDirCommand } from '../create-npm-dir'
import { debugFactory } from '../debug'
@ -75,7 +75,7 @@ export class NewProjectCommand extends Command {
if (!this.dirname) {
const [scope, name] = this.name?.split('/') ?? []
const defaultProjectDir = name ?? scope
const dirAnswer = await prompt({
const dirAnswer = await inquirer.prompt({
type: 'input',
name: DIR_PROMOTE_NAME,
default: defaultProjectDir,
@ -222,7 +222,7 @@ edition = "2021"
private async getName() {
if (!this.name) {
const nameAnswer = await prompt({
const nameAnswer = await inquirer.prompt({
type: 'input',
name: NAME_PROMOTE_NAME,
suffix: ' (The name filed in your package.json)',

View file

@ -2,7 +2,7 @@ import { join } from 'path'
import chalk from 'chalk'
import { Command, Option } from 'clipanion'
import { prompt } from 'inquirer'
import inquirer from 'inquirer'
import { load, dump } from 'js-yaml'
import { debugFactory } from './debug'
@ -46,7 +46,7 @@ export class RenameCommand extends Command {
const name =
this.name ??
(
await prompt({
await inquirer.prompt({
name: 'name',
type: 'input',
suffix: chalk.dim(' name field in package.json'),
@ -55,7 +55,7 @@ export class RenameCommand extends Command {
const napiName =
this.napiName ??
(
await prompt({
await inquirer.prompt({
name: 'napi name',
type: 'input',
default: name.split('/')[1],
@ -67,7 +67,7 @@ export class RenameCommand extends Command {
const repository =
this.repository ??
(
await prompt({
await inquirer.prompt({
name: 'repository',
type: 'input',
suffix: chalk.dim(' Leave empty to skip'),
@ -79,7 +79,7 @@ export class RenameCommand extends Command {
const description =
this.description ??
(
await prompt({
await inquirer.prompt({
name: 'description',
type: 'input',
suffix: chalk.dim(' Leave empty to skip'),

View file

@ -6,8 +6,8 @@
"build": "node ../cli/scripts/index.js build --release --js false"
},
"dependencies": {
"colorette": "^2.0.17",
"dockerode": "^3.3.1",
"colorette": "^2.0.19",
"dockerode": "^3.3.2",
"pretty-bytes": "^6.0.0",
"table": "^6.8.0"
},

View file

@ -73,40 +73,40 @@
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@taplo/cli": "^0.3.2",
"@taplo/cli": "^0.4.2",
"@types/debug": "^4.1.7",
"@types/lodash-es": "^4.17.6",
"@types/node": "^17.0.39",
"@types/sinon": "^10.0.11",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"@types/node": "^18.0.3",
"@types/sinon": "^10.0.12",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"ava": "^4.3.0",
"benny": "^3.7.1",
"c8": "^7.11.3",
"colorette": "^2.0.17",
"colorette": "^2.0.19",
"cross-env": "^7.0.3",
"electron": "^19.0.3",
"esbuild": "^0.14.42",
"eslint": "^8.16.0",
"electron": "^19.0.7",
"esbuild": "^0.14.48",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"lerna": "^5.0.0",
"lint-staged": "^13.0.0",
"lerna": "^5.1.6",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"rollup": "^2.75.5",
"prettier": "^2.7.1",
"rollup": "^2.75.7",
"shx": "^0.3.4",
"sinon": "^14.0.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.8.0",
"ts-node": "^10.8.2",
"tslib": "^2.4.0",
"typescript": "^4.7.2"
"typescript": "^4.7.4"
},
"packageManager": "yarn@3.2.1"
}

View file

@ -54,6 +54,8 @@ export default {
'node:os': 'os',
'node:process': 'process',
'node:tty': 'tty',
'node:assert': 'assert',
'node:readline': 'readline',
preventAssignment: true,
}),
alias({

1966
yarn.lock

File diff suppressed because it is too large Load diff