@cbnventures/nova 0.25.2 → 0.27.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 +17 -14
- 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 +105 -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 +25 -0
- package/build/src/cli/recipe/index.js.map +1 -1
- package/build/src/cli/recipe/miscellaneous/fix-markdown-tables.d.ts +10 -0
- package/build/src/cli/recipe/miscellaneous/fix-markdown-tables.d.ts.map +1 -0
- package/build/src/cli/recipe/miscellaneous/fix-markdown-tables.js +252 -0
- package/build/src/cli/recipe/miscellaneous/fix-markdown-tables.js.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-tooling.js +40 -0
- package/build/src/cli/recipe/package-json/normalize-tooling.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 +58 -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 +489 -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/index.d.ts +6 -0
- 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/index.d.ts +2 -1
- package/build/src/types/cli/recipe/miscellaneous/fix-markdown-tables.d.ts +188 -0
- package/build/src/types/cli/recipe/package-json/normalize-tooling.d.ts +28 -2
- 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 +193 -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 +283 -0
- package/build/src/types/tests/cli/recipe/miscellaneous/fix-markdown-tables.test.d.ts +106 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +56 -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 +46 -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 +155 -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 +13 -5
- package/build/templates/scaffold/app/express/tsconfig.json +1 -0
- package/build/templates/scaffold/app/nextjs/package.json +20 -12
- package/build/templates/scaffold/app/nextjs/tsconfig.json +3 -2
- package/build/templates/scaffold/app/vite/package.json +15 -6
- package/build/templates/scaffold/app/workers/package.json +15 -7
- 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 +29 -15
- 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 +17 -14
- /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
|
/**
|
|
@@ -74,6 +76,12 @@ export type Lib_Scaffold_CreateMonorepoRoot_PackageJsonPath = string;
|
|
|
74
76
|
|
|
75
77
|
export type Lib_Scaffold_CreateMonorepoRoot_PackageJsonRelativePath = string;
|
|
76
78
|
|
|
79
|
+
export type Lib_Scaffold_CreateMonorepoRoot_TurboJsonContent = Record<string, unknown>;
|
|
80
|
+
|
|
81
|
+
export type Lib_Scaffold_CreateMonorepoRoot_TurboJsonPath = string;
|
|
82
|
+
|
|
83
|
+
export type Lib_Scaffold_CreateMonorepoRoot_TurboJsonRelativePath = string;
|
|
84
|
+
|
|
77
85
|
export type Lib_Scaffold_CreateMonorepoRoot_ProjectTitle = string;
|
|
78
86
|
|
|
79
87
|
export type Lib_Scaffold_CreateMonorepoRoot_NovaConfigContent = Record<string, unknown>;
|
|
@@ -112,9 +120,71 @@ export type Lib_Scaffold_DetectMonorepoContext_Locations = string[];
|
|
|
112
120
|
|
|
113
121
|
export type Lib_Scaffold_DetectMonorepoContext_PackageJsonPath = string;
|
|
114
122
|
|
|
123
|
+
export type Lib_Scaffold_DetectMonorepoContext_ParsedPackageJson = Record<string, unknown>;
|
|
124
|
+
|
|
115
125
|
export type Lib_Scaffold_DetectMonorepoContext_PackageJsonRaw = string;
|
|
116
126
|
|
|
117
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Lib - Scaffold - Find File Conflicts.
|
|
129
|
+
*
|
|
130
|
+
* @since 0.26.0
|
|
131
|
+
*/
|
|
132
|
+
export type Lib_Scaffold_FindFileConflicts_PlannedPaths = string[];
|
|
133
|
+
|
|
134
|
+
export type Lib_Scaffold_FindFileConflicts_Returns = Promise<string[]>;
|
|
135
|
+
|
|
136
|
+
export type Lib_Scaffold_FindFileConflicts_Exists = boolean[];
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Lib - Scaffold - Load Existing Root.
|
|
140
|
+
*
|
|
141
|
+
* @since 0.26.0
|
|
142
|
+
*/
|
|
143
|
+
export type Lib_Scaffold_LoadExistingRoot_RootDirectory = string;
|
|
144
|
+
|
|
145
|
+
export type Lib_Scaffold_LoadExistingRoot_Returns = Promise<Shared_ScaffoldExistingRoot | undefined>;
|
|
146
|
+
|
|
147
|
+
export type Lib_Scaffold_LoadExistingRoot_PackageJsonPath = string;
|
|
148
|
+
|
|
149
|
+
export type Lib_Scaffold_LoadExistingRoot_ConfigFilePath = string;
|
|
150
|
+
|
|
151
|
+
export type Lib_Scaffold_LoadExistingRoot_ParsedPackageJson = unknown;
|
|
152
|
+
|
|
153
|
+
export type Lib_Scaffold_LoadExistingRoot_PackageJsonRaw = string;
|
|
154
|
+
|
|
155
|
+
export type Lib_Scaffold_LoadExistingRoot_PackageJson = Record<string, unknown>;
|
|
156
|
+
|
|
157
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacesValue = unknown;
|
|
158
|
+
|
|
159
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacePatterns = string[] | undefined;
|
|
160
|
+
|
|
161
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacePatternsResolved = string[];
|
|
162
|
+
|
|
163
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacesObject = Record<string, unknown>;
|
|
164
|
+
|
|
165
|
+
export type Lib_Scaffold_LoadExistingRoot_WorkspacePatternsValue = unknown;
|
|
166
|
+
|
|
167
|
+
export type Lib_Scaffold_LoadExistingRoot_ParsedConfig = unknown;
|
|
168
|
+
|
|
169
|
+
export type Lib_Scaffold_LoadExistingRoot_ConfigRaw = string;
|
|
170
|
+
|
|
171
|
+
export type Lib_Scaffold_LoadExistingRoot_Config = Record<string, unknown>;
|
|
172
|
+
|
|
173
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectValue = unknown;
|
|
174
|
+
|
|
175
|
+
export type Lib_Scaffold_LoadExistingRoot_Project = Record<string, unknown>;
|
|
176
|
+
|
|
177
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectNameValue = unknown;
|
|
178
|
+
|
|
179
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectName = Record<string, unknown>;
|
|
180
|
+
|
|
181
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectSlugValue = unknown;
|
|
182
|
+
|
|
183
|
+
export type Lib_Scaffold_LoadExistingRoot_ProjectSlug = string;
|
|
184
|
+
|
|
185
|
+
export type Lib_Scaffold_LoadExistingRoot_ConfigWorkspacesValue = unknown;
|
|
186
|
+
|
|
187
|
+
export type Lib_Scaffold_LoadExistingRoot_ConfigWorkspaces = Record<string, unknown>;
|
|
118
188
|
|
|
119
189
|
/**
|
|
120
190
|
* Lib - Scaffold - Load Generator.
|
|
@@ -145,6 +215,21 @@ export type Lib_Scaffold_LoadGenerator_IssueTemplateModule = typeof IssueTemplat
|
|
|
145
215
|
|
|
146
216
|
export type Lib_Scaffold_LoadGenerator_WorkflowsModule = typeof WorkflowsModule;
|
|
147
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Lib - Scaffold - Normalize Workspace Relative Path.
|
|
220
|
+
*
|
|
221
|
+
* @since 0.26.0
|
|
222
|
+
*/
|
|
223
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_RootDirectory = string;
|
|
224
|
+
|
|
225
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_WorkspaceDirectory = string;
|
|
226
|
+
|
|
227
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_Returns = string | undefined;
|
|
228
|
+
|
|
229
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_RelativePath = string;
|
|
230
|
+
|
|
231
|
+
export type Lib_Scaffold_NormalizeWorkspaceRelativePath_NormalizedPath = string;
|
|
232
|
+
|
|
148
233
|
/**
|
|
149
234
|
* Lib - Scaffold - Prompt Post Scaffold Generators.
|
|
150
235
|
*
|
|
@@ -283,7 +368,7 @@ export type Lib_Scaffold_RegisterWorkspaceInConfig_WorkspaceRelPath = string;
|
|
|
283
368
|
|
|
284
369
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_WorkspaceName = string;
|
|
285
370
|
|
|
286
|
-
export type Lib_Scaffold_RegisterWorkspaceInConfig_Category =
|
|
371
|
+
export type Lib_Scaffold_RegisterWorkspaceInConfig_Category = 'app' | 'docs';
|
|
287
372
|
|
|
288
373
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_Returns = Promise<void>;
|
|
289
374
|
|
|
@@ -297,18 +382,65 @@ export type Lib_Scaffold_RegisterWorkspaceInConfig_ProjectName = Record<string,
|
|
|
297
382
|
|
|
298
383
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_ProjectSlug = string | undefined;
|
|
299
384
|
|
|
300
|
-
export type Lib_Scaffold_RegisterWorkspaceInConfig_Role =
|
|
385
|
+
export type Lib_Scaffold_RegisterWorkspaceInConfig_Role = 'app' | 'docs';
|
|
301
386
|
|
|
302
387
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_ConfigName = string;
|
|
303
388
|
|
|
304
|
-
export type Lib_Scaffold_RegisterWorkspaceInConfig_Workspaces = Record<string, unknown>;
|
|
305
|
-
|
|
306
389
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_ParsedWorkspaces = Lib_Scaffold_RegisterWorkspaceInConfig_Workspaces | undefined;
|
|
307
390
|
|
|
391
|
+
export type Lib_Scaffold_RegisterWorkspaceInConfig_Workspaces = Record<string, unknown>;
|
|
392
|
+
|
|
308
393
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_Json = string;
|
|
309
394
|
|
|
310
395
|
export type Lib_Scaffold_RegisterWorkspaceInConfig_JsonContents = string;
|
|
311
396
|
|
|
397
|
+
/**
|
|
398
|
+
* Lib - Scaffold - Report Error.
|
|
399
|
+
*
|
|
400
|
+
* @since 0.26.0
|
|
401
|
+
*/
|
|
402
|
+
export type Lib_Scaffold_ReportError_Message = string;
|
|
403
|
+
|
|
404
|
+
export type Lib_Scaffold_ReportError_Returns = void;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Lib - Scaffold - Resolve Template Answers.
|
|
408
|
+
*
|
|
409
|
+
* @since 0.26.0
|
|
410
|
+
*/
|
|
411
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Options = object;
|
|
412
|
+
|
|
413
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Questions = Shared_ScaffoldTemplateQuestions;
|
|
414
|
+
|
|
415
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_IsNonInteractive = boolean;
|
|
416
|
+
|
|
417
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Returns = Promise<Map<RegExp, string> | undefined>;
|
|
418
|
+
|
|
419
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Replacements = Map<RegExp, string>;
|
|
420
|
+
|
|
421
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_ProvidedValue = unknown;
|
|
422
|
+
|
|
423
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_ResolvedValue = string | undefined;
|
|
424
|
+
|
|
425
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_AllowedValues = string;
|
|
426
|
+
|
|
427
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Answers = Record<string, unknown>;
|
|
428
|
+
|
|
429
|
+
export type Lib_Scaffold_ResolveTemplateAnswers_Answer = unknown;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Lib - Scaffold - Resolve Workspace Package Name.
|
|
433
|
+
*
|
|
434
|
+
* @since 0.26.0
|
|
435
|
+
*/
|
|
436
|
+
export type Lib_Scaffold_ResolveWorkspacePackageName_ProjectSlug = string;
|
|
437
|
+
|
|
438
|
+
export type Lib_Scaffold_ResolveWorkspacePackageName_WorkspaceName = string;
|
|
439
|
+
|
|
440
|
+
export type Lib_Scaffold_ResolveWorkspacePackageName_Category = 'app' | 'docs';
|
|
441
|
+
|
|
442
|
+
export type Lib_Scaffold_ResolveWorkspacePackageName_Returns = string;
|
|
443
|
+
|
|
312
444
|
/**
|
|
313
445
|
* Lib - Scaffold - Run Scaffold.
|
|
314
446
|
*
|
|
@@ -318,6 +450,8 @@ export type Lib_Scaffold_RunScaffold_Options_DryRun = true;
|
|
|
318
450
|
|
|
319
451
|
export type Lib_Scaffold_RunScaffold_Options_Name = string;
|
|
320
452
|
|
|
453
|
+
export type Lib_Scaffold_RunScaffold_Options_NonInteractive = true;
|
|
454
|
+
|
|
321
455
|
export type Lib_Scaffold_RunScaffold_Options_Output = string;
|
|
322
456
|
|
|
323
457
|
export type Lib_Scaffold_RunScaffold_Options_WorkspaceName = string;
|
|
@@ -325,11 +459,12 @@ export type Lib_Scaffold_RunScaffold_Options_WorkspaceName = string;
|
|
|
325
459
|
export type Lib_Scaffold_RunScaffold_Options = {
|
|
326
460
|
dryRun?: Lib_Scaffold_RunScaffold_Options_DryRun;
|
|
327
461
|
name?: Lib_Scaffold_RunScaffold_Options_Name;
|
|
462
|
+
nonInteractive?: Lib_Scaffold_RunScaffold_Options_NonInteractive;
|
|
328
463
|
output?: Lib_Scaffold_RunScaffold_Options_Output;
|
|
329
464
|
workspaceName?: Lib_Scaffold_RunScaffold_Options_WorkspaceName;
|
|
330
465
|
};
|
|
331
466
|
|
|
332
|
-
export type Lib_Scaffold_RunScaffold_Category =
|
|
467
|
+
export type Lib_Scaffold_RunScaffold_Category = 'app' | 'docs';
|
|
333
468
|
|
|
334
469
|
export type Lib_Scaffold_RunScaffold_TypeName = string;
|
|
335
470
|
|
|
@@ -337,29 +472,77 @@ export type Lib_Scaffold_RunScaffold_TemplateSubpath = string;
|
|
|
337
472
|
|
|
338
473
|
export type Lib_Scaffold_RunScaffold_ImportMetaUrl = string;
|
|
339
474
|
|
|
475
|
+
export type Lib_Scaffold_RunScaffold_TemplateQuestions = Shared_ScaffoldTemplateQuestions;
|
|
476
|
+
|
|
340
477
|
export type Lib_Scaffold_RunScaffold_Returns = Promise<void>;
|
|
341
478
|
|
|
342
479
|
export type Lib_Scaffold_RunScaffold_CurrentDirectory = string;
|
|
343
480
|
|
|
344
481
|
export type Lib_Scaffold_RunScaffold_IsDryRun = boolean;
|
|
345
482
|
|
|
483
|
+
export type Lib_Scaffold_RunScaffold_IsNonInteractive = boolean;
|
|
484
|
+
|
|
346
485
|
export type Lib_Scaffold_RunScaffold_Context = Shared_MonorepoContext;
|
|
347
486
|
|
|
487
|
+
export type Lib_Scaffold_RunScaffold_ExistingRoot = Shared_ScaffoldExistingRoot | undefined;
|
|
488
|
+
|
|
489
|
+
export type Lib_Scaffold_RunScaffold_ConfigNameDefault = string | undefined;
|
|
490
|
+
|
|
348
491
|
export type Lib_Scaffold_RunScaffold_Config = Shared_ScaffoldConfig | undefined;
|
|
349
492
|
|
|
350
|
-
export type
|
|
493
|
+
export type Lib_Scaffold_RunScaffold_ProjectSlug = string;
|
|
494
|
+
|
|
495
|
+
export type Lib_Scaffold_RunScaffold_WorkspacePackageName = string;
|
|
496
|
+
|
|
497
|
+
export type Lib_Scaffold_RunScaffold_ConfigRoot = string;
|
|
498
|
+
|
|
499
|
+
export type Lib_Scaffold_RunScaffold_ConfigFilePath = string;
|
|
351
500
|
|
|
352
501
|
export type Lib_Scaffold_RunScaffold_WorkspaceDirectory = string;
|
|
353
502
|
|
|
503
|
+
export type Lib_Scaffold_RunScaffold_WorkspaceRelPath = string | undefined;
|
|
504
|
+
|
|
505
|
+
export type Lib_Scaffold_RunScaffold_NormalizedWorkspaceRelPath = string;
|
|
506
|
+
|
|
507
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceEntries = [string, unknown][];
|
|
508
|
+
|
|
509
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspacePath = string;
|
|
510
|
+
|
|
511
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceValue = unknown;
|
|
512
|
+
|
|
513
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceNormalizedPath = string;
|
|
514
|
+
|
|
515
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspace = Record<string, unknown>;
|
|
516
|
+
|
|
517
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceName = unknown;
|
|
518
|
+
|
|
519
|
+
export type Lib_Scaffold_RunScaffold_ExistingWorkspaceRole = unknown;
|
|
520
|
+
|
|
354
521
|
export type Lib_Scaffold_RunScaffold_TemplateDirectory = string;
|
|
355
522
|
|
|
523
|
+
export type Lib_Scaffold_RunScaffold_TemplateEntries = string[];
|
|
524
|
+
|
|
525
|
+
export type Lib_Scaffold_RunScaffold_PlannedPaths = string[];
|
|
526
|
+
|
|
527
|
+
export type Lib_Scaffold_RunScaffold_ConflictingPaths = string[];
|
|
528
|
+
|
|
529
|
+
export type Lib_Scaffold_RunScaffold_ConflictMessage = string;
|
|
530
|
+
|
|
531
|
+
export type Lib_Scaffold_RunScaffold_IsWorkspaceCovered = boolean;
|
|
532
|
+
|
|
533
|
+
export type Lib_Scaffold_RunScaffold_NormalizedWorkspacePattern = string;
|
|
534
|
+
|
|
535
|
+
export type Lib_Scaffold_RunScaffold_TemplateReplacements = Map<RegExp, string> | undefined;
|
|
536
|
+
|
|
356
537
|
export type Lib_Scaffold_RunScaffold_Replacements = Map<RegExp, string>;
|
|
357
538
|
|
|
358
|
-
export type
|
|
539
|
+
export type Lib_Scaffold_RunScaffold_RootPackageJsonPath = string;
|
|
359
540
|
|
|
360
|
-
export type
|
|
541
|
+
export type Lib_Scaffold_RunScaffold_RootWorkspacesValue = unknown;
|
|
542
|
+
|
|
543
|
+
export type Lib_Scaffold_RunScaffold_RootWorkspacesObject = Record<string, unknown>;
|
|
361
544
|
|
|
362
|
-
export type
|
|
545
|
+
export type Lib_Scaffold_RunScaffold_RootPackageJsonContents = string;
|
|
363
546
|
|
|
364
547
|
/**
|
|
365
548
|
* 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;
|