@visulima/vis 1.0.0-alpha.1 → 1.0.0-alpha.10
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/CHANGELOG.md +350 -12
- package/LICENSE.md +70 -0
- package/README.md +250 -9
- package/dist/bin.js +1 -146
- package/dist/errors/index.d.ts +26 -0
- package/dist/errors/index.js +1 -0
- package/dist/generate/index.d.ts +157 -0
- package/dist/generate/index.js +1 -0
- package/dist/packem_chunks/bin.js +87 -0
- package/dist/packem_chunks/config.js +2 -0
- package/dist/packem_chunks/fix.js +53 -0
- package/dist/packem_chunks/handler.js +1 -0
- package/dist/packem_chunks/handler10.js +1 -0
- package/dist/packem_chunks/handler11.js +1 -0
- package/dist/packem_chunks/handler12.js +2 -0
- package/dist/packem_chunks/handler13.js +1 -0
- package/dist/packem_chunks/handler14.js +5 -0
- package/dist/packem_chunks/handler15.js +1 -0
- package/dist/packem_chunks/handler16.js +20 -0
- package/dist/packem_chunks/handler17.js +1 -0
- package/dist/packem_chunks/handler18.js +1 -0
- package/dist/packem_chunks/handler19.js +1 -0
- package/dist/packem_chunks/handler2.js +1 -0
- package/dist/packem_chunks/handler20.js +1 -0
- package/dist/packem_chunks/handler21.js +1 -0
- package/dist/packem_chunks/handler22.js +5 -0
- package/dist/packem_chunks/handler23.js +1 -0
- package/dist/packem_chunks/handler24.js +1 -0
- package/dist/packem_chunks/handler25.js +5 -0
- package/dist/packem_chunks/handler26.js +1 -0
- package/dist/packem_chunks/handler27.js +3 -0
- package/dist/packem_chunks/handler28.js +1 -0
- package/dist/packem_chunks/handler29.js +7 -0
- package/dist/packem_chunks/handler3.js +2 -0
- package/dist/packem_chunks/handler30.js +23 -0
- package/dist/packem_chunks/handler31.js +3 -0
- package/dist/packem_chunks/handler32.js +2 -0
- package/dist/packem_chunks/handler33.js +24 -0
- package/dist/packem_chunks/handler34.js +2 -0
- package/dist/packem_chunks/handler35.js +19 -0
- package/dist/packem_chunks/handler36.js +428 -0
- package/dist/packem_chunks/handler37.js +22 -0
- package/dist/packem_chunks/handler38.js +22 -0
- package/dist/packem_chunks/handler39.js +22 -0
- package/dist/packem_chunks/handler4.js +4 -0
- package/dist/packem_chunks/handler40.js +3 -0
- package/dist/packem_chunks/handler41.js +10 -0
- package/dist/packem_chunks/handler42.js +153 -0
- package/dist/packem_chunks/handler43.js +42 -0
- package/dist/packem_chunks/handler44.js +3 -0
- package/dist/packem_chunks/handler45.js +27 -0
- package/dist/packem_chunks/handler5.js +2 -0
- package/dist/packem_chunks/handler6.js +13 -0
- package/dist/packem_chunks/handler7.js +8 -0
- package/dist/packem_chunks/handler8.js +1 -0
- package/dist/packem_chunks/handler9.js +1 -0
- package/dist/packem_chunks/index.js +7 -0
- package/dist/packem_chunks/loader.js +1 -0
- package/dist/packem_shared/VisConfigCycleError-CAYNC7d-.js +1 -0
- package/dist/packem_shared/VisConfigError-B5LP1zRf.js +1 -0
- package/dist/packem_shared/VisConfigLoadError-CeqBSd2Z.js +2 -0
- package/dist/packem_shared/VisConfigNotFoundError-DZ9KC527.js +5 -0
- package/dist/packem_shared/VisUpdateApp-D-L4_-Iu.js +1 -0
- package/dist/packem_shared/_commonjsHelpers-D6W6KoPK.js +1 -0
- package/dist/packem_shared/ai-analysis-CGuy7dfE.js +67 -0
- package/dist/packem_shared/ai-cache-Bynt6Y9x.js +1 -0
- package/dist/packem_shared/cache-directory-D72ZEag2.js +1 -0
- package/dist/packem_shared/catalog-BVPerCwG.js +12 -0
- package/dist/packem_shared/dependency-scan-Du0tBu64.js +2 -0
- package/dist/packem_shared/docker-BcfqH4Av.js +2 -0
- package/dist/packem_shared/failure-log-DqYen0LC.js +2 -0
- package/dist/packem_shared/flakiness-DSIHZGBT.js +1 -0
- package/dist/packem_shared/run-summary-utils-C24Aaf9E.js +1 -0
- package/dist/packem_shared/runtime-check-CGHal8SO.js +1 -0
- package/dist/packem_shared/selectors-CfH9ZY08.js +3 -0
- package/dist/packem_shared/symbols-CQmER5MT.js +1 -0
- package/dist/packem_shared/target-merge-DNa-6eWu.js +1 -0
- package/dist/packem_shared/toolchain-DQfTQY8E.js +5 -0
- package/dist/packem_shared/typosquats-DOR8izpX.js +1 -0
- package/dist/packem_shared/use-measured-height-DjYgUOKk.js +1 -0
- package/dist/packem_shared/utils-DrNg0XTR.js +1 -0
- package/dist/packem_shared/xxh3-DrAUNq4n.js +1 -0
- package/index.js +601 -0
- package/package.json +67 -24
- package/schemas/project.schema.json +422 -0
- package/schemas/vis-config.schema.json +377 -0
- package/dist/ai-analysis.d.ts +0 -40
- package/dist/ai-cache.d.ts +0 -21
- package/dist/bin.d.ts +0 -1
- package/dist/catalog.d.ts +0 -110
- package/dist/commands/affected.d.ts +0 -3
- package/dist/commands/ai.d.ts +0 -3
- package/dist/commands/analyze.d.ts +0 -3
- package/dist/commands/check.d.ts +0 -3
- package/dist/commands/graph.d.ts +0 -3
- package/dist/commands/hook/constants.d.ts +0 -8
- package/dist/commands/hook/index.d.ts +0 -3
- package/dist/commands/hook/install.d.ts +0 -7
- package/dist/commands/hook/migrate.d.ts +0 -27
- package/dist/commands/hook/uninstall.d.ts +0 -3
- package/dist/commands/migrate/constants.d.ts +0 -12
- package/dist/commands/migrate/deps.d.ts +0 -32
- package/dist/commands/migrate/index.d.ts +0 -3
- package/dist/commands/migrate/json.d.ts +0 -20
- package/dist/commands/migrate/lint-staged.d.ts +0 -62
- package/dist/commands/migrate/types.d.ts +0 -20
- package/dist/commands/run.d.ts +0 -3
- package/dist/commands/staged.d.ts +0 -3
- package/dist/commands/update.d.ts +0 -3
- package/dist/config.d.ts +0 -40
- package/dist/config.js +0 -1
- package/dist/package-manager.d.ts +0 -23
- package/dist/workspace.d.ts +0 -58
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const LINT_STAGED_JSON_CONFIG_FILES: readonly [".lintstagedrc.json", ".lintstagedrc"];
|
|
2
|
-
declare const LINT_STAGED_OTHER_CONFIG_FILES: readonly [".lintstagedrc.yaml", ".lintstagedrc.yml", ".lintstagedrc.mjs", "lint-staged.config.mjs", ".lintstagedrc.cjs", "lint-staged.config.cjs", ".lintstagedrc.js", "lint-staged.config.js", ".lintstagedrc.ts", "lint-staged.config.ts", ".lintstagedrc.mts", "lint-staged.config.mts", ".lintstagedrc.cts", "lint-staged.config.cts"];
|
|
3
|
-
declare const LINT_STAGED_ALL_CONFIG_FILES: ReadonlyArray<string>;
|
|
4
|
-
declare const STALE_LINT_STAGED_PATTERNS: ReadonlyArray<RegExp>;
|
|
5
|
-
declare const REPLACED_PACKAGES: readonly ["husky", "lint-staged"];
|
|
6
|
-
declare const HUSKY_SCRIPT_PATTERNS: ReadonlyArray<RegExp>;
|
|
7
|
-
/**
|
|
8
|
-
* Remove husky references from a single script value.
|
|
9
|
-
* Returns the cleaned script, or undefined if the entire script should be removed.
|
|
10
|
-
*/
|
|
11
|
-
declare const cleanHuskyFromScript: (scriptValue: string) => string | undefined;
|
|
12
|
-
export { cleanHuskyFromScript, HUSKY_SCRIPT_PATTERNS, LINT_STAGED_ALL_CONFIG_FILES, LINT_STAGED_JSON_CONFIG_FILES, LINT_STAGED_OTHER_CONFIG_FILES, REPLACED_PACKAGES, STALE_LINT_STAGED_PATTERNS, };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { VisConfig } from "../../workspace.d.ts";
|
|
2
|
-
import type { MigrationReport, PackageManagerType } from "./types.d.ts";
|
|
3
|
-
interface MigrateLogger {
|
|
4
|
-
info: (message: string) => void;
|
|
5
|
-
warn: (message: string) => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Rewrite scripts in package.json to replace husky/lint-staged references.
|
|
9
|
-
*/
|
|
10
|
-
declare const rewriteScripts: (scripts: Record<string, string>, report: MigrationReport) => {
|
|
11
|
-
modified: boolean;
|
|
12
|
-
scripts: Record<string, string>;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Rewrite a single package.json: remove replaced packages, add overrides, rewrite scripts.
|
|
16
|
-
*/
|
|
17
|
-
declare const rewritePackageJson: (root: string, packageManager: PackageManagerType, overrides: Record<string, string>, report: MigrationReport) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Iterate over all workspace packages and rewrite their package.json files.
|
|
20
|
-
*/
|
|
21
|
-
declare const migrateMonorepoPackages: (root: string, packageManager: PackageManagerType, overrides: Record<string, string>, report: MigrationReport) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Update pnpm-workspace.yaml catalog with override entries.
|
|
24
|
-
*/
|
|
25
|
-
declare const updatePnpmWorkspaceCatalog: (root: string, overrides: Record<string, string>) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Top-level orchestrator for dependency migration.
|
|
28
|
-
*/
|
|
29
|
-
declare const migrateDeps: (root: string, packageManager: PackageManagerType, visConfig: VisConfig, options: {
|
|
30
|
-
dryRun: boolean;
|
|
31
|
-
}, logger: MigrateLogger, report: MigrationReport) => void;
|
|
32
|
-
export { migrateDeps, migrateMonorepoPackages, rewritePackageJson, rewriteScripts, updatePnpmWorkspaceCatalog };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reads and parses a JSON file. Returns undefined if the file doesn't exist or isn't valid JSON.
|
|
3
|
-
*/
|
|
4
|
-
declare const readJsonFile: <T>(filePath: string) => T | undefined;
|
|
5
|
-
/**
|
|
6
|
-
* Checks if a file exists and contains valid JSON.
|
|
7
|
-
*/
|
|
8
|
-
declare const isJsonFile: (filePath: string) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Detect the indentation used in a JSON file by looking at the first indented line.
|
|
11
|
-
*/
|
|
12
|
-
declare const detectJsonIndent: (content: string) => number;
|
|
13
|
-
/**
|
|
14
|
-
* Edits a JSON file in place using a mutator function.
|
|
15
|
-
* The mutator receives the parsed data and should return the modified data,
|
|
16
|
-
* or undefined to skip writing. Returns true if the file was modified.
|
|
17
|
-
* Preserves the original indentation style.
|
|
18
|
-
*/
|
|
19
|
-
declare const editJsonFile: <T>(filePath: string, mutator: (data: T) => T | undefined) => boolean;
|
|
20
|
-
export { detectJsonIndent, editJsonFile, isJsonFile, readJsonFile };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { MigrationReport } from "./types.d.ts";
|
|
2
|
-
interface MigrateLogger {
|
|
3
|
-
info: (message: string) => void;
|
|
4
|
-
warn: (message: string) => void;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Check if a standalone lint-staged config file exists.
|
|
8
|
-
*/
|
|
9
|
-
declare const hasStandaloneLintStagedConfig: (root: string) => boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Check if a standalone lint-staged config exists in a format that can't be
|
|
12
|
-
* auto-migrated (non-JSON files like .yaml, .mjs, .cjs, .js, or a non-JSON .lintstagedrc).
|
|
13
|
-
*/
|
|
14
|
-
declare const hasUnsupportedLintStagedConfig: (root: string) => boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Check if vis.config.ts already has a `staged` config key.
|
|
17
|
-
*/
|
|
18
|
-
declare const hasStagedConfigInVisConfig: (root: string) => boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Detect lint-staged config: returns the source ("package.json", a filename, or undefined).
|
|
21
|
-
*/
|
|
22
|
-
declare const detectLintStagedConfig: (root: string) => string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Extract lint-staged config from package.json.
|
|
25
|
-
*/
|
|
26
|
-
declare const extractLintStagedFromPackageJson: (root: string) => Record<string, string | string[]> | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Parse a JSON lint-staged config file.
|
|
29
|
-
*/
|
|
30
|
-
declare const parseLintStagedJsonFile: (filePath: string) => Record<string, string | string[]> | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Generate a TypeScript snippet for the staged block.
|
|
33
|
-
*/
|
|
34
|
-
declare const generateStagedConfigSnippet: (config: Record<string, string | string[]>) => string;
|
|
35
|
-
/**
|
|
36
|
-
* Insert staged config into vis.config.ts. Creates the file if it doesn't exist.
|
|
37
|
-
*/
|
|
38
|
-
declare const insertStagedIntoVisConfig: (root: string, config: Record<string, string | string[]>, logger: MigrateLogger) => boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Remove `lint-staged` key, config, and dependency from package.json in a single read/write.
|
|
41
|
-
* Returns which removals were performed.
|
|
42
|
-
*/
|
|
43
|
-
declare const removeLintStagedFromPackageJson: (root: string) => {
|
|
44
|
-
configRemoved: boolean;
|
|
45
|
-
dependencyRemoved: boolean;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Remove standalone lint-staged config files.
|
|
49
|
-
*/
|
|
50
|
-
declare const removeLintStagedConfigFiles: (root: string, report: MigrationReport) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Rewrite pre-commit hook to replace lint-staged invocations with `vis staged`.
|
|
53
|
-
*/
|
|
54
|
-
declare const rewritePreCommitHook: (root: string, hooksDirectory: string) => boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Migrates lint-staged configuration to vis.config.ts staged block.
|
|
57
|
-
*/
|
|
58
|
-
declare const migrateLintStaged: (root: string, options: {
|
|
59
|
-
dryRun: boolean;
|
|
60
|
-
silent?: boolean;
|
|
61
|
-
}, logger: MigrateLogger, report: MigrationReport) => boolean;
|
|
62
|
-
export { detectLintStagedConfig, extractLintStagedFromPackageJson, generateStagedConfigSnippet, hasStagedConfigInVisConfig, hasStandaloneLintStagedConfig, hasUnsupportedLintStagedConfig, insertStagedIntoVisConfig, migrateLintStaged, parseLintStagedJsonFile, removeLintStagedConfigFiles, removeLintStagedFromPackageJson, rewritePreCommitHook, };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface MigrateLogger {
|
|
2
|
-
info: (message: string) => void;
|
|
3
|
-
warn: (message: string) => void;
|
|
4
|
-
}
|
|
5
|
-
interface MigrationReport {
|
|
6
|
-
gitHooksConfigured: boolean;
|
|
7
|
-
inlinedLintStagedConfigCount: number;
|
|
8
|
-
manualSteps: string[];
|
|
9
|
-
mergedStagedConfigCount: number;
|
|
10
|
-
removedConfigCount: number;
|
|
11
|
-
removedPackageCount: number;
|
|
12
|
-
rewrittenScriptCount: number;
|
|
13
|
-
warnings: string[];
|
|
14
|
-
}
|
|
15
|
-
declare const createMigrationReport: () => MigrationReport;
|
|
16
|
-
declare const addMigrationWarning: (report: MigrationReport | undefined, warning: string) => void;
|
|
17
|
-
declare const addManualStep: (report: MigrationReport | undefined, step: string) => void;
|
|
18
|
-
type PackageManagerType = "bun" | "npm" | "pnpm" | "yarn";
|
|
19
|
-
export type { MigrateLogger, MigrationReport, PackageManagerType };
|
|
20
|
-
export { addManualStep, addMigrationWarning, createMigrationReport };
|
package/dist/commands/run.d.ts
DELETED
package/dist/config.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { VisConfig } from "./workspace.d.ts";
|
|
2
|
-
/** Supported config file names, checked in order. */
|
|
3
|
-
declare const CONFIG_FILES: string[];
|
|
4
|
-
/**
|
|
5
|
-
* Find the vis config file in a directory.
|
|
6
|
-
* @param directory The directory to search in.
|
|
7
|
-
* @returns The absolute path to the config file, or `undefined` if not found.
|
|
8
|
-
*/
|
|
9
|
-
declare const findVisConfigFile: (directory: string) => string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Load the vis configuration from a `vis.config.ts` (or `.js`, `.mjs`, `.cjs`, `.mts`, `.cts`) file.
|
|
12
|
-
*
|
|
13
|
-
* Uses jiti for runtime TypeScript support — no build step needed for config files.
|
|
14
|
-
* Falls back to an empty config if no config file is found.
|
|
15
|
-
* @param workspaceRoot The workspace root directory to search for the config file.
|
|
16
|
-
* @returns The loaded and resolved configuration.
|
|
17
|
-
*/
|
|
18
|
-
declare const loadVisConfig: (workspaceRoot: string) => Promise<VisConfig>;
|
|
19
|
-
/**
|
|
20
|
-
* Type-safe helper for defining vis configuration.
|
|
21
|
-
* Provides full TypeScript autocomplete when used in `vis.config.ts`.
|
|
22
|
-
* @example
|
|
23
|
-
* ```typescript
|
|
24
|
-
* // vis.config.ts
|
|
25
|
-
* import { defineConfig } from "@visulima/vis/config";
|
|
26
|
-
*
|
|
27
|
-
* export default defineConfig({
|
|
28
|
-
* update: {
|
|
29
|
-
* target: "minor",
|
|
30
|
-
* exclude: ["@types/*"],
|
|
31
|
-
* security: true,
|
|
32
|
-
* },
|
|
33
|
-
* ai: {
|
|
34
|
-
* provider: "claude",
|
|
35
|
-
* },
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
declare const defineConfig: (config: VisConfig) => VisConfig;
|
|
40
|
-
export { CONFIG_FILES, defineConfig, findVisConfigFile, loadVisConfig };
|
package/dist/config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=Object.defineProperty;var n=(e,i)=>r(e,"name",{value:i,configurable:!0});import{createRequire as f}from"node:module";import{join as g}from"@visulima/path";import{createJiti as d}from"jiti";const c=f(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,a=n(e=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[i,o]=s.versions.node.split(".").map(Number);if(i>22||i===22&&o>=3||i===20&&o>=16)return s.getBuiltinModule(e)}return c(e)},"__cjs_getBuiltinModule"),{existsSync:u}=a("node:fs");var l=Object.defineProperty,t=n((e,i)=>l(e,"name",{value:i,configurable:!0}),"o");const m=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],p=t(e=>{for(const i of m){const o=g(e,i);if(u(o))return o}},"findVisConfigFile"),C=t(async e=>{const i=p(e);if(!i)return{};const o=await d(e).import(i,{default:!0,try:!0})??{};return typeof o=="function"?await o():o},"loadVisConfig"),b=t(e=>e,"defineConfig");export{m as CONFIG_FILES,b as defineConfig,p as findVisConfigFile,C as loadVisConfig};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
interface UpdateCommandOptions {
|
|
2
|
-
dev: boolean;
|
|
3
|
-
filters: string[];
|
|
4
|
-
global: boolean;
|
|
5
|
-
interactive: boolean;
|
|
6
|
-
latest: boolean;
|
|
7
|
-
noOptional: boolean;
|
|
8
|
-
noSave: boolean;
|
|
9
|
-
packages: string[];
|
|
10
|
-
prod: boolean;
|
|
11
|
-
recursive: boolean;
|
|
12
|
-
workspaceRoot: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface ResolvedCommand {
|
|
15
|
-
args: string[];
|
|
16
|
-
bin: string;
|
|
17
|
-
}
|
|
18
|
-
declare const resolveUpdateCommand: (packageManager: "bun" | "npm" | "pnpm" | "yarn", version: string, options: UpdateCommandOptions) => {
|
|
19
|
-
command: ResolvedCommand;
|
|
20
|
-
warnings: string[];
|
|
21
|
-
};
|
|
22
|
-
export type { ResolvedCommand, UpdateCommandOptions };
|
|
23
|
-
export { resolveUpdateCommand };
|
package/dist/workspace.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { ProjectGraph, TargetConfiguration, WorkspaceConfiguration } from "@visulima/task-runner";
|
|
2
|
-
interface PackageJson {
|
|
3
|
-
dependencies?: Record<string, string>;
|
|
4
|
-
devDependencies?: Record<string, string>;
|
|
5
|
-
name?: string;
|
|
6
|
-
peerDependencies?: Record<string, string>;
|
|
7
|
-
scripts?: Record<string, string>;
|
|
8
|
-
workspaces?: string[] | {
|
|
9
|
-
packages: string[];
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
interface VisConfig {
|
|
13
|
-
/** AI analysis configuration */
|
|
14
|
-
ai?: {
|
|
15
|
-
/** Cache TTL in milliseconds. Overrides default (1h / 30min for security). */
|
|
16
|
-
cacheTtl?: number;
|
|
17
|
-
/** Override default provider priority. Higher number = preferred. */
|
|
18
|
-
priority?: Record<string, number>;
|
|
19
|
-
/** Use a specific provider instead of auto-detecting (e.g., `"claude"`, `"gemini"`). */
|
|
20
|
-
provider?: string;
|
|
21
|
-
};
|
|
22
|
-
/** Package override mappings applied during migration (e.g., `{ "lodash": "lodash-es" }`) */
|
|
23
|
-
overrides?: Record<string, string>;
|
|
24
|
-
/** Staged file patterns and commands (replaces lint-staged) */
|
|
25
|
-
staged?: Record<string, string | string[]>;
|
|
26
|
-
/** Target default configurations */
|
|
27
|
-
targetDefaults?: Record<string, Partial<TargetConfiguration>>;
|
|
28
|
-
/** Task runner options */
|
|
29
|
-
taskRunnerOptions?: Record<string, unknown>;
|
|
30
|
-
/** Update command defaults */
|
|
31
|
-
update?: {
|
|
32
|
-
exclude?: string[];
|
|
33
|
-
format?: "json" | "minimal" | "table";
|
|
34
|
-
include?: string[];
|
|
35
|
-
install?: boolean;
|
|
36
|
-
prerelease?: boolean;
|
|
37
|
-
security?: boolean;
|
|
38
|
-
target?: "latest" | "minor" | "patch";
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Resolves glob-like workspace patterns to actual directories.
|
|
43
|
-
* Supports simple patterns like "packages/*" and "packages/**".
|
|
44
|
-
*/
|
|
45
|
-
declare const resolveWorkspacePatterns: (workspaceRoot: string, patterns: string[]) => string[];
|
|
46
|
-
/**
|
|
47
|
-
* Discovers all projects in the workspace and builds a WorkspaceConfiguration.
|
|
48
|
-
*/
|
|
49
|
-
declare const discoverWorkspace: (workspaceRoot: string, config?: VisConfig) => {
|
|
50
|
-
config: VisConfig;
|
|
51
|
-
workspace: WorkspaceConfiguration;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Builds the project dependency graph from package.json dependencies.
|
|
55
|
-
*/
|
|
56
|
-
declare const buildProjectGraph: (workspaceRoot: string, workspace: WorkspaceConfiguration) => ProjectGraph;
|
|
57
|
-
export type { PackageJson, VisConfig };
|
|
58
|
-
export { buildProjectGraph, discoverWorkspace, resolveWorkspacePatterns };
|