From af2f77c65bf227377d5f6edc68ff8ba46a28518f Mon Sep 17 00:00:00 2001 From: chufan Date: Tue, 6 Aug 2024 15:08:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?perf(@142vip/release-version):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=80=E4=BA=9B=E8=AF=AD=E6=B3=95=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E7=94=A8=E6=9B=B4=E5=A5=BD=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/release-version/README.md | 4 ++ packages/release-version/package.json | 9 ++- packages/release-version/src/bumpx-cli.ts | 50 ++------------- packages/release-version/src/core/fs.ts | 5 +- .../src/core/get-current-version.ts | 28 ++++----- .../src/core/get-new-version.ts | 26 ++++---- packages/release-version/src/core/git.ts | 14 ++--- packages/release-version/src/core/manifest.ts | 4 +- .../src/core/normalize-options.ts | 7 +-- .../release-version/src/core/npm-script.ts | 1 - .../release-version/src/core/operation.ts | 4 +- .../release-version/src/core/version-bump.ts | 10 +-- packages/release-version/src/index.ts | 1 - packages/release-version/src/utils/config.ts | 12 ++++ packages/release-version/src/utils/error.ts | 16 +++++ packages/release-version/src/utils/index.ts | 1 + .../release-version/src/utils/parse-args.ts | 15 ++--- .../release-version/src/utils/progress.ts | 16 ++--- .../release-version/test/parse-args.test.ts | 62 ------------------- 19 files changed, 91 insertions(+), 194 deletions(-) create mode 100644 packages/release-version/src/utils/error.ts delete mode 100644 packages/release-version/test/parse-args.test.ts diff --git a/packages/release-version/README.md b/packages/release-version/README.md index fc8e490..c419417 100644 --- a/packages/release-version/README.md +++ b/packages/release-version/README.md @@ -6,8 +6,12 @@ # 安装 pnpm i @142vip/release-version -D +# 查看版本 +npx bumpx -v + # 查看使用 npx bumpx -h ``` + ## 感谢 diff --git a/packages/release-version/package.json b/packages/release-version/package.json index 4aa61f3..4c256ee 100644 --- a/packages/release-version/package.json +++ b/packages/release-version/package.json @@ -5,10 +5,10 @@ "keywords": [ "@142vip/release-version", "version", - "bump", "bumpx", "package", "git", + "commit", "tag", "push" ], @@ -57,17 +57,16 @@ "detect-newline": "^4.0.1", "log-symbols": "^6.0.0", "npm-check": "^6.0.1", - "kolorist": "^1.8.0", - "rimraf": "^5.0.5" + "kolorist": "^1.8.0" }, "author": { "name": "James Messinger", "url": "https://jamesmessinger.com" }, - "homepage": "https://github.com/antfu/bumpp", + "homepage": "https://github.com/142vip/core-x/tree/main/packages/release-version", "repository": { "type": "git", - "url": "https://github.com/142vip/release-version.git" + "url": "https://github.com/142vip/core-x.git" }, "publishConfig": { "access": "public", diff --git a/packages/release-version/src/bumpx-cli.ts b/packages/release-version/src/bumpx-cli.ts index 742ddef..8f8822f 100644 --- a/packages/release-version/src/bumpx-cli.ts +++ b/packages/release-version/src/bumpx-cli.ts @@ -1,58 +1,18 @@ import process from 'node:process' -import symbols from 'log-symbols' import { version as packageVersion } from '../package.json' -import { parseArgs } from './utils' +import { errorHandler, parseArgs, showProgress } from './utils' import { versionBump } from './core/version-bump' -import type { VersionBumpProgress } from './types' -import { ExitCodeEnum, ProgressEvent } from './types' - -function progress({ event, script, updatedFiles, skippedFiles, newVersion }: VersionBumpProgress) { - switch (event) { - case ProgressEvent.FileUpdated: - console.log(symbols.success, `Updated ${updatedFiles.pop()} to ${newVersion}`) - break - - case ProgressEvent.FileSkipped: - console.log(symbols.info, `${skippedFiles.pop()} did not need to be updated`) - break - - case ProgressEvent.GitCommit: - console.log(symbols.success, 'Git commit') - break - - case ProgressEvent.GitTag: - console.log(symbols.success, 'Git tag') - break - - case ProgressEvent.GitPush: - console.log(symbols.success, 'Git push') - break - - case ProgressEvent.NpmScript: - console.log(symbols.success, `Npm run ${script}`) - break - } -} - -function errorHandler(error: Error): void { - let message = error.message || String(error) - - if (process.env.DEBUG || process.env.NODE_ENV === 'development') - message = error.stack || message - - console.error(message) - process.exit(ExitCodeEnum.FatalError) -} +import { ExitCodeEnum } from './types' /** - * The main entry point of the CLI + * cli入口 */ export async function main() { try { process.on('uncaughtException', errorHandler) process.on('unhandledRejection', errorHandler) - // Parse the command-line arguments + // 解析参数 const { help, version, quiet, options } = await parseArgs() // 显示帮助信息 @@ -68,7 +28,7 @@ export async function main() { // 是否显示进度 if (!quiet) - options.progress = options.progress ? options.progress : progress + options.progress = options.progress ?? showProgress // 执行版本升级 await versionBump(options) diff --git a/packages/release-version/src/core/fs.ts b/packages/release-version/src/core/fs.ts index 82be739..4bceff9 100644 --- a/packages/release-version/src/core/fs.ts +++ b/packages/release-version/src/core/fs.ts @@ -57,10 +57,7 @@ export function readTextFile(name: string, cwd: string): Promise { reject(err) } else { - resolve({ - path: filePath, - data: text, - }) + resolve({ path: filePath, data: text }) } }) }) diff --git a/packages/release-version/src/core/get-current-version.ts b/packages/release-version/src/core/get-current-version.ts index 348c469..23c2b8d 100644 --- a/packages/release-version/src/core/get-current-version.ts +++ b/packages/release-version/src/core/get-current-version.ts @@ -4,8 +4,9 @@ import { isManifest } from './manifest' import type { Operation } from './operation' /** - * Finds the current version number from files such as package.json. - * An error is thrown if no version number can be found. + * 从package.json等文件中查找当前版本号。 + * 如果找不到版本号,则会抛出错误 + * @param operation */ export async function getCurrentVersion(operation: Operation): Promise { if (operation.state.currentVersion) @@ -22,35 +23,28 @@ export async function getCurrentVersion(operation: Operation): Promise { try { const { data: manifest } = await readJsonFile(file, cwd) - if (isManifest(manifest)) { - if (isValidVersion(manifest.version)) - return manifest.version + if (isManifest(manifest) && isValidVersion(manifest.version)) { + return manifest.version } } catch { diff --git a/packages/release-version/src/core/get-new-version.ts b/packages/release-version/src/core/get-new-version.ts index 7dd9feb..d7db35f 100644 --- a/packages/release-version/src/core/get-new-version.ts +++ b/packages/release-version/src/core/get-new-version.ts @@ -1,7 +1,7 @@ import process from 'node:process' -import c from 'picocolors' import prompts from 'prompts' import semver, { SemVer, clean as cleanVersion, valid as isValidVersion } from 'semver' +import { bold, green } from 'kolorist' import type { BumpRelease, PromptRelease } from './normalize-options' import type { Operation } from './operation' import type { ReleaseType } from './release-type' @@ -19,9 +19,7 @@ export async function getNewVersion(operation: Operation): Promise { return promptForNewVersion(operation) case 'version': - return operation.update({ - newVersion: new SemVer(release.version, true).version, - }) + return operation.update({ newVersion: new SemVer(release.version, true).version }) default: return operation.update({ @@ -93,22 +91,22 @@ async function promptForNewVersion(operation: Operation): Promise { { type: 'autocomplete', name: 'release', - message: `Current version ${c.green(currentVersion)}`, + message: `Current version ${green(currentVersion)}`, initial: configCustomVersion ? 'config' : 'next', choices: [ - { value: 'major', title: `${'major'.padStart(PADDING, ' ')} ${c.bold(next.major)}` }, - { value: 'minor', title: `${'minor'.padStart(PADDING, ' ')} ${c.bold(next.minor)}` }, - { value: 'patch', title: `${'patch'.padStart(PADDING, ' ')} ${c.bold(next.patch)}` }, - { value: 'next', title: `${'next'.padStart(PADDING, ' ')} ${c.bold(next.next)}` }, + { value: 'major', title: `${'major'.padStart(PADDING, ' ')} ${bold(next.major)}` }, + { value: 'minor', title: `${'minor'.padStart(PADDING, ' ')} ${bold(next.minor)}` }, + { value: 'patch', title: `${'patch'.padStart(PADDING, ' ')} ${bold(next.patch)}` }, + { value: 'next', title: `${'next'.padStart(PADDING, ' ')} ${bold(next.next)}` }, ...configCustomVersion ? [ - { value: 'config', title: `${'from config'.padStart(PADDING, ' ')} ${c.bold(configCustomVersion)}` }, + { value: 'config', title: `${'from config'.padStart(PADDING, ' ')} ${bold(configCustomVersion)}` }, ] : [], - { value: 'prepatch', title: `${'pre-patch'.padStart(PADDING, ' ')} ${c.bold(next.prepatch)}` }, - { value: 'preminor', title: `${'pre-minor'.padStart(PADDING, ' ')} ${c.bold(next.preminor)}` }, - { value: 'premajor', title: `${'pre-major'.padStart(PADDING, ' ')} ${c.bold(next.premajor)}` }, - { value: 'none', title: `${'as-is'.padStart(PADDING, ' ')} ${c.bold(currentVersion)}` }, + { value: 'prepatch', title: `${'pre-patch'.padStart(PADDING, ' ')} ${bold(next.prepatch)}` }, + { value: 'preminor', title: `${'pre-minor'.padStart(PADDING, ' ')} ${bold(next.preminor)}` }, + { value: 'premajor', title: `${'pre-major'.padStart(PADDING, ' ')} ${bold(next.premajor)}` }, + { value: 'none', title: `${'as-is'.padStart(PADDING, ' ')} ${bold(currentVersion)}` }, { value: 'custom', title: 'custom ...'.padStart(PADDING + 4, ' ') }, ], }, diff --git a/packages/release-version/src/core/git.ts b/packages/release-version/src/core/git.ts index 31ffd0f..597849e 100644 --- a/packages/release-version/src/core/git.ts +++ b/packages/release-version/src/core/git.ts @@ -37,7 +37,7 @@ export async function gitCommit(operation: Operation): Promise { } /** - * Tags the Git commit, if the `tag` option is enabled. + * 标记 Git 提交(如果启用了tag选项) */ export async function gitTag(operation: Operation): Promise { if (!operation.options.tag) @@ -85,14 +85,10 @@ export async function gitPush(operation: Operation): Promise { } /** - * Accepts a version string template (e.g. "release v" or "This is the %s release"). - * If the template contains any "%s" placeholders, then they are replaced with the version number; - * otherwise, the version number is appended to the string. + * 接受版本字符串模板(例如“release v”或“This is the %s release”)。 + * - 如果模板包含任何“%s”占位符,则它们将替换为版本号; + * - 否则,版本号将追加到字符串 */ export function formatVersionString(template: string, newVersion: string): string { - if (template.includes('%s')) - return template.replace(/%s/g, newVersion) - - else - return template + newVersion + return template.includes('%s') ? template.replace(/%s/g, newVersion) : `${template}${newVersion}` } diff --git a/packages/release-version/src/core/manifest.ts b/packages/release-version/src/core/manifest.ts index 0867f13..0fe00fe 100644 --- a/packages/release-version/src/core/manifest.ts +++ b/packages/release-version/src/core/manifest.ts @@ -44,7 +44,5 @@ export function isPackageLockManifest( */ function isOptionalString(value: any): value is string | undefined { const type = typeof value - return value === null - || type === 'undefined' - || type === 'string' + return value === null || ['undefined', 'string'].includes(type) } diff --git a/packages/release-version/src/core/normalize-options.ts b/packages/release-version/src/core/normalize-options.ts index 262f619..d7f4d68 100644 --- a/packages/release-version/src/core/normalize-options.ts +++ b/packages/release-version/src/core/normalize-options.ts @@ -10,12 +10,11 @@ import { isReleaseType } from './release-type' interface Interface { input?: NodeJS.ReadableStream | NodeJS.ReadStream | false output?: NodeJS.WritableStream | NodeJS.WriteStream | false - [key: string]: unknown } /** - * A specific version release. + * 特定版本发布 */ export interface VersionRelease { type: 'version' @@ -23,7 +22,7 @@ export interface VersionRelease { } /** - * Prompt the user for the release number. + * 提示用户输入版本号 */ export interface PromptRelease { type: 'prompt' @@ -31,7 +30,7 @@ export interface PromptRelease { } /** - * A bump release, relative to the current version number. + * 相对于当前版本号的发布版本 */ export interface BumpRelease { type: ReleaseType diff --git a/packages/release-version/src/core/npm-script.ts b/packages/release-version/src/core/npm-script.ts index fa5c710..021b10e 100644 --- a/packages/release-version/src/core/npm-script.ts +++ b/packages/release-version/src/core/npm-script.ts @@ -22,7 +22,6 @@ export async function runScript(script: NpmScript, operation: Operation): Promis operation.update({ event: ProgressEvent.NpmScript, script }) } } - return operation } diff --git a/packages/release-version/src/core/operation.ts b/packages/release-version/src/core/operation.ts index 3e8432c..46f1ff8 100644 --- a/packages/release-version/src/core/operation.ts +++ b/packages/release-version/src/core/operation.ts @@ -92,14 +92,14 @@ export class Operation { } /** - * Updates the operation state and results, and reports the updated progress to the user. + * 更新操作状态和结果,并将更新后的进度报告给上层 */ public update({ event, script, ...newState }: UpdateOperationState): this { // Update the operation state Object.assign(this.state, newState) + // Report the progress to the user if (event && this._progress) { - // Report the progress to the user this._progress({ event, script, ...this.results }) } diff --git a/packages/release-version/src/core/version-bump.ts b/packages/release-version/src/core/version-bump.ts index 5ec2e0c..ee5b4d4 100644 --- a/packages/release-version/src/core/version-bump.ts +++ b/packages/release-version/src/core/version-bump.ts @@ -13,12 +13,7 @@ import { runScript } from './npm-script' import { updateFiles } from './update-files' /** - * Bumps the version number in one or more files, prompting the user if necessary. - * - * use: - * - versionBump():default to new version number - * - versionBump(release: string): explicit the new version number ,e.g: 0.1.10 - * - versionBump(options: VersionBumpOptions):Optionally also commits, tags, and pushes to git + * 版本发布 */ export async function versionBump(arg: (VersionBumpOptions) | string = {}): Promise { if (typeof arg === 'string') @@ -64,10 +59,10 @@ export async function versionBump(arg: (VersionBumpOptions) | string = {}): Prom console.log(e) process.exit(1) } - console.log(symbols.success, 'Generate CHANGELOG.md Finished') } + // 执行命令 if (operation.options.execute) { console.log(symbols.info, 'Executing Script', operation.options.execute) await execShell({ command: operation.options.execute, description: '执行execute提供的命令' }) @@ -111,7 +106,6 @@ export async function versionBumpInfo(arg: VersionBumpOptions | string = {}): Pr * 打印参数 */ function printSummary(operation: Operation) { - console.log(333, operation) console.log() console.log(` files ${operation.options.files.map(i => bold(i)).join('\n ')}`) diff --git a/packages/release-version/src/index.ts b/packages/release-version/src/index.ts index 795a98a..362cd83 100644 --- a/packages/release-version/src/index.ts +++ b/packages/release-version/src/index.ts @@ -1,4 +1,3 @@ -export * from './core/release-type' export * from './types' export * from './utils' export * from './core/version-bump' diff --git a/packages/release-version/src/utils/config.ts b/packages/release-version/src/utils/config.ts index ebbe1f0..ddad898 100644 --- a/packages/release-version/src/utils/config.ts +++ b/packages/release-version/src/utils/config.ts @@ -16,6 +16,12 @@ export const bumpConfigDefaults: VersionBumpOptions = { files: [], } +/** + * 加载bumpx的配置 + * 例如: bumpx.config.json + * @param overrides + * @param cwd + */ export async function loadBumpXConfig( overrides?: Partial, cwd = process.cwd(), @@ -35,11 +41,17 @@ export async function loadBumpXConfig( /** * 自定义配置入口 + * - 配置可选 */ export function defineBumpXConfig(config: Partial): Partial { return config } +/** + * 找配置文件 + * @param name + * @param cwd + */ function findConfigFile(name: string, cwd: string) { let foundRepositoryRoot = false try { diff --git a/packages/release-version/src/utils/error.ts b/packages/release-version/src/utils/error.ts new file mode 100644 index 0000000..134363b --- /dev/null +++ b/packages/release-version/src/utils/error.ts @@ -0,0 +1,16 @@ +import process from 'node:process' +import { ExitCodeEnum } from '../types' + +/** + * 错误处理 + * @param error + */ +export function errorHandler(error: Error): void { + let message = error.message || String(error) + + if (process.env.DEBUG || process.env.NODE_ENV === 'development') + message = error.stack || message + + console.error(message) + process.exit(ExitCodeEnum.FatalError) +} diff --git a/packages/release-version/src/utils/index.ts b/packages/release-version/src/utils/index.ts index a98b1ca..736fd9c 100644 --- a/packages/release-version/src/utils/index.ts +++ b/packages/release-version/src/utils/index.ts @@ -1,3 +1,4 @@ export * from './progress' export * from './parse-args' export * from './config' +export * from './error' diff --git a/packages/release-version/src/utils/parse-args.ts b/packages/release-version/src/utils/parse-args.ts index f74b437..25aa61f 100644 --- a/packages/release-version/src/utils/parse-args.ts +++ b/packages/release-version/src/utils/parse-args.ts @@ -64,7 +64,8 @@ export async function parseArgs(): Promise { } catch (error) { // There was an error parsing the command-line args - return errorHandler(error as Error) + console.error(error) + return process.exit(ExitCodeEnum.InvalidArgument) } } @@ -83,13 +84,13 @@ export function loadCliArgs(argv = process.argv) { .option('-y, --yes', `Skip confirmation (default: ${!bumpConfigDefaults.confirm})`) .option('-r, --recursive', `Bump package.json files recursively (default: ${bumpConfigDefaults.recursive})`) .option('--no-verify', 'Skip git verification') - .option('--ignore-scripts', `Ignore scripts (default: ${bumpConfigDefaults.ignoreScripts})`) + .option('--ignore-scripts', `Ignore scripts (default: ${bumpConfigDefaults.ignoreScripts})`, { default: bumpConfigDefaults.ignoreScripts }) .option('-q, --quiet', 'Quiet mode') - .option('--changelog', 'generate CHANGELOG.md', { default: false }) .option('-v, --version ', 'Target version') .option('--current-version ', 'Current version') - .option('--scopeName ', 'Package name in monorepo') .option('-x, --execute ', 'Commands to execute after version bumps') + .option('--changelog', 'generate CHANGELOG.md', { default: false }) + .option('--scopeName ', 'Package name in monorepo') .help() const result = cli.parse(argv) @@ -99,6 +100,7 @@ export function loadCliArgs(argv = process.argv) { // 这里避免ESLINT报错,功能问题查看git记录 const COMMIT_REG = /(?:-c|--commit|--no-commit)(?:=.*|$)/ const TAG_REG = /(?:-t|--tag|--no-tag)(?:=.*|$)/ + const hasCommitFlag = rawArgs.some(arg => COMMIT_REG.test(arg)) const hasTagFlag = rawArgs.some(arg => TAG_REG.test(arg)) @@ -113,8 +115,3 @@ export function loadCliArgs(argv = process.argv) { resultArgs: result.args, } } - -function errorHandler(error: Error): never { - console.error(error.message) - return process.exit(ExitCodeEnum.InvalidArgument) -} diff --git a/packages/release-version/src/utils/progress.ts b/packages/release-version/src/utils/progress.ts index 58cf653..c01322f 100644 --- a/packages/release-version/src/utils/progress.ts +++ b/packages/release-version/src/utils/progress.ts @@ -4,20 +4,16 @@ import { ProgressEvent } from '../types' /** * 显示进度 - * @param event - * @param script - * @param updatedFiles - * @param skippedFiles - * @param newVersion + * @param progress */ -export function showProgress({ event, script, updatedFiles, skippedFiles, newVersion }: VersionBumpProgress) { - switch (event) { +export function showProgress(progress: VersionBumpProgress) { + switch (progress.event) { case ProgressEvent.FileUpdated: - console.log(symbols.success, `Updated ${updatedFiles.pop()} to ${newVersion}`) + console.log(symbols.success, `Updated ${progress.updatedFiles.pop()} to ${progress.newVersion}`) break case ProgressEvent.FileSkipped: - console.log(symbols.info, `${skippedFiles.pop()} did not need to be updated`) + console.log(symbols.info, `${progress.skippedFiles.pop()} did not need to be updated`) break case ProgressEvent.GitCommit: @@ -33,7 +29,7 @@ export function showProgress({ event, script, updatedFiles, skippedFiles, newVer break case ProgressEvent.NpmScript: - console.log(symbols.success, `Npm run ${script}`) + console.log(symbols.success, `Npm run ${progress.script}`) break } } diff --git a/packages/release-version/test/parse-args.test.ts b/packages/release-version/test/parse-args.test.ts deleted file mode 100644 index 0ccd120..0000000 --- a/packages/release-version/test/parse-args.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { loadCliArgs } from '../src/utils/parse-args' - -const defaultArgs = ['node', 'bumpp'] - -describe('loadCliArgs', async () => { - it('returns an object with the correct properties', () => { - const result = loadCliArgs() - - expect(typeof result).toBe('object') - expect(typeof result.args).toBe('object') - expect(typeof result.resultArgs).toBe('object') - }) - - it('sets the commit property to undefined if no commit flag is present', () => { - const result = loadCliArgs([...defaultArgs]) - - expect(result.args.commit).toBe(undefined) - }) - - it('sets the commit property to true if `--commit` is present', () => { - const result = loadCliArgs([...defaultArgs, '--commit']) - - expect(result.args.commit).toBe(true) - }) - - it('sets the commit property to true if `-c` is present', () => { - const result = loadCliArgs([...defaultArgs, '-c']) - - expect(result.args.commit).toBe(true) - }) - - it('sets the commit property to false if `--no-commit` is present', () => { - const result = loadCliArgs([...defaultArgs, '--no-commit']) - - expect(result.args.commit).toBe(false) - }) - - it('sets the commit property to "release: %s" if `--commit=release: %s` is present', () => { - const result = loadCliArgs([...defaultArgs, '--commit=release: %s']) - - expect(result.args.commit).toBe('release: %s') - }) - - it('sets the commit property to "release: %s" if `-c=release: %s` is present', () => { - const result = loadCliArgs([...defaultArgs, '-c=release: %s']) - - expect(result.args.commit).toBe('release: %s') - }) - - it('sets the commit property to "release: %s" if `-c "release: %s"` is present', () => { - const result = loadCliArgs([...defaultArgs, '-c', 'release: %s']) - - expect(result.args.commit).toBe('release: %s') - }) - - it('should not match args that contains `--commit` or `-c`', () => { - const result = loadCliArgs([...defaultArgs, '--commitrc']) - - expect(result.args.commit).toBe(undefined) - }) -}) From 52db31602c8d5f3f8194da1c22d615fa024530a4 Mon Sep 17 00:00:00 2001 From: chufan Date: Tue, 6 Aug 2024 15:18:27 +0800 Subject: [PATCH 2/2] chore: update --- packages/release-version/README.md | 1 - packages/release-version/package.json | 1 - pnpm-lock.yaml | 15 --------------- 3 files changed, 17 deletions(-) diff --git a/packages/release-version/README.md b/packages/release-version/README.md index c419417..c9a3e38 100644 --- a/packages/release-version/README.md +++ b/packages/release-version/README.md @@ -13,5 +13,4 @@ npx bumpx -v npx bumpx -h ``` - ## 感谢 diff --git a/packages/release-version/package.json b/packages/release-version/package.json index 4c256ee..6b9cc1f 100644 --- a/packages/release-version/package.json +++ b/packages/release-version/package.json @@ -50,7 +50,6 @@ }, "devDependencies": { "@types/js-yaml": "^4.0.9", - "@types/node": "^20.12.7", "@types/prompts": "^2.4.9", "@types/semver": "^7.5.8", "detect-indent": "^7.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ae66b04..69c994b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -323,9 +323,6 @@ importers: '@types/js-yaml': specifier: ^4.0.9 version: 4.0.9 - '@types/node': - specifier: ^20.12.7 - version: 20.14.13 '@types/prompts': specifier: ^2.4.9 version: 2.4.9 @@ -347,9 +344,6 @@ importers: npm-check: specifier: ^6.0.1 version: 6.0.1 - rimraf: - specifier: ^5.0.5 - version: 5.0.9 packages/typeorm: dependencies: @@ -7672,11 +7666,6 @@ packages: deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true - rimraf@5.0.9: - resolution: {integrity: sha512-3i7b8OcswU6CpU8Ej89quJD4O98id7TtVM5U4Mybh84zQXdrFmDLouWBEEaD/QfO3gDDfH+AGFCGsR7kngzQnA==} - engines: {node: 14 >=14.20 || 16 >=16.20 || >=18} - hasBin: true - ripemd160@2.0.2: resolution: {integrity: sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==} @@ -18236,10 +18225,6 @@ snapshots: dependencies: glob: 7.2.3 - rimraf@5.0.9: - dependencies: - glob: 10.4.5 - ripemd160@2.0.2: dependencies: hash-base: 3.1.0