File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { readFileSync } from 'node:fs' ;
22import { globbySync } from 'globby' ;
3- import { satisfies } from 'semver' ;
3+ import intersects from 'semver/ranges/intersects.js ' ;
44
55const rootPath = new URL ( '../package.json' , import . meta. url ) . pathname ;
66const root = JSON . parse ( readFileSync ( rootPath , 'utf8' ) ) ;
7- const syncpackEngine = root . engines . node . replace ( '>=' , '' ) ;
7+ const syncpackEngine = root . engines . node ;
88
99const unsatisfiedDependencies = globbySync ( 'node_modules/**/package.json' )
1010 . map ( filePath => readFileSync ( filePath , 'utf8' ) )
@@ -14,7 +14,7 @@ const unsatisfiedDependencies = globbySync('node_modules/**/package.json')
1414 . map ( file => {
1515 const name = file . name ;
1616 const dependencyEngine = file . engines . node ;
17- const isSatisfied = satisfies ( syncpackEngine , dependencyEngine ) ;
17+ const isSatisfied = intersects ( syncpackEngine , dependencyEngine ) ;
1818 return {
1919 name,
2020 expected : syncpackEngine ,
You can’t perform that action at this time.
0 commit comments