Skip to content

Commit 3c39bae

Browse files
committed
feat(@142vip/utils): 结构调整,增加pkgs目录统一管理工具包
1 parent 1b2a3dd commit 3c39bae

File tree

13 files changed

+16
-13
lines changed

13 files changed

+16
-13
lines changed

packages/utils/src/core/docker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as process from 'node:process'
2+
import { VipSymbols } from '../pkgs/color'
23
import { commandStandardExecutor, execCommand } from './exec'
34
import { VipLogger } from './logger'
4-
import { VipSymbols } from './color'
55

66
const vipLog = new VipLogger()
77

packages/utils/src/core/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
export * from './color'
21
export * from './logger'
32
export * from './exec'
4-
export * from './commander'
5-
export * from './shell'
6-
export * from './inquirer'
73
export * from './git'
84
export * from './docker'
9-
export * from './qs'
10-
export * from './dayjs'
11-
export * from './nanoid'
12-
export * from './json'
13-
export * from './lodash'
5+
export * from './shell'

packages/utils/src/core/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { VipColor } from './color'
1+
import { VipColor } from '../pkgs/color'
22

33
export interface LoggerOptions {
44
startLabel?: string

packages/utils/src/core/shell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { name, version } from '../../package.json'
2+
import { VipColor } from '../pkgs/color'
23
import { execCommand } from './exec'
34
import { VipLogger } from './logger'
4-
import { VipColor } from './color'
55

66
export interface ShellCommand {
77
command: string

packages/utils/src/index.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1+
// pkgs目录
2+
export * from './pkgs/console'
3+
export * from './pkgs/commander'
4+
export * from './pkgs/inquirer'
5+
export * from './pkgs/color'
6+
export * from './pkgs/qs'
7+
export * from './pkgs/dayjs'
8+
export * from './pkgs/nanoid'
9+
export * from './pkgs/json'
10+
export * from './pkgs/lodash'
11+
112
export * from './constants'
213
export * from './http'
3-
export * from './pkgs/console'
14+
415
export * from './core'
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)