1
+ // biome-ignore lint/nursery/noRestrictedImports: ignore
2
+ import path from 'node:path' ;
1
3
import picomatch from 'picomatch' ;
2
4
import { partitionCompilers } from './compilers/index.js' ;
3
5
import { DEFAULT_EXTENSIONS , KNIP_CONFIG_LOCATIONS , ROOT_WORKSPACE_NAME } from './constants.js' ;
@@ -23,7 +25,7 @@ import { defaultRules } from './util/issue-initializers.js';
23
25
import { _load } from './util/loader.js' ;
24
26
import mapWorkspaces from './util/map-workspaces.js' ;
25
27
import { getKeysByValue } from './util/object.js' ;
26
- import { join , relative , resolve } from './util/path.js' ;
28
+ import { join , relative } from './util/path.js' ;
27
29
import { normalizePluginConfig } from './util/plugin.js' ;
28
30
import { toRegexOrString } from './util/regex.js' ;
29
31
import { unwrapFunction } from './util/unwrap-function.js' ;
@@ -289,7 +291,7 @@ export class ConfigurationChief {
289
291
290
292
private getIncludedWorkspaces ( ) {
291
293
if ( this . workspace ) {
292
- const dir = resolve ( this . cwd , this . workspace ) ;
294
+ const dir = path . resolve ( this . cwd , this . workspace ) ;
293
295
if ( ! isDirectory ( dir ) ) throw new ConfigurationError ( 'Workspace is not a directory' ) ;
294
296
if ( ! isFile ( join ( dir , 'package.json' ) ) ) throw new ConfigurationError ( 'Unable to find package.json in workspace' ) ;
295
297
}
0 commit comments