@ankhorage/devtools 1.1.2 → 1.2.1
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/README.md +165 -138
- package/dist/cli/bin/eslint.js +4 -0
- package/dist/cli/bin/knip.js +4 -0
- package/dist/cli/bin/prettier.js +4 -0
- package/dist/cli/commands.d.ts +25 -0
- package/dist/cli/commands.js +92 -0
- package/dist/cli/index.d.ts +5 -5
- package/dist/cli/index.js +3 -4
- package/dist/cli/runExternalTool.d.ts +31 -0
- package/dist/{internal/runDevtoolsCommand.js → cli/runExternalTool.js} +3 -3
- package/dist/cli/runProviderCommand.d.ts +8 -0
- package/dist/cli/runProviderCommand.js +11 -0
- package/dist/cli/runRepositoryCommand.d.ts +16 -0
- package/dist/cli/runRepositoryCommand.js +108 -0
- package/dist/cli/runStandaloneTool.d.ts +3 -0
- package/dist/cli/runStandaloneTool.js +5 -0
- package/dist/internal/readmeDocs.js +7 -7
- package/dist/{eslint.d.ts → tools/eslint/index.d.ts} +1 -0
- package/dist/tools/eslint/types.d.ts +18 -0
- package/dist/tools/knip/index.d.ts +20 -0
- package/dist/tools/shared/managedFiles.d.ts +20 -0
- package/dist/tools/shared/managedFiles.js +84 -0
- package/dist/tools/vscode/files/extensions.json +9 -0
- package/dist/tools/vscode/files/settings.json +15 -0
- package/dist/tools/vscode/index.d.ts +7 -0
- package/dist/tools/vscode/index.js +10 -0
- package/dist/tools/workflows/files/ci.yml +88 -0
- package/dist/tools/workflows/files/release.yml +65 -0
- package/dist/tools/workflows/index.d.ts +7 -0
- package/dist/tools/workflows/index.js +10 -0
- package/package.json +21 -15
- package/dist/eslint-cli.js +0 -4
- package/dist/internal/devtoolsCommands.d.ts +0 -11
- package/dist/internal/devtoolsCommands.js +0 -39
- package/dist/internal/runDevtoolsCommand.d.ts +0 -31
- package/dist/internal/runStandaloneDevtoolsCommand.d.ts +0 -3
- package/dist/internal/runStandaloneDevtoolsCommand.js +0 -5
- package/dist/knip-cli.js +0 -4
- package/dist/knip.d.ts +0 -20
- package/dist/prettier-cli.js +0 -4
- package/dist/types.d.ts +0 -18
- /package/dist/{eslint-cli.d.ts → cli/bin/eslint.d.ts} +0 -0
- /package/dist/{knip-cli.d.ts → cli/bin/knip.d.ts} +0 -0
- /package/dist/{prettier-cli.d.ts → cli/bin/prettier.d.ts} +0 -0
- /package/dist/{eslint.js → tools/eslint/index.js} +0 -0
- /package/dist/{types.js → tools/eslint/types.js} +0 -0
- /package/dist/{knip.js → tools/knip/index.js} +0 -0
- /package/dist/{prettier.cjs → tools/prettier/index.cjs} +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { DevtoolsCommandDefinition, DevtoolsToolName } from './devtoolsCommands.js';
|
|
2
|
-
export type { DevtoolsCommandDefinition, DevtoolsToolName };
|
|
3
|
-
export interface DevtoolsRunResult {
|
|
4
|
-
exitCode: number;
|
|
5
|
-
}
|
|
6
|
-
interface DevtoolsRunnerOptions {
|
|
7
|
-
cwd?: string;
|
|
8
|
-
env?: NodeJS.ProcessEnv;
|
|
9
|
-
}
|
|
10
|
-
interface ResolvedExecutionTarget {
|
|
11
|
-
command: string;
|
|
12
|
-
args: readonly string[];
|
|
13
|
-
shell: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface SpawnedProcess {
|
|
16
|
-
on(event: 'error', listener: (error: Error) => void): SpawnedProcess;
|
|
17
|
-
on(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): SpawnedProcess;
|
|
18
|
-
}
|
|
19
|
-
type SpawnProcess = (command: string, args: readonly string[], options: {
|
|
20
|
-
cwd: string;
|
|
21
|
-
env: NodeJS.ProcessEnv;
|
|
22
|
-
shell: boolean;
|
|
23
|
-
stdio: 'inherit';
|
|
24
|
-
}) => SpawnedProcess;
|
|
25
|
-
interface DevtoolsRunnerDependencies {
|
|
26
|
-
readonly logError: (message: string) => void;
|
|
27
|
-
readonly resolveExecutionTarget: (command: DevtoolsCommandDefinition) => Promise<ResolvedExecutionTarget>;
|
|
28
|
-
readonly spawnProcess: SpawnProcess;
|
|
29
|
-
}
|
|
30
|
-
export declare function runDevtoolsCommand(command: DevtoolsCommandDefinition, argv: readonly string[], options?: DevtoolsRunnerOptions): Promise<DevtoolsRunResult>;
|
|
31
|
-
export declare function runDevtoolsCommandWithDependencies(command: DevtoolsCommandDefinition, argv: readonly string[], options: DevtoolsRunnerOptions | undefined, dependencies: DevtoolsRunnerDependencies): Promise<DevtoolsRunResult>;
|
package/dist/knip-cli.js
DELETED
package/dist/knip.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { KnipConfig } from 'knip';
|
|
2
|
-
export interface DevtoolsKnipWorkspaceConfigOptions {
|
|
3
|
-
entry?: string[];
|
|
4
|
-
project?: string[];
|
|
5
|
-
ignore?: string[];
|
|
6
|
-
ignoreBinaries?: string[];
|
|
7
|
-
ignoreDependencies?: (string | RegExp)[];
|
|
8
|
-
ignoreFiles?: string[];
|
|
9
|
-
}
|
|
10
|
-
export interface DevtoolsKnipConfigOptions extends DevtoolsKnipWorkspaceConfigOptions {
|
|
11
|
-
workspaces?: Record<string, DevtoolsKnipWorkspaceConfigOptions>;
|
|
12
|
-
}
|
|
13
|
-
export interface DevtoolsKnipMonorepoConfigOptions {
|
|
14
|
-
root?: DevtoolsKnipWorkspaceConfigOptions;
|
|
15
|
-
workspaceDefaults?: DevtoolsKnipWorkspaceConfigOptions;
|
|
16
|
-
workspaceGlobs?: string[];
|
|
17
|
-
workspaces?: Record<string, DevtoolsKnipWorkspaceConfigOptions>;
|
|
18
|
-
}
|
|
19
|
-
export declare function createKnipConfig(options?: DevtoolsKnipConfigOptions): KnipConfig;
|
|
20
|
-
export declare function createKnipMonorepoConfig(options?: DevtoolsKnipMonorepoConfigOptions): KnipConfig;
|
package/dist/prettier-cli.js
DELETED
package/dist/types.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type tseslint from 'typescript-eslint';
|
|
2
|
-
type FlatConfig = ReturnType<typeof tseslint.config>;
|
|
3
|
-
export type FlatConfigItem = FlatConfig[number];
|
|
4
|
-
interface RestrictedImport {
|
|
5
|
-
name: string;
|
|
6
|
-
message: string;
|
|
7
|
-
}
|
|
8
|
-
export interface DevtoolsConfigOptions {
|
|
9
|
-
tsconfigRootDir: string;
|
|
10
|
-
project: string[];
|
|
11
|
-
files: string[];
|
|
12
|
-
allowDefaultProject?: string[];
|
|
13
|
-
additionalIgnores?: string[];
|
|
14
|
-
restrictedImports?: RestrictedImport[];
|
|
15
|
-
overrides?: FlatConfigItem[];
|
|
16
|
-
includePrettier?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|