@dword-design/base 16.2.7 → 17.0.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.
Files changed (79) hide show
  1. package/LICENSE.md +9 -9
  2. package/dist/cli.js +25 -19
  3. package/dist/commands/check-unknown-files/index.d.ts +3 -1
  4. package/dist/commands/check-unknown-files/index.js +9 -9
  5. package/dist/commands/check-unknown-files/unknown-files-error.d.ts +1 -1
  6. package/dist/commands/check-unknown-files/unknown-files-error.js +1 -2
  7. package/dist/commands/command-options-input.d.ts +4 -5
  8. package/dist/commands/command-options-input.js +0 -0
  9. package/dist/commands/commit/index.d.ts +10 -1
  10. package/dist/commands/commit/index.js +6 -7
  11. package/dist/commands/depcheck/index.d.ts +3 -1
  12. package/dist/commands/depcheck/index.js +18 -18
  13. package/dist/commands/lint/index.d.ts +3 -1
  14. package/dist/commands/lint/index.js +9 -10
  15. package/dist/commands/lint/lint-packagejson.d.ts +3 -1
  16. package/dist/commands/lint/lint-packagejson.js +3 -3
  17. package/dist/commands/lint/package-json-schema.js +3 -3
  18. package/dist/commands/prepare/index.d.ts +4 -1
  19. package/dist/commands/prepare/index.js +8 -8
  20. package/dist/commands/test/index.d.ts +10 -1
  21. package/dist/commands/test/index.js +1 -3
  22. package/dist/commands/test-docker/index.d.ts +12 -1
  23. package/dist/commands/test-docker/index.js +21 -17
  24. package/dist/commands/test-raw/index.d.ts +17 -1
  25. package/dist/commands/test-raw/index.js +15 -13
  26. package/dist/commands/typecheck/index.d.ts +3 -1
  27. package/dist/commands/typecheck/index.js +8 -8
  28. package/dist/commands/verify/index.d.ts +8 -1
  29. package/dist/commands/verify/index.js +7 -8
  30. package/dist/get-depcheck-special-base/index.d.ts +1 -1
  31. package/dist/get-depcheck-special-base/index.js +1 -1
  32. package/dist/get-generated-files/editorconfig.js +1 -1
  33. package/dist/get-generated-files/get-editor-ignore/index.d.ts +3 -1
  34. package/dist/get-generated-files/get-editor-ignore/index.js +1 -3
  35. package/dist/get-generated-files/get-eslint/index.d.ts +3 -1
  36. package/dist/get-generated-files/get-eslint/index.js +13 -15
  37. package/dist/get-generated-files/get-github-sync-metadata/index.d.ts +3 -1
  38. package/dist/get-generated-files/get-github-sync-metadata/index.js +28 -30
  39. package/dist/get-generated-files/get-github-workflow/index.d.ts +28 -2
  40. package/dist/get-generated-files/get-github-workflow/index.js +8 -8
  41. package/dist/get-generated-files/get-github-workflow/steps/get-release.d.ts +12 -1
  42. package/dist/get-generated-files/get-github-workflow/steps/get-release.js +18 -20
  43. package/dist/get-generated-files/get-github-workflow/steps/get-test.d.ts +3 -1
  44. package/dist/get-generated-files/get-github-workflow/steps/get-test.js +16 -16
  45. package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.d.ts +6 -4
  46. package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.js +19 -19
  47. package/dist/get-generated-files/get-github-workflow/strategies/simple.d.ts +3 -1
  48. package/dist/get-generated-files/get-github-workflow/strategies/simple.js +30 -32
  49. package/dist/get-generated-files/get-gitignore/index.d.ts +3 -1
  50. package/dist/get-generated-files/get-gitignore/index.js +3 -5
  51. package/dist/get-generated-files/get-gitpod/index.d.ts +3 -1
  52. package/dist/get-generated-files/get-gitpod/index.js +3 -3
  53. package/dist/get-generated-files/get-gitpod-dockerfile.d.ts +3 -1
  54. package/dist/get-generated-files/get-gitpod-dockerfile.js +3 -5
  55. package/dist/get-generated-files/get-license-string.d.ts +3 -1
  56. package/dist/get-generated-files/get-license-string.js +4 -4
  57. package/dist/get-generated-files/get-lint-staged/index.d.ts +5 -2
  58. package/dist/get-generated-files/get-lint-staged/index.js +1 -3
  59. package/dist/get-generated-files/get-lint-staged/merge-lint-staged-configs/index.d.ts +1 -1
  60. package/dist/get-generated-files/get-lint-staged/merge-lint-staged-configs/index.js +9 -8
  61. package/dist/get-generated-files/get-package-config/index.d.ts +3 -1
  62. package/dist/get-generated-files/get-package-config/index.js +19 -20
  63. package/dist/get-generated-files/get-readme-string/index.d.ts +3 -1
  64. package/dist/get-generated-files/get-readme-string/index.js +5 -5
  65. package/dist/get-generated-files/get-readme-string/replacements.d.ts +6 -5
  66. package/dist/get-generated-files/get-readme-string/replacements.js +79 -89
  67. package/dist/get-generated-files/get-release/index.d.ts +3 -1
  68. package/dist/get-generated-files/get-release/index.js +9 -11
  69. package/dist/get-generated-files/get-renovate/index.d.ts +3 -1
  70. package/dist/get-generated-files/get-renovate/index.js +29 -31
  71. package/dist/get-generated-files/get-typescript/index.d.ts +3 -1
  72. package/dist/get-generated-files/get-typescript/index.js +17 -19
  73. package/dist/get-generated-files/get-vscode/index.d.ts +3 -1
  74. package/dist/get-generated-files/get-vscode/index.js +6 -8
  75. package/dist/get-generated-files/index.d.ts +5 -3
  76. package/dist/get-generated-files/index.js +16 -16
  77. package/dist/index.d.ts +234 -46
  78. package/dist/index.js +131 -93
  79. package/package.json +31 -29
