Skip to content

Commit

Permalink
fix: update clack patch and remove spinner for unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
pionxzh committed Dec 14, 2023
1 parent bf71e1f commit d3b3da8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 392 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"eslint.experimental.useFlatConfig": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": true, // this allows ESLint to auto fix on save
"source.organizeImports": false
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"editor.formatOnSave": false,
"eslint.validate": [
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"@clack/[email protected]": "patches/@[email protected]",
"@clack/[email protected]": "patches/@[email protected]"
"@clack/[email protected]": "patches/@[email protected]"
}
},
"resolutions": {
Expand Down
10 changes: 3 additions & 7 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,10 @@ async function interactive({

log.step('Unpacking...')

const s = spinner()
s.start('...')

const timing = new Timing()
const { result: items, time: elapsed } = await timing.measureTimeAsync(() => unpacker(inputPaths, outputPath))

s.stop('Finished')
log.step('Finished')

const totalModules = items.reduce((acc, item) => acc + item.modules.length, 0)
const formattedElapsed = elapsed.toLocaleString('en-US', { maximumFractionDigits: 1 })
Expand Down Expand Up @@ -514,13 +511,12 @@ async function nonInteractive(features: Feature[], {
const outputPath = path.resolve(unpackerOutput)
const relativeOutputPath = getRelativePath(cwd, outputPath)

const s = spinner()
s.start('...')
log.step('Unpacking...')

const timing = new Timing()
const { result: items, time: elapsed } = await timing.measureTimeAsync(() => unpacker(inputPaths, outputPath))

s.stop('Finished')
log.step('Finished')

const totalModules = items.reduce((acc, item) => acc + item.modules.length, 0)
const formattedElapsed = elapsed.toLocaleString('en-US', { maximumFractionDigits: 1 })
Expand Down
8 changes: 4 additions & 4 deletions patches/@[email protected]

Large diffs are not rendered by default.

Loading

0 comments on commit d3b3da8

Please sign in to comment.