Skip to content

Commit

Permalink
fix: Revised report statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 committed Aug 3, 2021
1 parent f59a666 commit fab7e50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/packageTransformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export function transform(): boolean {

let packageObj: JSON = fsExtra.readJsonSync(resolvedPaths[0])

if (JSON.stringify(packageObj) == JSON.stringify(process(packageObj))) {
return false
}

packageObj = process(packageObj)

fsExtra.writeJsonSync(resolvedPaths[0], packageObj, { spaces: 2 })
Expand Down
2 changes: 1 addition & 1 deletion transformations/move-app-mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export const transformAST: ASTTransformation = ({ root, j }) => {
)
)
)
cntFunc()
}
cntFunc()
}

export default wrap(transformAST)
Expand Down

0 comments on commit fab7e50

Please sign in to comment.