@@ -1,4 +1,5 @@
1
- export default function (): {
1
+ import type { Base } from '@/src';
2
+ declare const _default: (base: Base) => {
2
3
  'editor.tabSize': number;
3
4
  'files.autoSave': string;
4
5
  'files.exclude': {
@@ -6,3 +7,4 @@ export default function (): {
6
7
  };
7
8
  'workbench.editor.enablePreview': boolean;
8
9
  };
10
+ export default _default;
@@ -1,8 +1,6 @@
1
- export default function () {
2
- return {
3
- "editor.tabSize": 2,
4
- "files.autoSave": "off",
5
- "files.exclude": Object.fromEntries(this.getEditorIgnoreConfig().map(entry => [entry, true])),
6
- "workbench.editor.enablePreview": false
7
- };
8
- }
1
+ export default base => ({
2
+ "editor.tabSize": 2,
3
+ "files.autoSave": "off",
4
+ "files.exclude": Object.fromEntries(base.getEditorIgnoreConfig().map(entry => [entry, true])),
5
+ "workbench.editor.enablePreview": false
6
+ });
@@ -1,4 +1,5 @@
1
- export default function (): {
1
+ import type { Base } from '@/src';
2
+ declare const _default: (base: Base) => {
2
3
  '.commitlintrc.json': string;
3
4
  '.cz.json': string;
4
5
  '.devcontainer/devcontainer.json': string;
@@ -20,10 +21,11 @@ export default function (): {
20
21
  '.renovaterc.json': string;
21
22
  '.vscode/settings.json': string;
22
23
  'AGENTS.md': any;
23
- 'LICENSE.md': any;
24
- 'README.md': any;
25
24
  'eslint.config.ts': any;
26
25
  'eslint.lint-staged.config.ts': string;
26
+ 'LICENSE.md': any;
27
27
  'package.json': string;
28
+ 'README.md': any;
28
29
  'tsconfig.json': string;
29
30
  };
31
+ export default _default;
@@ -17,8 +17,8 @@ import githubLabelsConfig from "./github-labels.js";
17
17
  import githubSyncLabelsConfig from "./github-sync-labels.js";
18
18
  import npmrc from "./npmrc.js";
19
19
  const resolver = createRequire(import.meta.url);
20
- export default function () {
21
- const packageConfig = this.getPackageConfig();
20
+ export default base => {
21
+ const packageConfig = base.getPackageConfig();
22
22
  return {
23
23
  ".commitlintrc.json": `${JSON.stringify(commitlintConfig, void 0, 2)}
24
24
  `,
@@ -33,7 +33,7 @@ export default function () {
33
33
  ".github/labels.yml": yamlStringify(sortKeys(githubLabelsConfig, {
34
34
  deep: true
35
35
  })),
36
- ".github/workflows/build.yml": yamlStringify(sortKeys(this.getGithubWorkflowConfig(), {
36
+ ".github/workflows/build.yml": yamlStringify(sortKeys(base.getGithubWorkflowConfig(), {
37
37
  deep: true
38
38
  })),
39
39
  ".github/workflows/deprecated-dependencies.yml": yamlStringify(sortKeys(githubDeprecatedDependenciesConfig, {
@@ -42,34 +42,34 @@ export default function () {
42
42
  ".github/workflows/sync-labels.yml": yamlStringify(sortKeys(githubSyncLabelsConfig, {
43
43
  deep: true
44
44
  })),
45
- ".github/workflows/sync-metadata.yml": yamlStringify(sortKeys(this.getGithubSyncMetadataConfig(), {
45
+ ".github/workflows/sync-metadata.yml": yamlStringify(sortKeys(base.getGithubSyncMetadataConfig(), {
46
46
  deep: true
47
47
  })),
48
- ".gitignore": this.getGitignoreConfig().map(entry => `${entry}
48
+ ".gitignore": base.getGitignoreConfig().map(entry => `${entry}
49
49
  `).join(""),
50
- ".gitpod.Dockerfile": this.getGitpodDockerfile(),
51
- ".gitpod.yml": yamlStringify(this.getGitpodConfig()),
52
- ".lintstagedrc.json": `${JSON.stringify(this.getLintStaged(), void 0, 2)}
50
+ ".gitpod.Dockerfile": base.getGitpodDockerfile(),
51
+ ".gitpod.yml": yamlStringify(base.getGitpodConfig()),
52
+ ".lintstagedrc.json": `${JSON.stringify(base.getLintStaged(), void 0, 2)}
53
53
  `,
54
54
  ".npmrc": stringifyIni(npmrc),
55
- ".releaserc.json": `${JSON.stringify(this.getReleaseConfig(), void 0, 2)}
55
+ ".releaserc.json": `${JSON.stringify(base.getReleaseConfig(), void 0, 2)}
56
56
  `,
57
- ".renovaterc.json": `${JSON.stringify(sortKeys(this.getRenovateConfig(), {
57
+ ".renovaterc.json": `${JSON.stringify(sortKeys(base.getRenovateConfig(), {
58
58
  deep: true
59
59
  }), void 0, 2)}
60
60
  `,
61
- ".vscode/settings.json": `${JSON.stringify(this.getVscodeConfig(), void 0, 2)}
61
+ ".vscode/settings.json": `${JSON.stringify(base.getVscodeConfig(), void 0, 2)}
62
62
  `,
63
63
  "AGENTS.md": fs.readFileSync(resolver.resolve("./agents.md"), "utf8"),
64
- "LICENSE.md": this.getLicenseString(),
65
- "README.md": this.getReadmeString(),
66
- "eslint.config.ts": this.getEslintConfig(),
64
+ "eslint.config.ts": base.getEslintConfig(),
67
65
  "eslint.lint-staged.config.ts": eslintLintStaged,
66
+ "LICENSE.md": base.getLicenseString(),
68
67
  "package.json": `${JSON.stringify(sortPackageJson(packageConfig), void 0, 2)}
69
68
  `,
70
- "tsconfig.json": `${JSON.stringify(sortKeys(this.getTypescriptConfig(), {
69
+ "README.md": base.getReadmeString(),
70
+ "tsconfig.json": `${JSON.stringify(sortKeys(base.getTypescriptConfig(), {
71
71
  deep: true
72
72
  }), void 0, 2)}
73
73
  `
74
74
  };
75
- }
75
+ };
package/dist/index.d.ts CHANGED
@@ -1,20 +1,45 @@
1
1
  import type { Options as DepcheckOptions } from 'depcheck';
2
- import { type ResultPromise } from 'execa';
3
2
  import type GitHost from 'hosted-git-info';
4
3
  import type { Configuration as LintStagedConfig } from 'lint-staged';
5
4
  import type { PartialCommandObjectInObject } from 'make-cli';
6
5
  import type { RenovateConfig } from 'renovate/dist/config/types';
7
- import type { PackageJson, TsConfigJson } from 'type-fest';
6
+ import type { ArrayTail, PackageJson, TsConfigJson } from 'type-fest';
7
+ import checkUnknownFiles from './commands/check-unknown-files';
8
8
  import type { PartialCommandOptions } from './commands/command-options-input';
9
- type HandlerWithBase<TConfig extends Config = Config> = (this: Base<TConfig>, ...args: any[]) => any;
9
+ import commit from './commands/commit';
10
+ import depcheckMethod from './commands/depcheck';
11
+ import lint from './commands/lint';
12
+ import lintPackagejson from './commands/lint/lint-packagejson';
13
+ import prepare from './commands/prepare';
14
+ import test from './commands/test';
15
+ import testDocker from './commands/test-docker';
16
+ import testRaw from './commands/test-raw';
17
+ import typecheck from './commands/typecheck';
18
+ import verify from './commands/verify';
19
+ import getGeneratedFiles from './get-generated-files';
20
+ import getEditorIgnoreConfig from './get-generated-files/get-editor-ignore';
21
+ import getEslintConfig from './get-generated-files/get-eslint';
22
+ import getGithubSyncMetadataConfig from './get-generated-files/get-github-sync-metadata';
23
+ import getGithubWorkflowConfig from './get-generated-files/get-github-workflow';
24
+ import getGitignoreConfig from './get-generated-files/get-gitignore';
25
+ import getGitpodConfig from './get-generated-files/get-gitpod';
26
+ import getGitpodDockerfile from './get-generated-files/get-gitpod-dockerfile';
27
+ import getLicenseString from './get-generated-files/get-license-string';
28
+ import getLintStaged from './get-generated-files/get-lint-staged';
29
+ import getPackageConfig from './get-generated-files/get-package-config';
30
+ import getReadmeString from './get-generated-files/get-readme-string';
31
+ import getReleaseConfig from './get-generated-files/get-release';
32
+ import getRenovateConfig from './get-generated-files/get-renovate';
33
+ import getTypescriptConfig from './get-generated-files/get-typescript';
34
+ import getVscodeConfig from './get-generated-files/get-vscode';
35
+ type HandlerWithBase<TConfig extends Config = Config> = (base: Base<TConfig>, ...arguments_: any[]) => any;
10
36
  type PartialCommandObjectInObjectWithBase<TConfig extends Config = Config> = Omit<PartialCommandObjectInObject, 'handler'> & {
11
- handler: (this: Base<TConfig>, ...args: any[]) => any;
37
+ handler: (base: Base<TConfig>, ...arguments_: any[]) => any;
12
38
  };
13
39
  type PartialCommandInObjectWithBase<TConfig extends Config = Config> = PartialCommandObjectInObjectWithBase<TConfig> | HandlerWithBase<TConfig>;
14
40
  type Config = {
15
- name?: string;
16
- global: boolean;
17
41
  allowedMatches: string[];
42
+ codecovGraphToken: string | null;
18
43
  commands: Record<string, PartialCommandObjectInObjectWithBase>;
19
44
  depcheckConfig: Omit<DepcheckOptions, 'package'>;
20
45
  deployAssets: Array<{
@@ -23,41 +48,44 @@ type Config = {
23
48
  }>;
24
49
  deployEnv: Record<string, string>;
25
50
  deployPlugins: string[];
51
+ doppler: boolean;
26
52
  editorIgnore: string[];
53
+ eslintConfig: string;
27
54
  fetchGitHistory: boolean;
28
- githubActionsTypecheckMemoryLimitMb: number | null;
29
55
  git?: GitHost;
56
+ githubActionsTypecheckMemoryLimitMb: number | null;
30
57
  gitignore: string[];
58
+ global: boolean;
31
59
  hasTypescriptConfigRootAlias: boolean;
60
+ isLockFileFixCommitType: boolean;
61
+ lint: <TConfig extends Config>(base: Base<TConfig>, options?: PartialCommandOptions) => unknown;
32
62
  lintStagedConfig: LintStagedConfig;
33
- lint: (options?: PartialCommandOptions) => unknown;
34
- typecheck: (options?: PartialCommandOptions) => unknown;
35
63
  macos: boolean;
36
- minNodeVersion: number | null;
37
64
  maxNodeVersion: number | null;
65
+ minNodeVersion: number | null;
66
+ name?: string;
38
67
  nodeVersion: number;
68
+ npmPublish: boolean;
69
+ packageConfig: PackageJson;
39
70
  preDeploySteps: string[];
40
- prepare: (options?: PartialCommandOptions) => unknown;
71
+ prepare: <TConfig extends Config>(base: Base<TConfig>, options?: PartialCommandOptions) => unknown;
41
72
  readmeInstallString: string;
73
+ renovateConfig: RenovateConfig;
42
74
  seeAlso: Array<{
43
75
  description: string;
44
76
  repository: string;
45
77
  }>;
46
78
  supportedNodeVersions: number[];
47
79
  syncKeywords: boolean;
80
+ testInContainer: boolean;
81
+ typecheck: <TConfig extends Config>(base: Base<TConfig>, options?: PartialCommandOptions) => unknown;
48
82
  typescriptConfig: TsConfigJson;
49
83
  windows: boolean;
50
- testInContainer: boolean;
51
- eslintConfig: string;
52
- packageConfig: PackageJson;
53
- renovateConfig: RenovateConfig;
54
- isLockFileFixCommitType: boolean;
55
- doppler: boolean;
56
84
  };
57
85
  type PartialConfigObject<TConfig extends Config = Config> = Omit<Partial<TConfig>, 'commands'> & {
58
86
  commands?: Record<string, PartialCommandInObjectWithBase<TConfig>>;
59
87
  };
60
- type PartialConfigOrFunction<TConfig extends Config = Config> = PartialConfigObject<TConfig> | ((this: Base<TConfig>, config: TConfig) => PartialConfigObject<TConfig>);
88
+ type PartialConfigOrFunction<TConfig extends Config = Config> = PartialConfigObject<TConfig> | ((base: Base<TConfig>, config?: PartialConfigObject<TConfig>) => PartialConfigObject<TConfig>);
61
89
  type PartialConfig<TConfig extends Config = Config> = PartialConfigOrFunction<TConfig> | string | null;
62
90
  export declare const defineBaseConfig: <T>(configInput: T) => T;
63
91
  declare class Base<TConfig extends Config = Config> {
@@ -65,40 +93,200 @@ declare class Base<TConfig extends Config = Config> {
65
93
  packageConfig: PackageJson;
66
94
  cwd: string;
67
95
  generatedFiles: any;
68
- commit(...args: any[]): ResultPromise;
69
- lint(...args: any[]): ResultPromise;
70
- lintPackagejson(...args: any[]): void;
71
- typecheck(...args: any[]): ResultPromise;
72
- verify(...args: any[]): ResultPromise;
73
- prepare(...args: any[]): void;
74
- test(...args: any[]): ResultPromise;
75
- testRaw(...args: any[]): ResultPromise;
76
- testDocker(...args: any[]): ResultPromise;
77
- getPackageConfig(...args: any[]): any;
78
- getGeneratedFiles(...args: any[]): any;
79
- checkUnknownFiles(...args: any[]): void;
80
- depcheck(...args: any[]): void;
81
- getEditorIgnoreConfig(...args: any[]): any;
82
- getEslintConfig(...args: any[]): any;
83
- getGithubSyncMetadataConfig(...args: any[]): any;
84
- getGithubWorkflowConfig(...args: any[]): any;
85
- getGitignoreConfig(...args: any[]): any;
86
- getGitpodConfig(...args: any[]): any;
87
- getGitpodDockerfile(...args: any[]): any;
88
- getLicenseString(...args: any[]): any;
89
- getReadmeString(...args: any[]): any;
90
- getReleaseConfig(...args: any[]): any;
91
- getRenovateConfig(...args: any[]): any;
92
- getVscodeConfig(...args: any[]): any;
93
- getTypescriptConfig(...args: any[]): any;
94
- getLintStaged(): any;
95
96
  constructor(configInput?: PartialConfig<TConfig>, { cwd }?: {
96
97
  cwd?: string | undefined;
97
98
  });
98
- run<K extends keyof TConfig['commands'] & string>(name: K, ...args: Parameters<TConfig['commands'][K]['handler']>): ReturnType<TConfig['commands'][K]['handler']>;
99
+ commit(...arguments_: ArrayTail<Parameters<typeof commit>>): import("execa").ResultPromise<{
100
+ cwd: any;
101
+ stderr: any;
102
+ stdout: "pipe" | "inherit";
103
+ }>;
104
+ lint(...arguments_: ArrayTail<Parameters<typeof lint>>): Promise<import("execa").Result<any>>;
105
+ lintPackagejson(...arguments_: ArrayTail<Parameters<typeof lintPackagejson>>): void;
106
+ typecheck(...arguments_: ArrayTail<Parameters<typeof typecheck>>): Promise<import("execa").Result<any> | undefined>;
107
+ verify(...arguments_: ArrayTail<Parameters<typeof verify>>): Promise<void>;
108
+ prepare(...arguments_: ArrayTail<Parameters<typeof prepare>>): Promise<void>;
109
+ test(...arguments_: ArrayTail<Parameters<typeof test>>): any;
110
+ testRaw(...arguments_: ArrayTail<Parameters<typeof testRaw>>): import("execa").ResultPromise<{
111
+ cwd: any;
112
+ env: {
113
+ NODE_ENV: string;
114
+ };
115
+ stderr: any;
116
+ stdout: "pipe" | "inherit";
117
+ }>;
118
+ testDocker(...arguments_: ArrayTail<Parameters<typeof testDocker>>): Promise<import("execa").Result<{
119
+ cwd: any;
120
+ stderr: any;
121
+ stdout: "pipe" | "inherit";
122
+ }>>;
123
+ getPackageConfig(...arguments_: ArrayTail<Parameters<typeof getPackageConfig>>): any;
124
+ getGeneratedFiles(...arguments_: ArrayTail<Parameters<typeof getGeneratedFiles>>): {
125
+ '.commitlintrc.json': string;
126
+ '.cz.json': string;
127
+ '.devcontainer/devcontainer.json': string;
128
+ '.editorconfig': string;
129
+ '.gitattributes': string;
130
+ '.github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md': string;
131
+ '.github/FUNDING.yml': string;
132
+ '.github/labels.yml': string;
133
+ '.github/workflows/build.yml': string;
134
+ '.github/workflows/deprecated-dependencies.yml': string;
135
+ '.github/workflows/sync-labels.yml': string;
136
+ '.github/workflows/sync-metadata.yml': string;
137
+ '.gitignore': any;
138
+ '.gitpod.Dockerfile': any;
139
+ '.gitpod.yml': string;
140
+ '.lintstagedrc.json': string;
141
+ '.npmrc': any;
142
+ '.releaserc.json': string;
143
+ '.renovaterc.json': string;
144
+ '.vscode/settings.json': string;
145
+ 'AGENTS.md': any;
146
+ 'eslint.config.ts': any;
147
+ 'eslint.lint-staged.config.ts': string;
148
+ 'LICENSE.md': any;
149
+ 'package.json': string;
150
+ 'README.md': any;
151
+ 'tsconfig.json': string;
152
+ };
153
+ checkUnknownFiles(...arguments_: ArrayTail<Parameters<typeof checkUnknownFiles>>): Promise<void>;
154
+ depcheck(...arguments_: ArrayTail<Parameters<typeof depcheckMethod>>): Promise<void>;
155
+ getEditorIgnoreConfig(...arguments_: ArrayTail<Parameters<typeof getEditorIgnoreConfig>>): any[];
156
+ getEslintConfig(...arguments_: ArrayTail<Parameters<typeof getEslintConfig>>): any;
157
+ getGithubSyncMetadataConfig(...arguments_: ArrayTail<Parameters<typeof getGithubSyncMetadataConfig>>): {
158
+ jobs: {
159
+ build: {
160
+ 'runs-on': string;
161
+ steps: ({
162
+ uses: any;
163
+ with?: undefined;
164
+ } | {
165
+ uses: any;
166
+ with: {
167
+ commitMessage: string;
168
+ githubToken: string;
169
+ syncKeywords?: boolean | undefined;
170
+ approve: boolean;
171
+ };
172
+ })[];
173
+ };
174
+ };
175
+ name: string;
176
+ on: {
177
+ schedule: {
178
+ cron: string;
179
+ }[];
180
+ workflow_dispatch: {};
181
+ };
182
+ };
183
+ getGithubWorkflowConfig(...arguments_: ArrayTail<Parameters<typeof getGithubWorkflowConfig>>): {
184
+ concurrency: {
185
+ 'cancel-in-progress': boolean;
186
+ group: string;
187
+ };
188
+ jobs: {
189
+ release: {
190
+ needs: string;
191
+ 'runs-on': string;
192
+ steps: any[];
193
+ };
194
+ test: {
195
+ 'runs-on': string;
196
+ steps: any[];
197
+ strategy: {
198
+ matrix: {
199
+ include: {
200
+ node: number;
201
+ os: string;
202
+ }[];
203
+ };
204
+ };
205
+ };
206
+ } | {
207
+ build: {
208
+ if: string;
209
+ 'runs-on': string;
210
+ steps: any[];
211
+ };
212
+ };
213
+ name: string;
214
+ on: {
215
+ pull_request: {};
216
+ push: {
217
+ branches: string[];
218
+ };
219
+ };
220
+ permissions: {
221
+ contents: string;
222
+ 'id-token': string;
223
+ issues: string;
224
+ 'pull-requests': string;
225
+ };
226
+ };
227
+ getGitignoreConfig(...arguments_: ArrayTail<Parameters<typeof getGitignoreConfig>>): any[];
228
+ getGitpodConfig(...arguments_: ArrayTail<Parameters<typeof getGitpodConfig>>): {
229
+ image: {
230
+ file: string;
231
+ };
232
+ tasks: {
233
+ before: string;
234
+ init: string;
235
+ }[];
236
+ vscode: {
237
+ extensions: string[];
238
+ };
239
+ };
240
+ getGitpodDockerfile(...arguments_: ArrayTail<Parameters<typeof getGitpodDockerfile>>): string;
241
+ getLicenseString(...arguments_: ArrayTail<Parameters<typeof getLicenseString>>): string;
242
+ getReadmeString(...arguments_: ArrayTail<Parameters<typeof getReadmeString>>): any;
243
+ getReleaseConfig(...arguments_: ArrayTail<Parameters<typeof getReleaseConfig>>): {
244
+ plugins: any[];
245
+ };
246
+ getRenovateConfig(...arguments_: ArrayTail<Parameters<typeof getRenovateConfig>>): any;
247
+ getVscodeConfig(...arguments_: ArrayTail<Parameters<typeof getVscodeConfig>>): {
248
+ 'editor.tabSize': number;
249
+ 'files.autoSave': string;
250
+ 'files.exclude': {
251
+ [k: string]: any;
252
+ };
253
+ 'workbench.editor.enablePreview': boolean;
254
+ };
255
+ getTypescriptConfig(...arguments_: ArrayTail<Parameters<typeof getTypescriptConfig>>): any;
256
+ getLintStaged(...arguments_: ArrayTail<Parameters<typeof getLintStaged>>): Record<string, string | string[]> | {
257
+ '*.{json,ts,vue}': string;
258
+ };
259
+ run<K extends keyof TConfig['commands'] & string>(name: K, ...arguments_: ArrayTail<Parameters<TConfig['commands'][K]['handler']>>): ReturnType<TConfig['commands'][K]['handler']>;
99
260
  }
100
261
  export { default as loadConfig } from './load-config';
101
262
  export { default as loadConfigSync } from './load-config-sync';
102
263
  export { Base };
103
264
  export type { Config, PartialConfig };
104
265
  export { type PartialCommandOptions } from './commands/command-options-input';
266
+ export { default as checkUnknownFiles } from './commands/check-unknown-files';
267
+ export { default as depcheck } from './commands/depcheck';
268
+ export { default as commit } from './commands/commit';
269
+ export { default as getEslintConfig } from './get-generated-files/get-eslint';
270
+ export { default as getEditorIgnoreConfig } from './get-generated-files/get-editor-ignore';
271
+ export { default as getGithubSyncMetadataConfig } from './get-generated-files/get-github-sync-metadata';
272
+ export { default as getGeneratedFiles } from './get-generated-files';
273
+ export { default as getGitignoreConfig } from './get-generated-files/get-gitignore';
274
+ export { default as getGithubWorkflowConfig } from './get-generated-files/get-github-workflow';
275
+ export { default as getGitpodDockerfile } from './get-generated-files/get-gitpod-dockerfile';
276
+ export { default as getGitpodConfig } from './get-generated-files/get-gitpod';
277
+ export { default as getLintStaged } from './get-generated-files/get-lint-staged';
278
+ export { default as getLicenseString } from './get-generated-files/get-license-string';
279
+ export { default as getReadmeString } from './get-generated-files/get-readme-string';
280
+ export { default as getPackageConfig } from './get-generated-files/get-package-config';
281
+ export { default as getRenovateConfig } from './get-generated-files/get-renovate';
282
+ export { default as getReleaseConfig } from './get-generated-files/get-release';
283
+ export { default as getVscodeConfig } from './get-generated-files/get-vscode';
284
+ export { default as getTypescriptConfig } from './get-generated-files/get-typescript';
285
+ export { default as lintPackagejson } from './commands/lint/lint-packagejson';
286
+ export { default as lint } from './commands/lint';
287
+ export { default as test } from './commands/test';
288
+ export { default as prepare } from './commands/prepare';
289
+ export { default as testRaw } from './commands/test-raw';
290
+ export { default as testDocker } from './commands/test-docker';
291
+ export { default as verify } from './commands/verify';
292
+ export { default as typecheck } from './commands/typecheck';