Skip to content

Commit

Permalink
Bump sizeup to 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lerebear committed Oct 9, 2023
1 parent f915e84 commit 03291e1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
15 changes: 7 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@oclif/plugin-plugins": "^3.6.1",
"octokit": "^3.1.1",
"simple-git": "^3.20.0",
"sizeup": "github:lerebear/sizeup#v0.1.2"
"sizeup-core": "^0.1.4"
},
"devDependencies": {
"@oclif/test": "^2.5.3",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Args, Command, Flags, ux} from '@oclif/core'
import {simpleGit} from 'simple-git'
import SizeUpLibrary from 'sizeup'
import {SizeUp as SizeUpCore} from 'sizeup-core'
import {Octokit} from 'octokit'
import * as fs from 'node:fs'

Expand Down Expand Up @@ -106,7 +106,7 @@ export default class SizeUp extends Command {

if (diff) {
ux.action.start(`Evaluating the diff with the ${flags['config-path'] ? `config from ${flags['config-path']}` : 'default config'}`)
const score = SizeUpLibrary.evaluate(diff!, flags['config-path'])
const score = SizeUpCore.evaluate(diff!, flags['config-path'])
ux.action.stop()
this.log(`Your diff scored ${score.result}${(score.category ? ` (${score.category.name})` : '')}.`)

Expand Down

0 comments on commit 03291e1

Please sign in to comment.