@dcdavidev/shared-spells 0.0.0-stage → 0.3.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.
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @file Human-readable descriptions of commit scopes, read from the
3
+ * `package.json` of the workspace packages, for the commitlint and czg
4
+ * prompts.
5
+ */
6
+ import { type DiscoverWorkspaceScopesOptions } from './discover-workspace-scopes.js';
7
+ /**
8
+ * Descriptions of the commit scopes that do not match a workspace package.
9
+ */
10
+ export declare const SCOPE_DESCRIPTIONS: Readonly<Record<string, string>>;
11
+ /**
12
+ * Returns a human-readable description of a commit scope.
13
+ *
14
+ * Scopes are resolved in this order:
15
+ *
16
+ * 1. Scopes listed in {@link SCOPE_DESCRIPTIONS}, such as `release`.
17
+ * 2. Workspace package names, such as `@dcdavidev/eslint-plugin`: the
18
+ * `description` of the package `package.json`, or a generic text when it has
19
+ * none.
20
+ * 3. npm scopes, such as `@dcdavidev`: a text naming the scope.
21
+ * 4. Any other scope: a generic text naming the scope.
22
+ *
23
+ * The workspace packages come from `listWorkspacePackages`, which runs the
24
+ * package manager once and caches the result. The function never throws.
25
+ *
26
+ * @param scope - Package name, npm scope or special scope such as `release`.
27
+ * @param options - Working directory and optional package manager.
28
+ * @returns Text shown next to the scope in the commit prompt.
29
+ * @example
30
+ * ```ts
31
+ * getScopeDescription('@dcdavidev/eslint-plugin');
32
+ * // => 'A shareable ESlint plugin'
33
+ * getScopeDescription('release');
34
+ * // => 'Release a new version of one or more packages'
35
+ * ```
36
+ */
37
+ export declare function getScopeDescription(scope: string, options?: DiscoverWorkspaceScopesOptions): string;
38
+ /**
39
+ * Returns the descriptions of several commit scopes.
40
+ *
41
+ * @param scopes - Commit scopes to describe.
42
+ * @param options - Working directory and optional package manager.
43
+ * @returns A record mapping each scope to its description, in the order given.
44
+ * @example
45
+ * ```ts
46
+ * getWorkspaceScopesDescription(['release', '@dcdavidev/eslint-plugin']);
47
+ * // => {
48
+ * // release: 'Release a new version of one or more packages',
49
+ * // '@dcdavidev/eslint-plugin': 'A shareable ESlint plugin',
50
+ * // }
51
+ * ```
52
+ */
53
+ export declare function getWorkspaceScopesDescription(scopes: readonly string[], options?: DiscoverWorkspaceScopesOptions): Record<string, string>;
54
+ export default getScopeDescription;
55
+ //# sourceMappingURL=get-workspace-scopes-description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-workspace-scopes-description.d.ts","sources":["../src/get-workspace-scopes-description.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EACL,KAAK,8BAA8B,EAEpC,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAE/D,CAAC;AAyBF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,8BAAmC,GAC3C,MAAM,CAmBR;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,OAAO,GAAE,8BAAmC,GAC3C,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAIxB;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * @file Human-readable descriptions of commit scopes, read from the
3
+ * `package.json` of the workspace packages, for the commitlint and czg
4
+ * prompts.
5
+ */
6
+ import { readFileSync } from 'node:fs';
7
+ import path from 'node:path';
8
+ import { listWorkspacePackages, } from './discover-workspace-scopes.js';
9
+ /**
10
+ * Descriptions of the commit scopes that do not match a workspace package.
11
+ */
12
+ export const SCOPE_DESCRIPTIONS = {
13
+ release: 'Release a new version of one or more packages',
14
+ };
15
+ /**
16
+ * Reads the `description` field of a package `package.json`.
17
+ *
18
+ * @param dir - Absolute path of the package directory.
19
+ * @returns The trimmed description, or `undefined` when it is missing, empty
20
+ * or unreadable.
21
+ */
22
+ function readPackageDescription(dir) {
23
+ try {
24
+ const manifest = JSON.parse(readFileSync(path.join(dir, 'package.json'), 'utf8'));
25
+ const description = typeof manifest.description === 'string'
26
+ ? manifest.description.trim()
27
+ : '';
28
+ return description === '' ? undefined : description;
29
+ }
30
+ catch {
31
+ return undefined;
32
+ }
33
+ }
34
+ /**
35
+ * Returns a human-readable description of a commit scope.
36
+ *
37
+ * Scopes are resolved in this order:
38
+ *
39
+ * 1. Scopes listed in {@link SCOPE_DESCRIPTIONS}, such as `release`.
40
+ * 2. Workspace package names, such as `@dcdavidev/eslint-plugin`: the
41
+ * `description` of the package `package.json`, or a generic text when it has
42
+ * none.
43
+ * 3. npm scopes, such as `@dcdavidev`: a text naming the scope.
44
+ * 4. Any other scope: a generic text naming the scope.
45
+ *
46
+ * The workspace packages come from `listWorkspacePackages`, which runs the
47
+ * package manager once and caches the result. The function never throws.
48
+ *
49
+ * @param scope - Package name, npm scope or special scope such as `release`.
50
+ * @param options - Working directory and optional package manager.
51
+ * @returns Text shown next to the scope in the commit prompt.
52
+ * @example
53
+ * ```ts
54
+ * getScopeDescription('@dcdavidev/eslint-plugin');
55
+ * // => 'A shareable ESlint plugin'
56
+ * getScopeDescription('release');
57
+ * // => 'Release a new version of one or more packages'
58
+ * ```
59
+ */
60
+ export function getScopeDescription(scope, options = {}) {
61
+ const known = SCOPE_DESCRIPTIONS[scope];
62
+ if (known)
63
+ return known;
64
+ const workspacePackage = listWorkspacePackages(options).find(({ name }) => name === scope);
65
+ if (workspacePackage) {
66
+ return (readPackageDescription(workspacePackage.dir) ??
67
+ `Changes to the \`${scope}\` package`);
68
+ }
69
+ if (scope.startsWith('@') && !scope.includes('/')) {
70
+ return `Changes to the packages of the \`${scope}\` scope`;
71
+ }
72
+ return `Changes to \`${scope}\``;
73
+ }
74
+ /**
75
+ * Returns the descriptions of several commit scopes.
76
+ *
77
+ * @param scopes - Commit scopes to describe.
78
+ * @param options - Working directory and optional package manager.
79
+ * @returns A record mapping each scope to its description, in the order given.
80
+ * @example
81
+ * ```ts
82
+ * getWorkspaceScopesDescription(['release', '@dcdavidev/eslint-plugin']);
83
+ * // => {
84
+ * // release: 'Release a new version of one or more packages',
85
+ * // '@dcdavidev/eslint-plugin': 'A shareable ESlint plugin',
86
+ * // }
87
+ * ```
88
+ */
89
+ export function getWorkspaceScopesDescription(scopes, options = {}) {
90
+ return Object.fromEntries(scopes.map((scope) => [scope, getScopeDescription(scope, options)]));
91
+ }
92
+ export default getScopeDescription;
93
+ //# sourceMappingURL=get-workspace-scopes-description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-workspace-scopes-description.js","sources":["../src/get-workspace-scopes-description.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAEL,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAqC;IAClE,OAAO,EAAE,+CAA+C;CACzD,CAAC;AAEF;;;;;;GAMG;AACH,SAAS,sBAAsB,CAAC,GAAW;IACzC,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CACxB,CAAC;QAC/B,MAAM,WAAW,GACf,OAAO,QAAQ,CAAC,WAAW,KAAK,QAAQ;YACtC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE;YAC7B,CAAC,CAAC,EAAE,CAAC;QAET,OAAO,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC;IACtD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAa,EACb,OAAO,GAAmC,EAAE;IAE5C,MAAM,KAAK,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,KAAK;QAAE,OAAO,KAAK,CAAC;IAExB,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC,IAAI,CAC1D,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,KAAK,CAC7B,CAAC;IACF,IAAI,gBAAgB,EAAE,CAAC;QACrB,OAAO,CACL,sBAAsB,CAAC,gBAAgB,CAAC,GAAG,CAAC;YAC5C,oBAAoB,KAAK,YAAY,CACtC,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAClD,OAAO,oCAAoC,KAAK,UAAU,CAAC;IAC7D,CAAC;IAED,OAAO,gBAAgB,KAAK,IAAI,CAAC;AACnC,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,6BAA6B,CAC3C,MAAyB,EACzB,OAAO,GAAmC,EAAE;IAE5C,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,157 @@
1
+ /**
2
+ * @file Standard glob patterns for paths ignored by linting, formatting, and spell-checking tools.
3
+ */
4
+ /**
5
+ * Core build junk, autogenerated changelogs, and temporary cache files.
6
+ */
7
+ export declare const core: readonly ['**/*LICENSE*', '**/CHANGELOG.md', '**/*.log', '**/*.min.*', '**/*.map', '**/*.tsbuildinfo', '**/*.d.ts', '**/.cache/**', '**/.temp/**', '**/.tmp/**', '**/.DS_Store'];
8
+ /**
9
+ * Node.js, JavaScript, and TypeScript build outputs and caches.
10
+ */
11
+ export declare const node: readonly ['**/node_modules/**', '**/dist/**', '**/build/**', '**/out/**', '**/out-tsc/**', '**/coverage/**', '**/.next/**', '**/.nuxt/**', '**/.svelte-kit/**', '**/.turbo/**', '**/.pnpm/**', '**/.pnpm-store/**', '**/.npm/**', '**/.yarn/**', '**/.pnp/**', '**/.parcel-cache/**', '**/.vite/**', '**/.rollup.cache/**', '**/.vercel/**', '**/.netlify/**', '**/.wrangler/**', '**/.output/**', '**/.docusaurus/**', '**/.storybook-out/**', '**/storybook-static/**'];
12
+ /**
13
+ * Package manager lock files across npm, pnpm, yarn, and bun.
14
+ */
15
+ export declare const lockFiles: readonly ['**/package-lock.json', '**/pnpm-lock.yaml', '**/yarn.lock', '**/bun.lockb', '**/bun.lock'];
16
+ /**
17
+ * Rust toolchain build outputs and cargo lock files.
18
+ */
19
+ export declare const rust: readonly ['**/target/**', '**/.cargo/**', '**/Cargo.lock'];
20
+ /**
21
+ * Go toolchain build outputs, vendor directories, and dependency files.
22
+ */
23
+ export declare const go: readonly ['**/go.sum', '**/go.work', '**/go.work.sum', '**/vendor/**', '**/.gopath/**', '**/.cache/go-build/**'];
24
+ /**
25
+ * Python toolchain caches, bytecode, and virtual environments.
26
+ */
27
+ export declare const python: readonly ['**/__pycache__/**', '**/*.pyc', '**/*.pyo', '**/.mypy_cache/**', '**/.pytest_cache/**', '**/.tox/**', '**/.ruff_cache/**', '**/.venv/**', '**/venv/**', '**/env/**', '**/.ipynb_checkpoints/**'];
28
+ /**
29
+ * AI coding agents, assistant configurations, and LLM instruction files.
30
+ */
31
+ export declare const aiAgents: readonly ['**/.agents/**', '**/.claude/**', '**/.cursor/**', '**/.gemini/**', '**/.windsurf/**', '**/.roo/**', '**/.aider*', '**/.cursorrules', '**/.cursorignore', '**/.clinerules', '**/.roorules', '**/AGENTS.md', '**/CLAUDE.md', '**/GEMINI.md', '**/.github/copilot-instructions.md', '**/.github/instructions/**'];
32
+ /**
33
+ * Miscellaneous developer toolchains, IDEs, and system dotfiles.
34
+ */
35
+ export declare const toolchains: readonly ['**/.git/**', '**/.svn/**', '**/.hg/**', '**/.idea/**', '**/.vscode/**', '**/.editorconfig', '**/.eslintcache', '**/.babelrc', '**/.prettier*', '**/.nx/**', '**/.cspell/**', '**/.history/**', '**/.sass-cache/**', '**/.gradle/**', '**/.terraform/**', '**/.docker/**', '**/.kube/**', '**/.devcontainer/**', '**/.direnv/**', '**/.astro/**', '**/.codacy/**', '**/.changeset/**'];
36
+ /**
37
+ * Windows and WSL specific metadata and system files.
38
+ */
39
+ export declare const windows: readonly ['**/*:Zone.Identifier', '**/*:Zone.Identifier*', '**/Thumbs.db', '**/desktop.ini', '**/$RECYCLE.BIN/**', '**/System Volume Information/**', '**/pagefile.sys', '**/swapfile.sys', '**/hiberfil.sys'];
40
+ /**
41
+ * Specific project artifacts and template files.
42
+ */
43
+ export declare const misc: readonly ['**/connect.lock', '**/*.hbs', '**/*.mustache'];
44
+ /**
45
+ * Combined list of all standard ignore glob patterns.
46
+ */
47
+ export declare const all: readonly string[];
48
+ /**
49
+ * Uppercase alias for {@link core}.
50
+ */
51
+ export declare const CORE_IGNORE_PATHS: typeof core;
52
+ /**
53
+ * Uppercase alias for {@link node}.
54
+ */
55
+ export declare const NODE_IGNORE_PATHS: typeof node;
56
+ /**
57
+ * Uppercase alias for {@link lockFiles}.
58
+ */
59
+ export declare const LOCK_FILES_IGNORE_PATHS: typeof lockFiles;
60
+ /**
61
+ * Uppercase alias for {@link rust}.
62
+ */
63
+ export declare const RUST_IGNORE_PATHS: typeof rust;
64
+ /**
65
+ * Uppercase alias for {@link go}.
66
+ */
67
+ export declare const GO_IGNORE_PATHS: typeof go;
68
+ /**
69
+ * Uppercase alias for {@link python}.
70
+ */
71
+ export declare const PYTHON_IGNORE_PATHS: typeof python;
72
+ /**
73
+ * Uppercase alias for {@link aiAgents}.
74
+ */
75
+ export declare const AI_AGENTS_IGNORE_PATHS: typeof aiAgents;
76
+ /**
77
+ * Uppercase alias for {@link toolchains}.
78
+ */
79
+ export declare const TOOLCHAINS_IGNORE_PATHS: typeof toolchains;
80
+ /**
81
+ * Uppercase alias for {@link windows}.
82
+ */
83
+ export declare const WINDOWS_IGNORE_PATHS: typeof windows;
84
+ /**
85
+ * Uppercase alias for {@link misc}.
86
+ */
87
+ export declare const MISC_IGNORE_PATHS: typeof misc;
88
+ /**
89
+ * Uppercase alias for {@link all}.
90
+ */
91
+ export declare const ALL_IGNORE_PATHS: readonly string[];
92
+ /**
93
+ * Mutable copy of {@link all}, for tools that expect a `string[]`.
94
+ */
95
+ export declare const ignorePaths: string[];
96
+ /**
97
+ * Type of the unified `ignores` dictionary.
98
+ */
99
+ export interface IgnoresDictionary {
100
+ /**
101
+ * AI coding agents, assistant configurations, and LLM instruction files.
102
+ */
103
+ readonly aiAgents: typeof aiAgents;
104
+ /**
105
+ * Combined list of all standard ignore glob patterns.
106
+ */
107
+ readonly all: typeof all;
108
+ /**
109
+ * Core build junk, autogenerated changelogs, and temporary cache files.
110
+ */
111
+ readonly core: typeof core;
112
+ /**
113
+ * Go toolchain build outputs, vendor directories, and dependency files.
114
+ */
115
+ readonly go: typeof go;
116
+ /**
117
+ * Package manager lock files across npm, pnpm, yarn, and bun.
118
+ */
119
+ readonly lockFiles: typeof lockFiles;
120
+ /**
121
+ * Specific project artifacts and template files.
122
+ */
123
+ readonly misc: typeof misc;
124
+ /**
125
+ * Node.js, JavaScript, and TypeScript build outputs and caches.
126
+ */
127
+ readonly node: typeof node;
128
+ /**
129
+ * Python toolchain caches, bytecode, and virtual environments.
130
+ */
131
+ readonly python: typeof python;
132
+ /**
133
+ * Rust toolchain build outputs and cargo lock files.
134
+ */
135
+ readonly rust: typeof rust;
136
+ /**
137
+ * Miscellaneous developer toolchains, IDEs, and system dotfiles.
138
+ */
139
+ readonly toolchains: typeof toolchains;
140
+ /**
141
+ * Windows and WSL specific metadata and system files.
142
+ */
143
+ readonly windows: typeof windows;
144
+ }
145
+ /**
146
+ * Dictionary of all ignore recipe categories and complete collections.
147
+ */
148
+ export declare const ignores: IgnoresDictionary;
149
+ /**
150
+ * Valid keys in the `ignores` dictionary.
151
+ */
152
+ export type IgnoreRecipeKey = keyof IgnoresDictionary;
153
+ /**
154
+ * Default export of the unified ignores dictionary.
155
+ */
156
+ export default ignores;
157
+ //# sourceMappingURL=ignores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignores.d.ts","sources":["../src/ignores.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,IAAI,YACf,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,aAAa,EACb,YAAY,EACZ,cAAc,CACN,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,IAAI,YACf,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,CAChB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,SAAS,YACpB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,aAAa,CACL,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,IAAI,YAAI,cAAc,EAAE,cAAc,EAAE,eAAe,CAAU,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,EAAE,YACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,eAA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,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,UAAU,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO,CAAC;CAClC;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,iBAYrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,eAAe,OAAO,CAAC"}
@@ -0,0 +1,240 @@
1
+ /**
2
+ * @file Standard glob patterns for paths ignored by linting, formatting, and spell-checking tools.
3
+ */
4
+ /**
5
+ * Core build junk, autogenerated changelogs, and temporary cache files.
6
+ */
7
+ export const core = [
8
+ '**/*LICENSE*',
9
+ '**/CHANGELOG.md',
10
+ '**/*.log',
11
+ '**/*.min.*',
12
+ '**/*.map',
13
+ '**/*.tsbuildinfo',
14
+ '**/*.d.ts',
15
+ '**/.cache/**',
16
+ '**/.temp/**',
17
+ '**/.tmp/**',
18
+ '**/.DS_Store',
19
+ ];
20
+ /**
21
+ * Node.js, JavaScript, and TypeScript build outputs and caches.
22
+ */
23
+ export const node = [
24
+ '**/node_modules/**',
25
+ '**/dist/**',
26
+ '**/build/**',
27
+ '**/out/**',
28
+ '**/out-tsc/**',
29
+ '**/coverage/**',
30
+ '**/.next/**',
31
+ '**/.nuxt/**',
32
+ '**/.svelte-kit/**',
33
+ '**/.turbo/**',
34
+ '**/.pnpm/**',
35
+ '**/.pnpm-store/**',
36
+ '**/.npm/**',
37
+ '**/.yarn/**',
38
+ '**/.pnp/**',
39
+ '**/.parcel-cache/**',
40
+ '**/.vite/**',
41
+ '**/.rollup.cache/**',
42
+ '**/.vercel/**',
43
+ '**/.netlify/**',
44
+ '**/.wrangler/**',
45
+ '**/.output/**',
46
+ '**/.docusaurus/**',
47
+ '**/.storybook-out/**',
48
+ '**/storybook-static/**',
49
+ ];
50
+ /**
51
+ * Package manager lock files across npm, pnpm, yarn, and bun.
52
+ */
53
+ export const lockFiles = [
54
+ '**/package-lock.json',
55
+ '**/pnpm-lock.yaml',
56
+ '**/yarn.lock',
57
+ '**/bun.lockb',
58
+ '**/bun.lock',
59
+ ];
60
+ /**
61
+ * Rust toolchain build outputs and cargo lock files.
62
+ */
63
+ export const rust = ['**/target/**', '**/.cargo/**', '**/Cargo.lock'];
64
+ /**
65
+ * Go toolchain build outputs, vendor directories, and dependency files.
66
+ */
67
+ export const go = [
68
+ '**/go.sum',
69
+ '**/go.work',
70
+ '**/go.work.sum',
71
+ '**/vendor/**',
72
+ '**/.gopath/**',
73
+ '**/.cache/go-build/**',
74
+ ];
75
+ /**
76
+ * Python toolchain caches, bytecode, and virtual environments.
77
+ */
78
+ export const python = [
79
+ '**/__pycache__/**',
80
+ '**/*.pyc',
81
+ '**/*.pyo',
82
+ '**/.mypy_cache/**',
83
+ '**/.pytest_cache/**',
84
+ '**/.tox/**',
85
+ '**/.ruff_cache/**',
86
+ '**/.venv/**',
87
+ '**/venv/**',
88
+ '**/env/**',
89
+ '**/.ipynb_checkpoints/**',
90
+ ];
91
+ /**
92
+ * AI coding agents, assistant configurations, and LLM instruction files.
93
+ */
94
+ export const aiAgents = [
95
+ '**/.agents/**',
96
+ '**/.claude/**',
97
+ '**/.cursor/**',
98
+ '**/.gemini/**',
99
+ '**/.windsurf/**',
100
+ '**/.roo/**',
101
+ '**/.aider*',
102
+ '**/.cursorrules',
103
+ '**/.cursorignore',
104
+ '**/.clinerules',
105
+ '**/.roorules',
106
+ '**/AGENTS.md',
107
+ '**/CLAUDE.md',
108
+ '**/GEMINI.md',
109
+ '**/.github/copilot-instructions.md',
110
+ '**/.github/instructions/**',
111
+ ];
112
+ /**
113
+ * Miscellaneous developer toolchains, IDEs, and system dotfiles.
114
+ */
115
+ export const toolchains = [
116
+ '**/.git/**',
117
+ '**/.svn/**',
118
+ '**/.hg/**',
119
+ '**/.idea/**',
120
+ '**/.vscode/**',
121
+ '**/.editorconfig',
122
+ '**/.eslintcache',
123
+ '**/.babelrc',
124
+ '**/.prettier*',
125
+ '**/.nx/**',
126
+ '**/.cspell/**',
127
+ '**/.history/**',
128
+ '**/.sass-cache/**',
129
+ '**/.gradle/**',
130
+ '**/.terraform/**',
131
+ '**/.docker/**',
132
+ '**/.kube/**',
133
+ '**/.devcontainer/**',
134
+ '**/.direnv/**',
135
+ '**/.astro/**',
136
+ '**/.codacy/**',
137
+ '**/.changeset/**',
138
+ ];
139
+ /**
140
+ * Windows and WSL specific metadata and system files.
141
+ */
142
+ export const windows = [
143
+ '**/*:Zone.Identifier',
144
+ '**/*:Zone.Identifier*',
145
+ '**/Thumbs.db',
146
+ '**/desktop.ini',
147
+ '**/$RECYCLE.BIN/**',
148
+ '**/System Volume Information/**',
149
+ '**/pagefile.sys',
150
+ '**/swapfile.sys',
151
+ '**/hiberfil.sys',
152
+ ];
153
+ /**
154
+ * Specific project artifacts and template files.
155
+ */
156
+ export const misc = ['**/connect.lock', '**/*.hbs', '**/*.mustache'];
157
+ /**
158
+ * Combined list of all standard ignore glob patterns.
159
+ */
160
+ export const all = [
161
+ ...core,
162
+ ...node,
163
+ ...lockFiles,
164
+ ...rust,
165
+ ...go,
166
+ ...python,
167
+ ...aiAgents,
168
+ ...toolchains,
169
+ ...windows,
170
+ ...misc,
171
+ ];
172
+ /**
173
+ * Uppercase alias for {@link core}.
174
+ */
175
+ export const CORE_IGNORE_PATHS = core;
176
+ /**
177
+ * Uppercase alias for {@link node}.
178
+ */
179
+ export const NODE_IGNORE_PATHS = node;
180
+ /**
181
+ * Uppercase alias for {@link lockFiles}.
182
+ */
183
+ export const LOCK_FILES_IGNORE_PATHS = lockFiles;
184
+ /**
185
+ * Uppercase alias for {@link rust}.
186
+ */
187
+ export const RUST_IGNORE_PATHS = rust;
188
+ /**
189
+ * Uppercase alias for {@link go}.
190
+ */
191
+ export const GO_IGNORE_PATHS = go;
192
+ /**
193
+ * Uppercase alias for {@link python}.
194
+ */
195
+ export const PYTHON_IGNORE_PATHS = python;
196
+ /**
197
+ * Uppercase alias for {@link aiAgents}.
198
+ */
199
+ export const AI_AGENTS_IGNORE_PATHS = aiAgents;
200
+ /**
201
+ * Uppercase alias for {@link toolchains}.
202
+ */
203
+ export const TOOLCHAINS_IGNORE_PATHS = toolchains;
204
+ /**
205
+ * Uppercase alias for {@link windows}.
206
+ */
207
+ export const WINDOWS_IGNORE_PATHS = windows;
208
+ /**
209
+ * Uppercase alias for {@link misc}.
210
+ */
211
+ export const MISC_IGNORE_PATHS = misc;
212
+ /**
213
+ * Uppercase alias for {@link all}.
214
+ */
215
+ export const ALL_IGNORE_PATHS = all;
216
+ /**
217
+ * Mutable copy of {@link all}, for tools that expect a `string[]`.
218
+ */
219
+ export const ignorePaths = [...all];
220
+ /**
221
+ * Dictionary of all ignore recipe categories and complete collections.
222
+ */
223
+ export const ignores = {
224
+ aiAgents: aiAgents,
225
+ all: all,
226
+ core: core,
227
+ go: go,
228
+ lockFiles: lockFiles,
229
+ misc: misc,
230
+ node: node,
231
+ python: python,
232
+ rust: rust,
233
+ toolchains: toolchains,
234
+ windows: windows,
235
+ };
236
+ /**
237
+ * Default export of the unified ignores dictionary.
238
+ */
239
+ export default ignores;
240
+ //# sourceMappingURL=ignores.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignores.js","sources":["../src/ignores.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,cAAc;IACd,iBAAiB;IACjB,UAAU;IACV,YAAY;IACZ,UAAU;IACV,kBAAkB;IAClB,WAAW;IACX,cAAc;IACd,aAAa;IACb,YAAY;IACZ,cAAc;CACN,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,oBAAoB;IACpB,YAAY;IACZ,aAAa;IACb,WAAW;IACX,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,aAAa;IACb,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,YA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