Skip to content

Commit

Permalink
feat(packages/sui-helpers): Move require package to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
midudev committed Nov 2, 2021
1 parent 3e82c68 commit 5a6630a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/sui-helpers/packages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint no-console:0 */
const path = require('path')
const {getSpawnPromise} = require('./cli')

/**
* Get absolute paths of packages
Expand Down Expand Up @@ -52,8 +53,6 @@ const resolveLazyNPMBin = async (binPath, pkg, cwd = process.cwd()) => {
try {
return resolvePkgBin()
} catch (e) {
const {getSpawnPromise} = require('./cli')

console.info(
`It looks like the lazy installed dep '${pkg}' is missing. It will be installed now.`
)
Expand Down

0 comments on commit 5a6630a

Please sign in to comment.