chore(cli): upgrade npm dependencies
This commit is contained in:
parent
2bc9218547
commit
5cfff2ad5c
7 changed files with 988 additions and 1040 deletions
|
@ -45,12 +45,12 @@
|
||||||
"@types/js-yaml": "^4.0.5",
|
"@types/js-yaml": "^4.0.5",
|
||||||
"@types/lodash-es": "^4.17.6",
|
"@types/lodash-es": "^4.17.6",
|
||||||
"clipanion": "^3.1.0",
|
"clipanion": "^3.1.0",
|
||||||
"colorette": "^2.0.17",
|
"colorette": "^2.0.19",
|
||||||
"core-js": "^3.22.8",
|
"core-js": "^3.23.3",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"env-paths": "^3.0.0",
|
"env-paths": "^3.0.0",
|
||||||
"fdir": "^5.2.0",
|
"fdir": "^5.2.0",
|
||||||
"inquirer": "^8.2.4",
|
"inquirer": "^9.0.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"lodash-es": "4.17.21",
|
"lodash-es": "4.17.21",
|
||||||
"toml": "^3.0.0",
|
"toml": "^3.0.0",
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { join } from 'path'
|
||||||
|
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
import { Command, Option } from 'clipanion'
|
import { Command, Option } from 'clipanion'
|
||||||
import inquirer, { prompt } from 'inquirer'
|
import inquirer from 'inquirer'
|
||||||
|
|
||||||
import { CreateNpmDirCommand } from '../create-npm-dir'
|
import { CreateNpmDirCommand } from '../create-npm-dir'
|
||||||
import { debugFactory } from '../debug'
|
import { debugFactory } from '../debug'
|
||||||
|
@ -75,7 +75,7 @@ export class NewProjectCommand extends Command {
|
||||||
if (!this.dirname) {
|
if (!this.dirname) {
|
||||||
const [scope, name] = this.name?.split('/') ?? []
|
const [scope, name] = this.name?.split('/') ?? []
|
||||||
const defaultProjectDir = name ?? scope
|
const defaultProjectDir = name ?? scope
|
||||||
const dirAnswer = await prompt({
|
const dirAnswer = await inquirer.prompt({
|
||||||
type: 'input',
|
type: 'input',
|
||||||
name: DIR_PROMOTE_NAME,
|
name: DIR_PROMOTE_NAME,
|
||||||
default: defaultProjectDir,
|
default: defaultProjectDir,
|
||||||
|
@ -222,7 +222,7 @@ edition = "2021"
|
||||||
|
|
||||||
private async getName() {
|
private async getName() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
const nameAnswer = await prompt({
|
const nameAnswer = await inquirer.prompt({
|
||||||
type: 'input',
|
type: 'input',
|
||||||
name: NAME_PROMOTE_NAME,
|
name: NAME_PROMOTE_NAME,
|
||||||
suffix: ' (The name filed in your package.json)',
|
suffix: ' (The name filed in your package.json)',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { join } from 'path'
|
||||||
|
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
import { Command, Option } from 'clipanion'
|
import { Command, Option } from 'clipanion'
|
||||||
import { prompt } from 'inquirer'
|
import inquirer from 'inquirer'
|
||||||
import { load, dump } from 'js-yaml'
|
import { load, dump } from 'js-yaml'
|
||||||
|
|
||||||
import { debugFactory } from './debug'
|
import { debugFactory } from './debug'
|
||||||
|
@ -46,7 +46,7 @@ export class RenameCommand extends Command {
|
||||||
const name =
|
const name =
|
||||||
this.name ??
|
this.name ??
|
||||||
(
|
(
|
||||||
await prompt({
|
await inquirer.prompt({
|
||||||
name: 'name',
|
name: 'name',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
suffix: chalk.dim(' name field in package.json'),
|
suffix: chalk.dim(' name field in package.json'),
|
||||||
|
@ -55,7 +55,7 @@ export class RenameCommand extends Command {
|
||||||
const napiName =
|
const napiName =
|
||||||
this.napiName ??
|
this.napiName ??
|
||||||
(
|
(
|
||||||
await prompt({
|
await inquirer.prompt({
|
||||||
name: 'napi name',
|
name: 'napi name',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
default: name.split('/')[1],
|
default: name.split('/')[1],
|
||||||
|
@ -67,7 +67,7 @@ export class RenameCommand extends Command {
|
||||||
const repository =
|
const repository =
|
||||||
this.repository ??
|
this.repository ??
|
||||||
(
|
(
|
||||||
await prompt({
|
await inquirer.prompt({
|
||||||
name: 'repository',
|
name: 'repository',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
suffix: chalk.dim(' Leave empty to skip'),
|
suffix: chalk.dim(' Leave empty to skip'),
|
||||||
|
@ -79,7 +79,7 @@ export class RenameCommand extends Command {
|
||||||
const description =
|
const description =
|
||||||
this.description ??
|
this.description ??
|
||||||
(
|
(
|
||||||
await prompt({
|
await inquirer.prompt({
|
||||||
name: 'description',
|
name: 'description',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
suffix: chalk.dim(' Leave empty to skip'),
|
suffix: chalk.dim(' Leave empty to skip'),
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
"build": "node ../cli/scripts/index.js build --release --js false"
|
"build": "node ../cli/scripts/index.js build --release --js false"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"colorette": "^2.0.17",
|
"colorette": "^2.0.19",
|
||||||
"dockerode": "^3.3.1",
|
"dockerode": "^3.3.2",
|
||||||
"pretty-bytes": "^6.0.0",
|
"pretty-bytes": "^6.0.0",
|
||||||
"table": "^6.8.0"
|
"table": "^6.8.0"
|
||||||
},
|
},
|
||||||
|
|
34
package.json
34
package.json
|
@ -73,40 +73,40 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-alias": "^3.1.9",
|
"@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-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||||
"@rollup/plugin-replace": "^4.0.0",
|
"@rollup/plugin-replace": "^4.0.0",
|
||||||
"@taplo/cli": "^0.3.2",
|
"@taplo/cli": "^0.4.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": "^17.0.39",
|
"@types/node": "^18.0.3",
|
||||||
"@types/sinon": "^10.0.11",
|
"@types/sinon": "^10.0.12",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
||||||
"@typescript-eslint/parser": "^5.27.0",
|
"@typescript-eslint/parser": "^5.30.5",
|
||||||
"ava": "^4.3.0",
|
"ava": "^4.3.0",
|
||||||
"benny": "^3.7.1",
|
"benny": "^3.7.1",
|
||||||
"c8": "^7.11.3",
|
"c8": "^7.11.3",
|
||||||
"colorette": "^2.0.17",
|
"colorette": "^2.0.19",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"electron": "^19.0.3",
|
"electron": "^19.0.7",
|
||||||
"esbuild": "^0.14.42",
|
"esbuild": "^0.14.48",
|
||||||
"eslint": "^8.16.0",
|
"eslint": "^8.19.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"husky": "^8.0.1",
|
"husky": "^8.0.1",
|
||||||
"lerna": "^5.0.0",
|
"lerna": "^5.1.6",
|
||||||
"lint-staged": "^13.0.0",
|
"lint-staged": "^13.0.3",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^2.6.2",
|
"prettier": "^2.7.1",
|
||||||
"rollup": "^2.75.5",
|
"rollup": "^2.75.7",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"sinon": "^14.0.0",
|
"sinon": "^14.0.0",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
"ts-node": "^10.8.0",
|
"ts-node": "^10.8.2",
|
||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"typescript": "^4.7.2"
|
"typescript": "^4.7.4"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@3.2.1"
|
"packageManager": "yarn@3.2.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,8 @@ export default {
|
||||||
'node:os': 'os',
|
'node:os': 'os',
|
||||||
'node:process': 'process',
|
'node:process': 'process',
|
||||||
'node:tty': 'tty',
|
'node:tty': 'tty',
|
||||||
|
'node:assert': 'assert',
|
||||||
|
'node:readline': 'readline',
|
||||||
preventAssignment: true,
|
preventAssignment: true,
|
||||||
}),
|
}),
|
||||||
alias({
|
alias({
|
||||||
|
|
Loading…
Reference in a new issue