knip 5.44.3 → 5.44.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import path from 'node:path';
1
2
  import picomatch from 'picomatch';
2
3
  import { partitionCompilers } from './compilers/index.js';
3
4
  import { DEFAULT_EXTENSIONS, KNIP_CONFIG_LOCATIONS, ROOT_WORKSPACE_NAME } from './constants.js';
@@ -14,7 +15,7 @@ import { defaultRules } from './util/issue-initializers.js';
14
15
  import { _load } from './util/loader.js';
15
16
  import mapWorkspaces from './util/map-workspaces.js';
16
17
  import { getKeysByValue } from './util/object.js';
17
- import { join, relative, resolve } from './util/path.js';
18
+ import { join, relative } from './util/path.js';
18
19
  import { normalizePluginConfig } from './util/plugin.js';
19
20
  import { toRegexOrString } from './util/regex.js';
20
21
  import { unwrapFunction } from './util/unwrap-function.js';
@@ -205,7 +206,7 @@ export class ConfigurationChief {
205
206
  }
206
207
  getIncludedWorkspaces() {
207
208
  if (this.workspace) {
208
- const dir = resolve(this.cwd, this.workspace);
209
+ const dir = path.resolve(this.cwd, this.workspace);
209
210
  if (!isDirectory(dir))
210
211
  throw new ConfigurationError('Workspace is not a directory');
211
212
  if (!isFile(join(dir, 'package.json')))
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "5.44.3";
1
+ export declare const version = "5.44.4";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '5.44.3';
1
+ export const version = '5.44.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "5.44.3",
3
+ "version": "5.44.4",
4
4
  "description": "Find and fix unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {