knip 5.1.3 → 5.1.5
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.
- package/dist/plugins/astro/index.d.ts +6 -6
- package/dist/plugins/ava/index.d.ts +7 -7
- package/dist/plugins/capacitor/index.d.ts +5 -5
- package/dist/plugins/changesets/index.d.ts +5 -5
- package/dist/plugins/commitizen/index.d.ts +6 -6
- package/dist/plugins/commitlint/index.d.ts +5 -5
- package/dist/plugins/cspell/index.d.ts +5 -5
- package/dist/plugins/drizzle/index.d.ts +5 -5
- package/dist/plugins/eslint/index.d.ts +7 -7
- package/dist/plugins/graphql-codegen/index.d.ts +6 -6
- package/dist/plugins/lint-staged/index.d.ts +6 -6
- package/dist/plugins/linthtml/index.d.ts +6 -6
- package/dist/plugins/markdownlint/index.d.ts +5 -5
- package/dist/plugins/mocha/index.d.ts +7 -7
- package/dist/plugins/msw/index.d.ts +1 -1
- package/dist/plugins/msw/index.js +3 -3
- package/dist/plugins/npm-package-json-lint/index.d.ts +6 -6
- package/dist/plugins/nyc/index.d.ts +5 -5
- package/dist/plugins/postcss/index.d.ts +5 -5
- package/dist/plugins/prettier/index.d.ts +5 -5
- package/dist/plugins/release-it/index.d.ts +6 -6
- package/dist/plugins/remark/index.d.ts +6 -6
- package/dist/plugins/rollup/index.d.ts +4 -4
- package/dist/plugins/semantic-release/index.d.ts +6 -6
- package/dist/plugins/storybook/index.d.ts +8 -8
- package/dist/plugins/stryker/index.d.ts +5 -5
- package/dist/plugins/stylelint/index.d.ts +5 -5
- package/dist/plugins/tsup/index.d.ts +5 -5
- package/dist/plugins/typedoc/index.d.ts +6 -6
- package/dist/plugins/unbuild/index.d.ts +5 -5
- package/dist/plugins/vue/index.d.ts +5 -5
- package/dist/plugins/wireit/index.d.ts +6 -6
- package/dist/plugins/yorkie/index.d.ts +6 -6
- package/dist/typescript/SourceFileManager.js +10 -6
- package/dist/typescript/createHosts.js +2 -2
- package/dist/typescript/getImportsAndExports.js +6 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IsPluginEnabled, Resolve } from '#p/types/plugins.js';
|
|
2
2
|
declare const _default: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
title: string;
|
|
4
|
+
enablers: string[];
|
|
5
|
+
isEnabled: IsPluginEnabled;
|
|
6
|
+
entry: string[];
|
|
7
|
+
production: string[];
|
|
8
|
+
resolve: Resolve;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IsPluginEnabled, ResolveConfig, ResolveEntryPaths } from '#p/types/plugins.js';
|
|
2
2
|
import type { AvaConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
entry: string[];
|
|
9
|
+
resolveEntryPaths: ResolveEntryPaths<AvaConfig>;
|
|
10
|
+
resolveConfig: ResolveConfig<AvaConfig>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
|
|
2
2
|
import type { CapacitorConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: RegExp[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<CapacitorConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
|
|
2
2
|
import type { ChangesetsConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<ChangesetsConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
|
|
2
2
|
import type { CommitizenConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<CommitizenConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -3,10 +3,10 @@ type CommitLintConfig = {
|
|
|
3
3
|
extends: string[];
|
|
4
4
|
};
|
|
5
5
|
declare const _default: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
title: string;
|
|
7
|
+
enablers: string[];
|
|
8
|
+
isEnabled: IsPluginEnabled;
|
|
9
|
+
config: string[];
|
|
10
|
+
resolveConfig: ResolveConfig<CommitLintConfig>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { CSpellConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<CSpellConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { DrizzleConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<DrizzleConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -2,12 +2,12 @@ import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
|
|
|
2
2
|
import type { ESLintConfig } from './types.js';
|
|
3
3
|
export declare const packageJsonPath = "eslintConfig";
|
|
4
4
|
declare const _default: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
title: string;
|
|
6
|
+
enablers: string[];
|
|
7
|
+
isEnabled: IsPluginEnabled;
|
|
8
|
+
packageJsonPath: string;
|
|
9
|
+
entry: string[];
|
|
10
|
+
config: string[];
|
|
11
|
+
resolveConfig: ResolveConfig<ESLintConfig>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { GraphqlCodegenTypes } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: RegExp[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<GraphqlCodegenTypes>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { LintStagedConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<LintStagedConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { PluginConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<PluginConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { MarkdownlintConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<MarkdownlintConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IsPluginEnabled, ResolveConfig, ResolveEntryPaths } from '#p/types/plugins.js';
|
|
2
2
|
import type { MochaConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
entry: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<MochaConfig>;
|
|
10
|
+
resolveEntryPaths: ResolveEntryPaths<MochaConfig>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { IsPluginEnabled, ResolveEntryPaths } from '#p/types/plugins.js';
|
|
1
2
|
import type { MSWConfig } from './types.js';
|
|
2
|
-
import type { IsPluginEnabled, ResolveEntryPaths } from '../../types/plugins.js';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
enablers: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { join } from '
|
|
2
|
-
import { hasDependency } from '
|
|
3
|
-
import { toEntryPattern } from '
|
|
1
|
+
import { join } from '#p/util/path.js';
|
|
2
|
+
import { hasDependency } from '#p/util/plugin.js';
|
|
3
|
+
import { toEntryPattern } from '#p/util/protocols.js';
|
|
4
4
|
const title = 'Mock Service Worker';
|
|
5
5
|
const enablers = ['msw'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { NpmPkgJsonLintConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<NpmPkgJsonLintConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { NycConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<NycConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { PostCSSConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<PostCSSConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { PrettierConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<PrettierConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { ReleaseItConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<ReleaseItConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { RemarkConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<RemarkConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
declare const _default: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
title: string;
|
|
4
|
+
enablers: string[];
|
|
5
|
+
isEnabled: IsPluginEnabled;
|
|
6
|
+
entry: string[];
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { SemanticReleaseConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<SemanticReleaseConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { IsPluginEnabled, ResolveConfig, ResolveEntryPaths } from '#p/types/plugins.js';
|
|
2
2
|
import type { StorybookConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: (string | RegExp)[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
entry: string[];
|
|
9
|
+
project: string[];
|
|
10
|
+
resolveEntryPaths: ResolveEntryPaths<StorybookConfig>;
|
|
11
|
+
resolveConfig: ResolveConfig<StorybookConfig>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { StrykerConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<StrykerConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { StyleLintConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<StyleLintConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { TsupConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<TsupConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IsPluginEnabled, ResolveConfig } from '#p/types/plugins.js';
|
|
2
2
|
import type { TypeDocConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<TypeDocConfig | {
|
|
10
10
|
typedocOptions: TypeDocConfig;
|
|
11
11
|
}>;
|
|
12
12
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { UnbuildConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<UnbuildConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { VueConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
config: string[];
|
|
8
|
+
resolveConfig: ResolveConfig<VueConfig>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { WireitConfig } from './types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<WireitConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ResolveConfig, IsPluginEnabled } from '#p/types/plugins.js';
|
|
2
2
|
import type { LintStagedConfig } from '../lint-staged/types.js';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
enablers: string[];
|
|
6
|
+
isEnabled: IsPluginEnabled;
|
|
7
|
+
packageJsonPath: string;
|
|
8
|
+
config: string[];
|
|
9
|
+
resolveConfig: ResolveConfig<LintStagedConfig>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -2,6 +2,7 @@ import ts from 'typescript';
|
|
|
2
2
|
import { FOREIGN_FILE_EXTENSIONS } from '../constants.js';
|
|
3
3
|
import { debugLog } from '../util/debug.js';
|
|
4
4
|
import { extname, isInNodeModules, isInternal } from '../util/path.js';
|
|
5
|
+
import { isDeclarationFileExtension } from './ast-helpers.js';
|
|
5
6
|
export class SourceFileManager {
|
|
6
7
|
isSkipLibs;
|
|
7
8
|
sourceFileCache = new Map();
|
|
@@ -20,10 +21,15 @@ export class SourceFileManager {
|
|
|
20
21
|
return sourceFile;
|
|
21
22
|
}
|
|
22
23
|
getSourceFile(filePath) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (
|
|
24
|
+
const ext = extname(filePath);
|
|
25
|
+
const compiler = this.syncCompilers.get(ext);
|
|
26
|
+
if (FOREIGN_FILE_EXTENSIONS.has(ext) && !compiler)
|
|
26
27
|
return undefined;
|
|
28
|
+
if (this.isSkipLibs && isInNodeModules(filePath)) {
|
|
29
|
+
if (isDeclarationFileExtension(ext))
|
|
30
|
+
return undefined;
|
|
31
|
+
return this.createSourceFile(filePath, '');
|
|
32
|
+
}
|
|
27
33
|
if (this.sourceFileCache.has(filePath))
|
|
28
34
|
return this.sourceFileCache.get(filePath);
|
|
29
35
|
const contents = ts.sys.readFile(filePath);
|
|
@@ -32,8 +38,6 @@ export class SourceFileManager {
|
|
|
32
38
|
debugLog('*', `Unable to read ${filePath}`);
|
|
33
39
|
return this.createSourceFile(filePath, '');
|
|
34
40
|
}
|
|
35
|
-
const ext = extname(filePath);
|
|
36
|
-
const compiler = this.syncCompilers?.get(ext);
|
|
37
41
|
const compiled = compiler ? compiler(contents, filePath) : contents;
|
|
38
42
|
if (compiler)
|
|
39
43
|
debugLog('*', `Compiled ${filePath}`);
|
|
@@ -54,7 +58,7 @@ export class SourceFileManager {
|
|
|
54
58
|
if (typeof contents !== 'string')
|
|
55
59
|
throw new Error(`Unable to read ${filePath}`);
|
|
56
60
|
const ext = extname(filePath);
|
|
57
|
-
const compiler = this.asyncCompilers
|
|
61
|
+
const compiler = this.asyncCompilers.get(ext);
|
|
58
62
|
if (compiler) {
|
|
59
63
|
const compiled = await compiler(contents, filePath);
|
|
60
64
|
debugLog('*', `Compiled ${filePath}`);
|
|
@@ -9,8 +9,8 @@ import { createCustomSys } from './sys.js';
|
|
|
9
9
|
const libLocation = path.dirname(ts.getDefaultLibFilePath({}));
|
|
10
10
|
export const createHosts = ({ cwd, compilerOptions, entryPaths, compilers, isSkipLibs }) => {
|
|
11
11
|
const fileManager = new SourceFileManager({ compilers, isSkipLibs });
|
|
12
|
-
const compilerExtensions =
|
|
13
|
-
const sys = createCustomSys(cwd, compilerExtensions);
|
|
12
|
+
const compilerExtensions = getCompilerExtensions(compilers);
|
|
13
|
+
const sys = createCustomSys(cwd, [...compilerExtensions, ...FOREIGN_FILE_EXTENSIONS]);
|
|
14
14
|
const resolveModuleNames = createCustomModuleResolver(sys, compilerOptions, compilerExtensions);
|
|
15
15
|
const languageServiceHost = {
|
|
16
16
|
getCompilationSettings: () => compilerOptions,
|
|
@@ -290,10 +290,12 @@ const getImportsAndExports = (sourceFile, getResolvedModule, typeChecker, option
|
|
|
290
290
|
return;
|
|
291
291
|
for (const match of sourceFile.text.matchAll(new RegExp(item.identifier.replace(/\$/g, '\\$'), 'g'))) {
|
|
292
292
|
const isDeclaration = match.index === item.pos || match.index === item.pos + 1;
|
|
293
|
-
if (!isDeclaration
|
|
294
|
-
typeChecker.getSymbolAtLocation(ts.getTokenAtPosition(sourceFile, match.index))
|
|
295
|
-
item.
|
|
296
|
-
|
|
293
|
+
if (!isDeclaration) {
|
|
294
|
+
const smbl = typeChecker.getSymbolAtLocation(ts.getTokenAtPosition(sourceFile, match.index));
|
|
295
|
+
if (smbl && (item.symbol === smbl || item.symbol === smbl.declarations?.[0]?.name?.flowNode?.node?.symbol)) {
|
|
296
|
+
item.refs = 1;
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
297
299
|
}
|
|
298
300
|
}
|
|
299
301
|
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.1.
|
|
1
|
+
export declare const version = "5.1.5";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.1.
|
|
1
|
+
export const version = '5.1.5';
|