Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Mar 4, 2024
1 parent cc2c43d commit ce26076
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"require": "./dist/index.mjs",
"import": "./dist/index.js"
}
},
"main": "./dist/index.cjs",
"main": "./dist/index.mjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
Expand Down Expand Up @@ -67,7 +67,7 @@
"dependencies": {
"ccommand": "^1.0.55",
"fast-glob": "latest",
"lazy-js-utils": "latest",
"lazy-js-utils": "^0.0.87",
"semver": "^7.5.4"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

7 changes: 4 additions & 3 deletions src/detectNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import process from 'process'
import { getPkg, jsShell } from 'lazy-js-utils'
import colors from 'picocolors'

const semver = require('semver')

export async function detectNode() {
let pkg
try {
Expand All @@ -15,7 +13,10 @@ export async function detectNode() {
process.exit(1)
}
if (pkg.engines?.node) {
const isSafe = semver.satisfies(process.version, pkg.engines.node)
const isSafe = require('semver').satisfies(
process.version,
pkg.engines.node,
)

if (!isSafe) {
const { result, status } = await jsShell(
Expand Down

0 comments on commit ce26076

Please sign in to comment.