@cbnventures/nova 0.25.2 → 0.26.0
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/build/package.json +10 -8
- package/build/src/cli/generate/github/workflows-blueprint-validate.js +1 -1
- package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.d.ts +6 -3
- package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.js +101 -22
- package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
- package/build/src/cli/index.js +79 -28
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/recipe/github/gh-commands.d.ts +3 -0
- package/build/src/cli/recipe/github/gh-commands.d.ts.map +1 -0
- package/build/src/cli/recipe/github/gh-commands.js +28 -0
- package/build/src/cli/recipe/github/gh-commands.js.map +1 -0
- package/build/src/cli/recipe/github/sync-actions.d.ts +5 -0
- package/build/src/cli/recipe/github/sync-actions.d.ts.map +1 -0
- package/build/src/cli/recipe/github/sync-actions.js +103 -0
- package/build/src/cli/recipe/github/sync-actions.js.map +1 -0
- package/build/src/cli/recipe/github/sync-features.d.ts.map +1 -1
- package/build/src/cli/recipe/github/sync-features.js +46 -11
- package/build/src/cli/recipe/github/sync-features.js.map +1 -1
- package/build/src/cli/recipe/github/sync-labels.d.ts +5 -0
- package/build/src/cli/recipe/github/sync-labels.d.ts.map +1 -0
- package/build/src/cli/recipe/github/sync-labels.js +40 -0
- package/build/src/cli/recipe/github/sync-labels.js.map +1 -0
- package/build/src/cli/recipe/github/sync-policies.d.ts.map +1 -1
- package/build/src/cli/recipe/github/sync-policies.js +89 -10
- package/build/src/cli/recipe/github/sync-policies.js.map +1 -1
- package/build/src/cli/recipe/github/sync-rulesets.d.ts +5 -0
- package/build/src/cli/recipe/github/sync-rulesets.d.ts.map +1 -0
- package/build/src/cli/recipe/github/sync-rulesets.js +137 -0
- package/build/src/cli/recipe/github/sync-rulesets.js.map +1 -0
- package/build/src/cli/recipe/github/sync-security.d.ts +5 -0
- package/build/src/cli/recipe/github/sync-security.d.ts.map +1 -0
- package/build/src/cli/recipe/github/sync-security.js +69 -0
- package/build/src/cli/recipe/github/sync-security.js.map +1 -0
- package/build/src/cli/recipe/index.d.ts.map +1 -1
- package/build/src/cli/recipe/index.js +20 -0
- package/build/src/cli/recipe/index.js.map +1 -1
- package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/sync-environment.js +16 -15
- package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
- package/build/src/cli/scaffold/docs/docusaurus.d.ts +2 -1
- package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -1
- package/build/src/cli/scaffold/docs/docusaurus.js +41 -1
- package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -1
- package/build/src/cli/scaffold/starter/base.d.ts.map +1 -1
- package/build/src/cli/scaffold/starter/base.js +57 -6
- package/build/src/cli/scaffold/starter/base.js.map +1 -1
- package/build/src/cli/utility/changelog.d.ts +1 -0
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +183 -67
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/initialize.d.ts.map +1 -1
- package/build/src/cli/utility/initialize.js +133 -45
- package/build/src/cli/utility/initialize.js.map +1 -1
- package/build/src/cli/utility/run-scripts.d.ts +5 -5
- package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
- package/build/src/cli/utility/run-scripts.js +28 -252
- package/build/src/cli/utility/run-scripts.js.map +1 -1
- package/build/src/cli/utility/transpile.d.ts.map +1 -1
- package/build/src/cli/utility/transpile.js +23 -5
- package/build/src/cli/utility/transpile.js.map +1 -1
- package/build/src/cli/utility/type-check.d.ts +2 -4
- package/build/src/cli/utility/type-check.d.ts.map +1 -1
- package/build/src/cli/utility/type-check.js +13 -54
- package/build/src/cli/utility/type-check.js.map +1 -1
- package/build/src/cli/utility/version.d.ts.map +1 -1
- package/build/src/cli/utility/version.js +0 -12
- package/build/src/cli/utility/version.js.map +1 -1
- package/build/src/lib/corepack.d.ts +5 -0
- package/build/src/lib/corepack.d.ts.map +1 -0
- package/build/src/lib/corepack.js +26 -0
- package/build/src/lib/corepack.js.map +1 -0
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +4 -1
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/nova-config.d.ts +8 -0
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +329 -7
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/regex.d.ts +7 -0
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +8 -1
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/release-history.d.ts +5 -0
- package/build/src/lib/release-history.d.ts.map +1 -0
- package/build/src/lib/release-history.js +86 -0
- package/build/src/lib/release-history.js.map +1 -0
- package/build/src/lib/run-scripts.d.ts +10 -0
- package/build/src/lib/run-scripts.d.ts.map +1 -0
- package/build/src/lib/run-scripts.js +310 -0
- package/build/src/lib/run-scripts.js.map +1 -0
- package/build/src/lib/scaffold.d.ts +7 -2
- package/build/src/lib/scaffold.d.ts.map +1 -1
- package/build/src/lib/scaffold.js +398 -53
- package/build/src/lib/scaffold.js.map +1 -1
- package/build/src/lib/type-check.d.ts +3 -0
- package/build/src/lib/type-check.d.ts.map +1 -0
- package/build/src/lib/type-check.js +69 -0
- package/build/src/lib/type-check.js.map +1 -0
- package/build/src/presets/tsconfig/dx-strict.json +0 -1
- package/build/src/presets/tsconfig/fw-homebridge.json +11 -0
- package/build/src/rules/eslint/regex/no-regex-literals.d.ts +1 -0
- package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -1
- package/build/src/rules/eslint/regex/no-regex-literals.js +20 -1
- package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -1
- package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts +1 -0
- package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts.map +1 -1
- package/build/src/rules/eslint/typescript/no-shared-type-import.js +19 -1
- package/build/src/rules/eslint/typescript/no-shared-type-import.js.map +1 -1
- package/build/src/toolkit/index.d.ts +1 -0
- package/build/src/toolkit/index.d.ts.map +1 -1
- package/build/src/toolkit/index.js +1 -0
- package/build/src/toolkit/index.js.map +1 -1
- package/build/src/toolkit/vitest-setup.d.ts +6 -0
- package/build/src/toolkit/vitest-setup.d.ts.map +1 -0
- package/build/src/toolkit/vitest-setup.js +21 -0
- package/build/src/toolkit/vitest-setup.js.map +1 -0
- package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +4 -4
- package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +67 -3
- package/build/src/types/cli/recipe/github/gh-commands.d.ts +34 -0
- package/build/src/types/cli/recipe/github/sync-actions.d.ts +43 -0
- package/build/src/types/cli/recipe/github/sync-features.d.ts +16 -2
- package/build/src/types/cli/recipe/github/sync-labels.d.ts +36 -0
- package/build/src/types/cli/recipe/github/sync-policies.d.ts +14 -2
- package/build/src/types/cli/recipe/github/sync-rulesets.d.ts +71 -0
- package/build/src/types/cli/recipe/github/sync-security.d.ts +34 -0
- package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +3 -0
- package/build/src/types/cli/scaffold/app/expressjs.d.ts +3 -0
- package/build/src/types/cli/scaffold/app/nextjs.d.ts +3 -0
- package/build/src/types/cli/scaffold/app/vite.d.ts +3 -0
- package/build/src/types/cli/scaffold/app/workers.d.ts +3 -0
- package/build/src/types/cli/scaffold/docs/docusaurus.d.ts +15 -0
- package/build/src/types/cli/scaffold/starter/base.d.ts +11 -0
- package/build/src/types/cli/utility/changelog.d.ts +87 -26
- package/build/src/types/cli/utility/initialize.d.ts +39 -29
- package/build/src/types/cli/utility/run-scripts.d.ts +22 -174
- package/build/src/types/cli/utility/transpile.d.ts +9 -1
- package/build/src/types/cli/utility/type-check.d.ts +9 -71
- package/build/src/types/cli/utility/version.d.ts +1 -7
- package/build/src/types/lib/corepack.d.ts +19 -0
- package/build/src/types/lib/nova-config.d.ts +256 -23
- package/build/src/types/lib/regex.d.ts +42 -0
- package/build/src/types/lib/release-history.d.ts +57 -0
- package/build/src/types/lib/run-scripts.d.ts +264 -0
- package/build/src/types/lib/scaffold.d.ts +187 -10
- package/build/src/types/lib/type-check.d.ts +102 -0
- package/build/src/types/rules/eslint/regex/no-regex-literals.d.ts +21 -0
- package/build/src/types/rules/eslint/typescript/no-shared-type-import.d.ts +21 -0
- package/build/src/types/shared.d.ts +264 -22
- package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +4 -0
- package/build/src/types/tests/cli/index.test.d.ts +258 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +27 -0
- package/build/src/types/tests/cli/scaffold/app/expressjs.test.d.ts +4 -0
- package/build/src/types/tests/cli/scaffold/app/nextjs.test.d.ts +4 -0
- package/build/src/types/tests/cli/scaffold/app/vite.test.d.ts +48 -0
- package/build/src/types/tests/cli/scaffold/app/workers.test.d.ts +4 -0
- package/build/src/types/tests/cli/scaffold/docs/docusaurus.test.d.ts +10 -2
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +99 -0
- package/build/src/types/tests/cli/utility/initialize.test.d.ts +43 -0
- package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +29 -0
- package/build/src/types/tests/cli/utility/transpile.test.d.ts +28 -0
- package/build/src/types/tests/cli/utility/type-check.test.d.ts +33 -0
- package/build/src/types/tests/lib/nova-config.test.d.ts +19 -19
- package/build/src/types/tests/lib/regex.test.d.ts +7 -0
- package/build/src/types/tests/lib/release-history.test.d.ts +94 -0
- package/build/src/types/tests/lib/scaffold.test.d.ts +88 -0
- package/build/src/types/tests/rules/eslint/regex/no-regex-literals.test.d.ts +46 -0
- package/build/src/types/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +46 -0
- package/build/src/types/tests/scaffold-output-contract.test.d.ts +104 -0
- package/build/src/types/tests/scaffold-template-source.test.d.ts +42 -0
- package/build/src/types/tests/toolkit/vitest-setup.test.d.ts +36 -0
- package/build/src/types/tests/tsconfig-presets.test.d.ts +81 -0
- package/build/src/types/toolkit/vitest-setup.d.ts +24 -0
- package/build/templates/generators/github/workflows/publish/base.yml +1 -1
- package/build/templates/generators/github/workflows/publish/targets/cloudflare-workers.yml +1 -1
- package/build/templates/generators/must-haves/agent-conventions/PROJECT_RULES.md +11 -11
- package/build/templates/generators/must-haves/agent-conventions/conventions/documentation.md +4 -4
- package/build/templates/scaffold/app/express/package.json +2 -2
- package/build/templates/scaffold/app/express/tsconfig.json +1 -0
- package/build/templates/scaffold/app/nextjs/package.json +9 -10
- package/build/templates/scaffold/app/nextjs/tsconfig.json +3 -2
- package/build/templates/scaffold/app/vite/package.json +3 -3
- package/build/templates/scaffold/app/workers/package.json +4 -4
- package/build/templates/scaffold/app/workers/wrangler.toml +1 -1
- package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +14 -12
- package/build/templates/scaffold/docs/docusaurus/package.json +13 -9
- package/build/templates/scaffold/docs/docusaurus/src/pages/index.mdx +8 -0
- package/build/templates/scaffold/docs/docusaurus/tsconfig.json +11 -5
- package/build/templates/scaffold/docs/docusaurus/{vitest.config.ts → vitest.config.mts} +11 -0
- package/build/templates/scaffold/docs/docusaurus/vitest.setup.ts +5 -14
- package/package.json +10 -8
- /package/build/templates/scaffold/docs/docusaurus/docs/{intro.md → intro.mdx} +0 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import type { ChildProcess, ChildProcessWithoutNullStreams } from 'node:child_process';
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
Shared_RunScriptsOptions_Buffer,
|
|
5
|
+
Shared_RunScriptsOptions_Parallel,
|
|
6
|
+
Shared_RunScriptsOptions_Pattern,
|
|
7
|
+
Shared_RunScriptsOptions_Sequential,
|
|
8
|
+
} from '../shared.d.ts';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Lib - Run Scripts - Get npm Command.
|
|
12
|
+
*
|
|
13
|
+
* @since 0.26.0
|
|
14
|
+
*/
|
|
15
|
+
export type Lib_RunScripts_Runner_GetNpmCommand_Returns = string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Lib - Run Scripts - Match Scripts.
|
|
19
|
+
*
|
|
20
|
+
* @since 0.26.0
|
|
21
|
+
*/
|
|
22
|
+
export type Lib_RunScripts_Runner_MatchScripts_Scripts = Record<string, string>;
|
|
23
|
+
|
|
24
|
+
export type Lib_RunScripts_Runner_MatchScripts_Pattern = string;
|
|
25
|
+
|
|
26
|
+
export type Lib_RunScripts_Runner_MatchScripts_Returns = string[];
|
|
27
|
+
|
|
28
|
+
export type Lib_RunScripts_Runner_MatchScripts_Prefix = string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Lib - Run Scripts - Read package.json.
|
|
32
|
+
*
|
|
33
|
+
* @since 0.26.0
|
|
34
|
+
*/
|
|
35
|
+
export type Lib_RunScripts_Runner_ReadPackageJson_Returns = Promise<Lib_RunScripts_Runner_ReadPackageJson_Parsed | undefined>;
|
|
36
|
+
|
|
37
|
+
export type Lib_RunScripts_Runner_ReadPackageJson_Parsed = Record<string, unknown>;
|
|
38
|
+
|
|
39
|
+
export type Lib_RunScripts_Runner_ReadPackageJson_PackageJsonPath = string;
|
|
40
|
+
|
|
41
|
+
export type Lib_RunScripts_Runner_ReadPackageJson_Raw = string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Lib - Run Scripts - Run.
|
|
45
|
+
*
|
|
46
|
+
* @since 0.26.0
|
|
47
|
+
*/
|
|
48
|
+
export type Lib_RunScripts_Runner_Run_Options_Pattern = Shared_RunScriptsOptions_Pattern | undefined;
|
|
49
|
+
|
|
50
|
+
export type Lib_RunScripts_Runner_Run_Options_Sequential = Shared_RunScriptsOptions_Sequential;
|
|
51
|
+
|
|
52
|
+
export type Lib_RunScripts_Runner_Run_Options_Parallel = Shared_RunScriptsOptions_Parallel;
|
|
53
|
+
|
|
54
|
+
export type Lib_RunScripts_Runner_Run_Options_Buffer = Shared_RunScriptsOptions_Buffer;
|
|
55
|
+
|
|
56
|
+
export type Lib_RunScripts_Runner_Run_Options_PrintError = (message: string) => void;
|
|
57
|
+
|
|
58
|
+
export type Lib_RunScripts_Runner_Run_Options_PrintInfo = (message: string) => void;
|
|
59
|
+
|
|
60
|
+
export type Lib_RunScripts_Runner_Run_Options_PrintWarn = (message: string) => void;
|
|
61
|
+
|
|
62
|
+
export type Lib_RunScripts_Runner_Run_Options_WriteStderr = (message: string) => void;
|
|
63
|
+
|
|
64
|
+
export type Lib_RunScripts_Runner_Run_Options_WriteStdout = (message: string) => void;
|
|
65
|
+
|
|
66
|
+
export type Lib_RunScripts_Runner_Run_Options = {
|
|
67
|
+
pattern: Lib_RunScripts_Runner_Run_Options_Pattern;
|
|
68
|
+
sequential: Lib_RunScripts_Runner_Run_Options_Sequential;
|
|
69
|
+
parallel: Lib_RunScripts_Runner_Run_Options_Parallel;
|
|
70
|
+
buffer: Lib_RunScripts_Runner_Run_Options_Buffer;
|
|
71
|
+
printError: Lib_RunScripts_Runner_Run_Options_PrintError;
|
|
72
|
+
printInfo: Lib_RunScripts_Runner_Run_Options_PrintInfo;
|
|
73
|
+
printWarn: Lib_RunScripts_Runner_Run_Options_PrintWarn;
|
|
74
|
+
writeStderr: Lib_RunScripts_Runner_Run_Options_WriteStderr;
|
|
75
|
+
writeStdout: Lib_RunScripts_Runner_Run_Options_WriteStdout;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type Lib_RunScripts_Runner_Run_Returns = Promise<0 | 1>;
|
|
79
|
+
|
|
80
|
+
export type Lib_RunScripts_Runner_Run_Pattern = string;
|
|
81
|
+
|
|
82
|
+
export type Lib_RunScripts_Runner_Run_PackageJson = Record<string, unknown> | undefined;
|
|
83
|
+
|
|
84
|
+
export type Lib_RunScripts_Runner_Run_Scripts = Record<string, string> | undefined;
|
|
85
|
+
|
|
86
|
+
export type Lib_RunScripts_Runner_Run_MatchedScripts = string[];
|
|
87
|
+
|
|
88
|
+
export type Lib_RunScripts_Runner_Run_ExitCode = number;
|
|
89
|
+
|
|
90
|
+
export type Lib_RunScripts_Runner_Run_SpawnErrorMessage = string;
|
|
91
|
+
|
|
92
|
+
export type Lib_RunScripts_Runner_Run_BufferMs = number;
|
|
93
|
+
|
|
94
|
+
export type Lib_RunScripts_Runner_Run_ParallelExitCode = 0 | 1;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Lib - Run Scripts - Run Parallel.
|
|
98
|
+
*
|
|
99
|
+
* @since 0.26.0
|
|
100
|
+
*/
|
|
101
|
+
export type Lib_RunScripts_Runner_RunParallel_MatchedScripts = string[];
|
|
102
|
+
|
|
103
|
+
export type Lib_RunScripts_Runner_RunParallel_BufferMs = number;
|
|
104
|
+
|
|
105
|
+
export type Lib_RunScripts_Runner_RunParallel_WriteStderr = (message: string) => void;
|
|
106
|
+
|
|
107
|
+
export type Lib_RunScripts_Runner_RunParallel_WriteStdout = (message: string) => void;
|
|
108
|
+
|
|
109
|
+
export type Lib_RunScripts_Runner_RunParallel_Returns = Promise<0 | 1>;
|
|
110
|
+
|
|
111
|
+
export type Lib_RunScripts_Runner_RunParallel_NpmCommand = string;
|
|
112
|
+
|
|
113
|
+
export type Lib_RunScripts_Runner_RunParallel_ColorFunctions = ((text: string) => string)[];
|
|
114
|
+
|
|
115
|
+
export type Lib_RunScripts_Runner_RunParallel_Prefixes = Map<string, string>;
|
|
116
|
+
|
|
117
|
+
export type Lib_RunScripts_Runner_RunParallel_ColorIndex = number;
|
|
118
|
+
|
|
119
|
+
export type Lib_RunScripts_Runner_RunParallel_Script = string;
|
|
120
|
+
|
|
121
|
+
export type Lib_RunScripts_Runner_RunParallel_ColorFunction = (text: string) => string;
|
|
122
|
+
|
|
123
|
+
export type Lib_RunScripts_Runner_RunParallel_ColoredPrefix = string;
|
|
124
|
+
|
|
125
|
+
export type Lib_RunScripts_Runner_RunParallel_Queue_Script = string;
|
|
126
|
+
|
|
127
|
+
export type Lib_RunScripts_Runner_RunParallel_Queue_Stream = 'stdout' | 'stderr';
|
|
128
|
+
|
|
129
|
+
export type Lib_RunScripts_Runner_RunParallel_Queue_Line = string;
|
|
130
|
+
|
|
131
|
+
export type Lib_RunScripts_Runner_RunParallel_Queue = {
|
|
132
|
+
script: Lib_RunScripts_Runner_RunParallel_Queue_Script;
|
|
133
|
+
stream: Lib_RunScripts_Runner_RunParallel_Queue_Stream;
|
|
134
|
+
line: Lib_RunScripts_Runner_RunParallel_Queue_Line;
|
|
135
|
+
}[];
|
|
136
|
+
|
|
137
|
+
export type Lib_RunScripts_Runner_RunParallel_PartialLines = Map<string, Lib_RunScripts_Runner_RunParallel_ScriptPartialLines>;
|
|
138
|
+
|
|
139
|
+
export type Lib_RunScripts_Runner_RunParallel_Children = ChildProcessWithoutNullStreams[];
|
|
140
|
+
|
|
141
|
+
export type Lib_RunScripts_Runner_RunParallel_ExitPromises = Promise<number>[];
|
|
142
|
+
|
|
143
|
+
export type Lib_RunScripts_Runner_RunParallel_LastFlushedScript = string;
|
|
144
|
+
|
|
145
|
+
export type Lib_RunScripts_Runner_RunParallel_FlushQueue = () => void;
|
|
146
|
+
|
|
147
|
+
export type Lib_RunScripts_Runner_RunParallel_Child = ChildProcessWithoutNullStreams;
|
|
148
|
+
|
|
149
|
+
export type Lib_RunScripts_Runner_RunParallel_ScriptPartialLines = Map<'stdout' | 'stderr', string>;
|
|
150
|
+
|
|
151
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleData = (data: Buffer, stream: 'stdout' | 'stderr') => void;
|
|
152
|
+
|
|
153
|
+
export type Lib_RunScripts_Runner_RunParallel_ExitPromise = Promise<number>;
|
|
154
|
+
|
|
155
|
+
export type Lib_RunScripts_Runner_RunParallel_FlushInterval = ReturnType<typeof setInterval>;
|
|
156
|
+
|
|
157
|
+
export type Lib_RunScripts_Runner_RunParallel_ForwardSignal = (signal: NodeJS.Signals) => void;
|
|
158
|
+
|
|
159
|
+
export type Lib_RunScripts_Runner_RunParallel_SIGINT_Returns = void;
|
|
160
|
+
|
|
161
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleSigint = () => void;
|
|
162
|
+
|
|
163
|
+
export type Lib_RunScripts_Runner_RunParallel_SIGTERM_Returns = void;
|
|
164
|
+
|
|
165
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleSigterm = () => void;
|
|
166
|
+
|
|
167
|
+
export type Lib_RunScripts_Runner_RunParallel_ExitResults = PromiseSettledResult<number>[];
|
|
168
|
+
|
|
169
|
+
export type Lib_RunScripts_Runner_RunParallel_Failed = boolean;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Lib - Run Scripts - Run Parallel - Close.
|
|
173
|
+
*
|
|
174
|
+
* @since 0.26.0
|
|
175
|
+
*/
|
|
176
|
+
export type Lib_RunScripts_Runner_RunParallel_Close_PartialLineStreams = Map<'stdout' | 'stderr', string>;
|
|
177
|
+
|
|
178
|
+
export type Lib_RunScripts_Runner_RunParallel_Close_StdoutPartial = string;
|
|
179
|
+
|
|
180
|
+
export type Lib_RunScripts_Runner_RunParallel_Close_StderrPartial = string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Lib - Run Scripts - Run Parallel - Data.
|
|
184
|
+
*
|
|
185
|
+
* @since 0.26.0
|
|
186
|
+
*/
|
|
187
|
+
export type Lib_RunScripts_Runner_RunParallel_Data_Returns = void;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Lib - Run Scripts - Run Parallel - Error.
|
|
191
|
+
*
|
|
192
|
+
* @since 0.26.0
|
|
193
|
+
*/
|
|
194
|
+
export type Lib_RunScripts_Runner_RunParallel_Error_Returns = void;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Lib - Run Scripts - Run Parallel - Flush Queue.
|
|
198
|
+
*
|
|
199
|
+
* @since 0.26.0
|
|
200
|
+
*/
|
|
201
|
+
export type Lib_RunScripts_Runner_RunParallel_FlushQueue_Prefix = string;
|
|
202
|
+
|
|
203
|
+
export type Lib_RunScripts_Runner_RunParallel_FlushQueue_FormattedLine = string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Lib - Run Scripts - Run Parallel - Forward Signal.
|
|
207
|
+
*
|
|
208
|
+
* @since 0.26.0
|
|
209
|
+
*/
|
|
210
|
+
export type Lib_RunScripts_Runner_RunParallel_ForwardSignal_Returns = void;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Lib - Run Scripts - Run Parallel - Handle Data.
|
|
214
|
+
*
|
|
215
|
+
* @since 0.26.0
|
|
216
|
+
*/
|
|
217
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleData_PartialLineStreams = Map<'stdout' | 'stderr', string>;
|
|
218
|
+
|
|
219
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleData_Text = string;
|
|
220
|
+
|
|
221
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleData_Lines = string[];
|
|
222
|
+
|
|
223
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleData_Partial = string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Lib - Run Scripts - Run Parallel - Handle SIGINT.
|
|
227
|
+
*
|
|
228
|
+
* @since 0.26.0
|
|
229
|
+
*/
|
|
230
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleSigint_Returns = void;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Lib - Run Scripts - Run Parallel - Handle SIGTERM.
|
|
234
|
+
*
|
|
235
|
+
* @since 0.26.0
|
|
236
|
+
*/
|
|
237
|
+
export type Lib_RunScripts_Runner_RunParallel_HandleSigterm_Returns = void;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Lib - Run Scripts - Spawn Script.
|
|
241
|
+
*
|
|
242
|
+
* @since 0.26.0
|
|
243
|
+
*/
|
|
244
|
+
export type Lib_RunScripts_Runner_SpawnScript_Script = string;
|
|
245
|
+
|
|
246
|
+
export type Lib_RunScripts_Runner_SpawnScript_Returns = Promise<number>;
|
|
247
|
+
|
|
248
|
+
export type Lib_RunScripts_Runner_SpawnScript_NpmCommand = string;
|
|
249
|
+
|
|
250
|
+
export type Lib_RunScripts_Runner_SpawnScript_Child = ChildProcess;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Lib - Run Scripts - Spawn Script - Close.
|
|
254
|
+
*
|
|
255
|
+
* @since 0.26.0
|
|
256
|
+
*/
|
|
257
|
+
export type Lib_RunScripts_Runner_SpawnScript_Close_ExitCode = number;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Lib - Run Scripts - Spawn Script - Error.
|
|
261
|
+
*
|
|
262
|
+
* @since 0.26.0
|
|
263
|
+
*/
|
|
264
|
+
export type Lib_RunScripts_Runner_SpawnScript_Error_Returns = void;
|
|
@@ -24,6 +24,8 @@ import type {
|
|
|
24
24
|
Shared_GeneratorRunResult,
|
|
25
25
|
Shared_MonorepoContext,
|
|
26
26
|
Shared_ScaffoldConfig,
|
|
27
|
+
Shared_ScaffoldExistingRoot,
|
|
28
|
+
Shared_ScaffoldTemplateQuestions,
|
|
27
29
|
} from '../shared.d.ts';
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -112,9 +114,71 @@ export type Lib_Scaffold_DetectMonorepoContext_Locations = string[];
|
|
|
112
114
|
|
|
113
115
|
export type Lib_Scaffold_DetectMonorepoContext_PackageJsonPath = string;
|
|
114
116
|
|
|
117
|
+
export type Lib_Scaffold_DetectMonorepoContext_ParsedPackageJson = Record<string, unknown>;
|
|
118
|
+
|
|
115
119
|
export type Lib_Scaffold_DetectMonorepoContext_PackageJsonRaw = string;
|
|
116
120
|
|
|
117
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Lib - Scaffold - Find File Conflicts.
|
|
123
|
+
*
|
|
124
|
+
* @since 0.26.0
|
|
125
|
+
*/
|
|
126
|
+
export type Lib_Scaffold_FindFileConflicts_PlannedPaths = string[];
|
|
127
|
+
|
|
128
|
+
export type Lib_Scaffold_FindFileConflicts_Returns = Promise<string[]>;
|
|
129
|
+
|
|
130
|
+
export type Lib_Scaffold_FindFileConflicts_Exists = boolean[];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Lib - Scaffold - Load Existing Root.
|
|
134
|
+
*
|
|
135
|
+
* @since 0.26.0
|
|
136
|
+
*/
|
|
137
|
+
export type Lib_Scaffold_LoadExistingRoot_RootDirectory = string;
|
|
138
|
+
|
|
139
|
+
export type Lib_Scaffold_LoadExistingRoot_Returns = Promise<Shared_ScaffoldExistingRoot | undefined>;
|
|
140
|
+
|
|
141
|
+
export type Lib_Scaffold_LoadExistingRoot_PackageJsonPath = string;
|
|
142
|
+
|
|
143
|
+
export type Lib_Scaffold_LoadExistingRoot_ConfigFilePath = string;
|
|
144
|
+
|
|
145
|
+
export type Lib_Scaffold_LoadExistingRoot_ParsedPackageJson = unknown;
|
|
146
|
+
|
|
147
|
+
export type Lib_Scaffold_LoadExistingRoot_PackageJsonRaw = string;
|
|
148
|
+
|
|
149
|
+
export type Lib_Scaffold_LoadExistingRoot_PackageJson = Record<string, unknown>;
|
|
150
|
+
|
|
151
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacesValue = unknown;
|
|
152
|
+
|
|
153
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacePatterns = string[] | undefined;
|
|
154
|
+
|
|
155
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacePatternsResolved = string[];
|
|
156
|
+
|
|
157
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacesObject = Record<string, unknown>;
|
|
158
|
+
|
|
159
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacePatternsValue = unknown;
|
|
160
|
+
|
|
161
|
+
export type Lib_Scaffold_LoadExistingRoot_ParsedConfig = unknown;
|
|
162
|
+
|
|
163
|
+
export type Lib_Scaffold_LoadExistingRoot_ConfigRaw = string;
|
|
164
|
+
|
|
165
|
+
export type Lib_Scaffold_LoadExistingRoot_Config = Record<string, unknown>;
|
|
166
|
+
|
|
167
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectValue = unknown;
|
|
168
|
+
|
|
169
|
+
export type Lib_Scaffold_LoadExistingRoot_Project = Record<string, unknown>;
|
|
170
|
+
|
|
171
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectNameValue = unknown;
|
|
172
|
+
|
|
173
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectName = Record<string, unknown>;
|
|
174
|
+
|
|
175
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectSlugValue = unknown;
|
|
176
|
+
|
|
177
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectSlug = string;
|
|
178
|
+
|
|
179
|
+
export type Lib_Scaffold_LoadExistingRoot_ConfigWorkspacesValue = unknown;
|
|
180
|
+
|
|
181
|
+
export type Lib_Scaffold_LoadExistingRoot_ConfigWorkspaces = Record<string, unknown>;
|
|
118
182
|
|
|
119
183
|
/**
|
|
120
184
|
* Lib - Scaffold - Load Generator.
|
|
@@ -145,6 +209,21 @@ export type Lib_Scaffold_LoadGenerator_IssueTemplateModule = typeof IssueTemplat
|
|
|
145
209
|
|
|
146
210
|
export type Lib_Scaffold_LoadGenerator_WorkflowsModule = typeof WorkflowsModule;
|
|
147
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Lib - Scaffold - Normalize Workspace Relative Path.
|
|
214
|
+
*
|
|
215
|
+
* @since 0.26.0
|
|
216
|
+
*/
|
|
217
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_RootDirectory = string;
|
|
218
|
+
|
|
219
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_WorkspaceDirectory = string;
|
|
220
|
+
|
|
221
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_Returns = string | undefined;
|
|
222
|
+
|
|
223
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_RelativePath = string;
|
|
224
|
+
|
|
225
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_NormalizedPath = string;
|
|
226
|
+
|
|
148
227
|
/**
|
|
149
228
|
* Lib - Scaffold - Prompt Post Scaffold Generators.
|
|
150
229
|
*
|
|
@@ -283,7 +362,7 @@ export type Lib_Scaffold_RegisterWorkspaceInConfig_WorkspaceRelPath = string;
|
|
|
283
362
|
|
|
284
363
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_WorkspaceName = string;
|
|
285
364
|
|
|
286
|
-
export type Lib_Scaffold_RegisterWorkspaceInConfig_Category =
|
|
365
|
+
export type Lib_Scaffold_RegisterWorkspaceInConfig_Category = 'app' | 'docs';
|
|
287
366
|
|
|
288
367
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_Returns = Promise<void>;
|
|
289
368
|
|
|
@@ -297,18 +376,65 @@ export type Lib_Scaffold_RegisterWorkspaceInConfig_ProjectName = Record<string,
|
|
|
297
376
|
|
|
298
377
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_ProjectSlug = string | undefined;
|
|
299
378
|
|
|
300
|
-
export type Lib_Scaffold_RegisterWorkspaceInConfig_Role =
|
|
379
|
+
export type Lib_Scaffold_RegisterWorkspaceInConfig_Role = 'app' | 'docs';
|
|
301
380
|
|
|
302
381
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_ConfigName = string;
|
|
303
382
|
|
|
304
|
-
export type Lib_Scaffold_RegisterWorkspaceInConfig_Workspaces = Record<string, unknown>;
|
|
305
|
-
|
|
306
383
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_ParsedWorkspaces = Lib_Scaffold_RegisterWorkspaceInConfig_Workspaces | undefined;
|
|
307
384
|
|
|
385
|
+
export type Lib_Scaffold_RegisterWorkspaceInConfig_Workspaces = Record<string, unknown>;
|
|
386
|
+
|
|
308
387
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_Json = string;
|
|
309
388
|
|
|
310
389
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_JsonContents = string;
|
|
311
390
|
|
|
391
|
+
/**
|
|
392
|
+
* Lib - Scaffold - Report Error.
|
|
393
|
+
*
|
|
394
|
+
* @since 0.26.0
|
|
395
|
+
*/
|
|
396
|
+
export type Lib_Scaffold_ReportError_Message = string;
|
|
397
|
+
|
|
398
|
+
export type Lib_Scaffold_ReportError_Returns = void;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Lib - Scaffold - Resolve Template Answers.
|
|
402
|
+
*
|
|
403
|
+
* @since 0.26.0
|
|
404
|
+
*/
|
|
405
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Options = object;
|
|
406
|
+
|
|
407
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Questions = Shared_ScaffoldTemplateQuestions;
|
|
408
|
+
|
|
409
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_IsNonInteractive = boolean;
|
|
410
|
+
|
|
411
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Returns = Promise<Map<RegExp, string> | undefined>;
|
|
412
|
+
|
|
413
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Replacements = Map<RegExp, string>;
|
|
414
|
+
|
|
415
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_ProvidedValue = unknown;
|
|
416
|
+
|
|
417
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_ResolvedValue = string | undefined;
|
|
418
|
+
|
|
419
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_AllowedValues = string;
|
|
420
|
+
|
|
421
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Answers = Record<string, unknown>;
|
|
422
|
+
|
|
423
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Answer = unknown;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Lib - Scaffold - Resolve Workspace Package Name.
|
|
427
|
+
*
|
|
428
|
+
* @since 0.26.0
|
|
429
|
+
*/
|
|
430
|
+
export type Lib_Scaffold_ResolveWorkspacePackageName_ProjectSlug = string;
|
|
431
|
+
|
|
432
|
+
export type Lib_Scaffold_ResolveWorkspacePackageName_WorkspaceName = string;
|
|
433
|
+
|
|
434
|
+
export type Lib_Scaffold_ResolveWorkspacePackageName_Category = 'app' | 'docs';
|
|
435
|
+
|
|
436
|
+
export type Lib_Scaffold_ResolveWorkspacePackageName_Returns = string;
|
|
437
|
+
|
|
312
438
|
/**
|
|
313
439
|
* Lib - Scaffold - Run Scaffold.
|
|
314
440
|
*
|
|
@@ -318,6 +444,8 @@ export type Lib_Scaffold_RunScaffold_Options_DryRun = true;
|
|
|
318
444
|
|
|
319
445
|
export type Lib_Scaffold_RunScaffold_Options_Name = string;
|
|
320
446
|
|
|
447
|
+
export type Lib_Scaffold_RunScaffold_Options_NonInteractive = true;
|
|
448
|
+
|
|
321
449
|
export type Lib_Scaffold_RunScaffold_Options_Output = string;
|
|
322
450
|
|
|
323
451
|
export type Lib_Scaffold_RunScaffold_Options_WorkspaceName = string;
|
|
@@ -325,11 +453,12 @@ export type Lib_Scaffold_RunScaffold_Options_WorkspaceName = string;
|
|
|
325
453
|
export type Lib_Scaffold_RunScaffold_Options = {
|
|
326
454
|
dryRun?: Lib_Scaffold_RunScaffold_Options_DryRun;
|
|
327
455
|
name?: Lib_Scaffold_RunScaffold_Options_Name;
|
|
456
|
+
nonInteractive?: Lib_Scaffold_RunScaffold_Options_NonInteractive;
|
|
328
457
|
output?: Lib_Scaffold_RunScaffold_Options_Output;
|
|
329
458
|
workspaceName?: Lib_Scaffold_RunScaffold_Options_WorkspaceName;
|
|
330
459
|
};
|
|
331
460
|
|
|
332
|
-
export type Lib_Scaffold_RunScaffold_Category =
|
|
461
|
+
export type Lib_Scaffold_RunScaffold_Category = 'app' | 'docs';
|
|
333
462
|
|
|
334
463
|
export type Lib_Scaffold_RunScaffold_TypeName = string;
|
|
335
464
|
|
|
@@ -337,29 +466,77 @@ export type Lib_Scaffold_RunScaffold_TemplateSubpath = string;
|
|
|
337
466
|
|
|
338
467
|
export type Lib_Scaffold_RunScaffold_ImportMetaUrl = string;
|
|
339
468
|
|
|
469
|
+
export type Lib_Scaffold_RunScaffold_TemplateQuestions = Shared_ScaffoldTemplateQuestions;
|
|
470
|
+
|
|
340
471
|
export type Lib_Scaffold_RunScaffold_Returns = Promise<void>;
|
|
341
472
|
|
|
342
473
|
export type Lib_Scaffold_RunScaffold_CurrentDirectory = string;
|
|
343
474
|
|
|
344
475
|
export type Lib_Scaffold_RunScaffold_IsDryRun = boolean;
|
|
345
476
|
|
|
477
|
+
export type Lib_Scaffold_RunScaffold_IsNonInteractive = boolean;
|
|
478
|
+
|
|
346
479
|
export type Lib_Scaffold_RunScaffold_Context = Shared_MonorepoContext;
|
|
347
480
|
|
|
481
|
+
export type Lib_Scaffold_RunScaffold_ExistingRoot = Shared_ScaffoldExistingRoot | undefined;
|
|
482
|
+
|
|
483
|
+
export type Lib_Scaffold_RunScaffold_ConfigNameDefault = string | undefined;
|
|
484
|
+
|
|
348
485
|
export type Lib_Scaffold_RunScaffold_Config = Shared_ScaffoldConfig | undefined;
|
|
349
486
|
|
|
350
|
-
export type
|
|
487
|
+
export type Lib_Scaffold_RunScaffold_ProjectSlug = string;
|
|
488
|
+
|
|
489
|
+
export type Lib_Scaffold_RunScaffold_WorkspacePackageName = string;
|
|
490
|
+
|
|
491
|
+
export type Lib_Scaffold_RunScaffold_ConfigRoot = string;
|
|
492
|
+
|
|
493
|
+
export type Lib_Scaffold_RunScaffold_ConfigFilePath = string;
|
|
351
494
|
|
|
352
495
|
export type Lib_Scaffold_RunScaffold_WorkspaceDirectory = string;
|
|
353
496
|
|
|
497
|
+
export type Lib_Scaffold_RunScaffold_WorkspaceRelPath = string | undefined;
|
|
498
|
+
|
|
499
|
+
export type Lib_Scaffold_RunScaffold_NormalizedWorkspaceRelPath = string;
|
|
500
|
+
|
|
501
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceEntries = [string, unknown][];
|
|
502
|
+
|
|
503
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspacePath = string;
|
|
504
|
+
|
|
505
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceValue = unknown;
|
|
506
|
+
|
|
507
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceNormalizedPath = string;
|
|
508
|
+
|
|
509
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspace = Record<string, unknown>;
|
|
510
|
+
|
|
511
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceName = unknown;
|
|
512
|
+
|
|
513
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceRole = unknown;
|
|
514
|
+
|
|
354
515
|
export type Lib_Scaffold_RunScaffold_TemplateDirectory = string;
|
|
355
516
|
|
|
517
|
+
export type Lib_Scaffold_RunScaffold_TemplateEntries = string[];
|
|
518
|
+
|
|
519
|
+
export type Lib_Scaffold_RunScaffold_PlannedPaths = string[];
|
|
520
|
+
|
|
521
|
+
export type Lib_Scaffold_RunScaffold_ConflictingPaths = string[];
|
|
522
|
+
|
|
523
|
+
export type Lib_Scaffold_RunScaffold_ConflictMessage = string;
|
|
524
|
+
|
|
525
|
+
export type Lib_Scaffold_RunScaffold_IsWorkspaceCovered = boolean;
|
|
526
|
+
|
|
527
|
+
export type Lib_Scaffold_RunScaffold_NormalizedWorkspacePattern = string;
|
|
528
|
+
|
|
529
|
+
export type Lib_Scaffold_RunScaffold_TemplateReplacements = Map<RegExp, string> | undefined;
|
|
530
|
+
|
|
356
531
|
export type Lib_Scaffold_RunScaffold_Replacements = Map<RegExp, string>;
|
|
357
532
|
|
|
358
|
-
export type
|
|
533
|
+
export type Lib_Scaffold_RunScaffold_RootPackageJsonPath = string;
|
|
359
534
|
|
|
360
|
-
export type
|
|
535
|
+
export type Lib_Scaffold_RunScaffold_RootWorkspacesValue = unknown;
|
|
536
|
+
|
|
537
|
+
export type Lib_Scaffold_RunScaffold_RootWorkspacesObject = Record<string, unknown>;
|
|
361
538
|
|
|
362
|
-
export type
|
|
539
|
+
export type Lib_Scaffold_RunScaffold_RootPackageJsonContents = string;
|
|
363
540
|
|
|
364
541
|
/**
|
|
365
542
|
* Lib - Scaffold - Write Template Files.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Diagnostic,
|
|
3
|
+
LineAndCharacter,
|
|
4
|
+
ParsedCommandLine,
|
|
5
|
+
Program,
|
|
6
|
+
} from 'typescript';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Lib - Type Check - Filter Diagnostics.
|
|
10
|
+
*
|
|
11
|
+
* @since 0.26.0
|
|
12
|
+
*/
|
|
13
|
+
export type Lib_TypeCheck_FilterDiagnostics_Diagnostics = readonly Diagnostic[];
|
|
14
|
+
|
|
15
|
+
export type Lib_TypeCheck_FilterDiagnostics_CurrentDirectory = string;
|
|
16
|
+
|
|
17
|
+
export type Lib_TypeCheck_FilterDiagnostics_Returns = Diagnostic[];
|
|
18
|
+
|
|
19
|
+
export type Lib_TypeCheck_FilterDiagnostics_FileName = string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Lib - Type Check - Get Config Path.
|
|
23
|
+
*
|
|
24
|
+
* @since 0.26.0
|
|
25
|
+
*/
|
|
26
|
+
export type Lib_TypeCheck_GetConfigPath_Project = string | undefined;
|
|
27
|
+
|
|
28
|
+
export type Lib_TypeCheck_GetConfigPath_CurrentDirectory = string;
|
|
29
|
+
|
|
30
|
+
export type Lib_TypeCheck_GetConfigPath_Returns = string | undefined;
|
|
31
|
+
|
|
32
|
+
export type Lib_TypeCheck_GetConfigPath_Resolved = string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Lib - Type Check - Get Diagnostics.
|
|
36
|
+
*
|
|
37
|
+
* @since 0.26.0
|
|
38
|
+
*/
|
|
39
|
+
export type Lib_TypeCheck_GetDiagnostics_Program = Program;
|
|
40
|
+
|
|
41
|
+
export type Lib_TypeCheck_GetDiagnostics_Returns = readonly Diagnostic[];
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Lib - Type Check - Print Diagnostics.
|
|
45
|
+
*
|
|
46
|
+
* @since 0.26.0
|
|
47
|
+
*/
|
|
48
|
+
export type Lib_TypeCheck_PrintDiagnostics_Diagnostics = readonly Diagnostic[];
|
|
49
|
+
|
|
50
|
+
export type Lib_TypeCheck_PrintDiagnostics_PrintError = (message: string) => void;
|
|
51
|
+
|
|
52
|
+
export type Lib_TypeCheck_PrintDiagnostics_PrintInfo = (message: string) => void;
|
|
53
|
+
|
|
54
|
+
export type Lib_TypeCheck_PrintDiagnostics_Returns = void;
|
|
55
|
+
|
|
56
|
+
export type Lib_TypeCheck_PrintDiagnostics_FileSet = Set<string>;
|
|
57
|
+
|
|
58
|
+
export type Lib_TypeCheck_PrintDiagnostics_FileName = string;
|
|
59
|
+
|
|
60
|
+
export type Lib_TypeCheck_PrintDiagnostics_Message = string;
|
|
61
|
+
|
|
62
|
+
export type Lib_TypeCheck_PrintDiagnostics_Position = LineAndCharacter;
|
|
63
|
+
|
|
64
|
+
export type Lib_TypeCheck_PrintDiagnostics_Line = number;
|
|
65
|
+
|
|
66
|
+
export type Lib_TypeCheck_PrintDiagnostics_Character = number;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Lib - Type Check - Run Type Check.
|
|
70
|
+
*
|
|
71
|
+
* @since 0.26.0
|
|
72
|
+
*/
|
|
73
|
+
export type Lib_TypeCheck_RunTypeCheck_Options_Project = string | undefined;
|
|
74
|
+
|
|
75
|
+
export type Lib_TypeCheck_RunTypeCheck_Options_PrintError = (message: string) => void;
|
|
76
|
+
|
|
77
|
+
export type Lib_TypeCheck_RunTypeCheck_Options_PrintInfo = (message: string) => void;
|
|
78
|
+
|
|
79
|
+
export type Lib_TypeCheck_RunTypeCheck_Options = {
|
|
80
|
+
project: Lib_TypeCheck_RunTypeCheck_Options_Project;
|
|
81
|
+
printError: Lib_TypeCheck_RunTypeCheck_Options_PrintError;
|
|
82
|
+
printInfo: Lib_TypeCheck_RunTypeCheck_Options_PrintInfo;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type Lib_TypeCheck_RunTypeCheck_Returns = 0 | 1;
|
|
86
|
+
|
|
87
|
+
export type Lib_TypeCheck_RunTypeCheck_CurrentDirectory = string;
|
|
88
|
+
|
|
89
|
+
export type Lib_TypeCheck_RunTypeCheck_ConfigPath = string | undefined;
|
|
90
|
+
|
|
91
|
+
export type Lib_TypeCheck_RunTypeCheck_ConfigResult = {
|
|
92
|
+
config?: unknown;
|
|
93
|
+
error?: Diagnostic;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export type Lib_TypeCheck_RunTypeCheck_Config = unknown;
|
|
97
|
+
|
|
98
|
+
export type Lib_TypeCheck_RunTypeCheck_Parsed = ParsedCommandLine;
|
|
99
|
+
|
|
100
|
+
export type Lib_TypeCheck_RunTypeCheck_Program = Program;
|
|
101
|
+
|
|
102
|
+
export type Lib_TypeCheck_RunTypeCheck_FilteredDiagnostics = Diagnostic[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { Stats } from 'node:fs';
|
|
2
|
+
|
|
1
3
|
import type { TSESTree } from '@typescript-eslint/utils';
|
|
2
4
|
import type { RuleContext } from '@typescript-eslint/utils/ts-eslint';
|
|
3
5
|
|
|
@@ -70,6 +72,8 @@ export type Rules_Eslint_Regex_NoRegexLiterals_Runner_Create_Options = Readonly<
|
|
|
70
72
|
regexFile: Rules_Eslint_Regex_NoRegexLiterals_Runner_Create_Options_RegexFile;
|
|
71
73
|
}>;
|
|
72
74
|
|
|
75
|
+
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_Create_RegexFilePath = string | undefined;
|
|
76
|
+
|
|
73
77
|
/**
|
|
74
78
|
* Rules - ESLint - Regex - No Regex Literals - Create - Call Expression.
|
|
75
79
|
*
|
|
@@ -96,3 +100,20 @@ export type Rules_Eslint_Regex_NoRegexLiterals_Runner_Create_Literal_Returns = v
|
|
|
96
100
|
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_Create_NewExpression_Node = TSESTree.NewExpression;
|
|
97
101
|
|
|
98
102
|
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_Create_NewExpression_Returns = void;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Rules - ESLint - Regex - No Regex Literals - Resolve Regex File.
|
|
106
|
+
*
|
|
107
|
+
* @since 0.26.0
|
|
108
|
+
*/
|
|
109
|
+
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_ResolveRegexFile_Context = Readonly<RuleContext<string, readonly unknown[]>>;
|
|
110
|
+
|
|
111
|
+
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_ResolveRegexFile_RegexFile = string;
|
|
112
|
+
|
|
113
|
+
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_ResolveRegexFile_Returns = string | undefined;
|
|
114
|
+
|
|
115
|
+
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_ResolveRegexFile_RegexFilePath = string;
|
|
116
|
+
|
|
117
|
+
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_ResolveRegexFile_RegexFileStats = Stats;
|
|
118
|
+
|
|
119
|
+
export type Rules_Eslint_Regex_NoRegexLiterals_Runner_ResolveRegexFile_IsRegexFile = boolean;
|