@dword-design/base 13.0.2 → 13.0.3

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 (56) hide show
  1. package/dist/cli.d.ts +2 -0
  2. package/dist/commands/check-unknown-files/index.d.ts +1 -0
  3. package/dist/commands/check-unknown-files/unknown-files-error.d.ts +3 -0
  4. package/dist/commands/commit/index.d.ts +5 -0
  5. package/dist/commands/depcheck/index.d.ts +1 -0
  6. package/dist/commands/lint/index.d.ts +5 -0
  7. package/dist/commands/prepare/index.d.ts +1 -0
  8. package/dist/commands/test/index.d.ts +1 -0
  9. package/dist/commands/test-docker/index.d.ts +5 -0
  10. package/dist/commands/test-docker/index.js +1 -1
  11. package/dist/commands/test-raw/index.d.ts +8 -0
  12. package/dist/commands/test-raw/is-ci.d.ts +4 -0
  13. package/dist/commands/test-raw/package-json-schema.d.ts +67 -0
  14. package/dist/get-depcheck-special-base/index.d.ts +2 -0
  15. package/dist/get-generated-files/commitizen.d.ts +4 -0
  16. package/dist/get-generated-files/commitlint.d.ts +8 -0
  17. package/dist/get-generated-files/common-editor-ignore.d.ts +2 -0
  18. package/dist/get-generated-files/editorconfig.d.ts +2 -0
  19. package/dist/get-generated-files/get-editor-ignore/index.d.ts +1 -0
  20. package/dist/get-generated-files/get-eslint/index.d.ts +1 -0
  21. package/dist/get-generated-files/get-github-sync-metadata/index.d.ts +26 -0
  22. package/dist/get-generated-files/get-github-workflow/index.d.ts +14 -0
  23. package/dist/get-generated-files/get-github-workflow/steps/cancel-existing.d.ts +7 -0
  24. package/dist/get-generated-files/get-github-workflow/steps/check-unknown-files.d.ts +4 -0
  25. package/dist/get-generated-files/get-github-workflow/steps/coverage.d.ts +7 -0
  26. package/dist/get-generated-files/get-github-workflow/steps/get-release.d.ts +1 -0
  27. package/dist/get-generated-files/get-github-workflow/steps/get-test.d.ts +19 -0
  28. package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.d.ts +16 -0
  29. package/dist/get-generated-files/get-github-workflow/strategies/simple.d.ts +7 -0
  30. package/dist/get-generated-files/get-gitignore/index.d.ts +1 -0
  31. package/dist/get-generated-files/get-gitpod/index.d.ts +12 -0
  32. package/dist/get-generated-files/get-gitpod-dockerfile.d.ts +1 -0
  33. package/dist/get-generated-files/get-license-string.d.ts +1 -0
  34. package/dist/get-generated-files/get-package-config/index.d.ts +1 -0
  35. package/dist/get-generated-files/get-readme-string/index.d.ts +1 -0
  36. package/dist/get-generated-files/get-readme-string/replacements.d.ts +8 -0
  37. package/dist/get-generated-files/get-release/index.d.ts +3 -0
  38. package/dist/get-generated-files/get-renovate/get-regex-manager-string/index.d.ts +2 -0
  39. package/dist/get-generated-files/get-renovate/index.d.ts +27 -0
  40. package/dist/get-generated-files/get-vscode/index.d.ts +8 -0
  41. package/dist/get-generated-files/gitattributes.d.ts +2 -0
  42. package/dist/get-generated-files/github-codespaces.d.ts +4 -0
  43. package/dist/get-generated-files/github-deprecated-dependencies/index.d.ts +72 -0
  44. package/dist/get-generated-files/github-deprecated-dependencies-issue-template.d.ts +2 -0
  45. package/dist/get-generated-files/github-funding.d.ts +6 -0
  46. package/dist/get-generated-files/github-labels.d.ts +2 -0
  47. package/dist/get-generated-files/github-sync-labels.d.ts +24 -0
  48. package/dist/get-generated-files/index.d.ts +26 -0
  49. package/dist/get-generated-files/npmrc.d.ts +2 -0
  50. package/dist/get-generated-files/typescript.d.ts +17 -0
  51. package/dist/get-generated-files/typescript.js +1 -0
  52. package/dist/get-git-info/index.d.ts +4 -0
  53. package/dist/index.d.ts +39 -0
  54. package/dist/load-config/index.d.ts +4 -0
  55. package/dist/load-config-sync/index.d.ts +4 -0
  56. package/package.json +1 -1
package/dist/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1 @@
1
+ export default function (): Promise<void>;
@@ -0,0 +1,3 @@
1
+ export default class extends Error {
2
+ constructor(files: any);
3
+ }
@@ -0,0 +1,5 @@
1
+ export default function (options: any): import("execa").ResultPromise<{
2
+ stderr: any;
3
+ stdout: "inherit";
4
+ cwd: any;
5
+ }>;
@@ -0,0 +1 @@
1
+ export default function (): Promise<void>;
@@ -0,0 +1,5 @@
1
+ export default function (options: any): Promise<import("execa").Result<{
2
+ cwd: any;
3
+ stderr: any;
4
+ stdout: "inherit";
5
+ }>>;
@@ -0,0 +1 @@
1
+ export default function (options: any): Promise<void>;
@@ -0,0 +1 @@
1
+ export default function (options: any): any;
@@ -0,0 +1,5 @@
1
+ export default function (options: any): Promise<import("execa").Result<{
2
+ stderr: any;
3
+ stdout: "inherit";
4
+ cwd: any;
5
+ }>>;
@@ -10,7 +10,7 @@ export default async function (options) {
10
10
  stderr: 'inherit',
11
11
  ...options
12
12
  };
13
- const volumeName = this.packageConfig.name.replace('@/src', '').replace('/', '-');
13
+ const volumeName = this.packageConfig.name.replace('@', '').replace('/', '-');
14
14
  const envSchemaPath = findUpSync('.env.schema.json', {
15
15
  cwd: this.cwd
16
16
  });
@@ -0,0 +1,8 @@
1
+ export default function (options: any): Promise<import("execa").Result<{
2
+ stderr: any;
3
+ stdout: "inherit";
4
+ cwd: any;
5
+ env: {
6
+ NODE_ENV: string;
7
+ };
8
+ }>>;
@@ -0,0 +1,4 @@
1
+ declare const _default: ({ cwd }?: {
2
+ cwd?: string;
3
+ }) => boolean;
4
+ export default _default;
@@ -0,0 +1,67 @@
1
+ declare const _default: {
2
+ properties: {
3
+ baseConfig: {
4
+ properties: {
5
+ depcheckConfig: {
6
+ type: string;
7
+ };
8
+ name: {
9
+ type: string;
10
+ };
11
+ };
12
+ type: string[];
13
+ };
14
+ bin: {
15
+ additionalProperties: {
16
+ pattern: string;
17
+ type: string;
18
+ };
19
+ pattern: string;
20
+ type: string[];
21
+ };
22
+ dependencies: {
23
+ additionalProperties: {
24
+ type: string;
25
+ };
26
+ type: string;
27
+ };
28
+ description: {
29
+ type: string;
30
+ };
31
+ devDependencies: {
32
+ additionalProperties: {
33
+ type: string;
34
+ };
35
+ type: string;
36
+ };
37
+ keywords: {
38
+ items: {
39
+ type: string;
40
+ };
41
+ type: string;
42
+ };
43
+ name: {
44
+ pattern: any;
45
+ type: string;
46
+ };
47
+ packageManager: {
48
+ type: string;
49
+ };
50
+ pnpm: {
51
+ properties: {
52
+ overrides: {
53
+ additionalProperties: {
54
+ type: string;
55
+ };
56
+ type: string;
57
+ };
58
+ };
59
+ type: string;
60
+ };
61
+ version: {
62
+ type: string;
63
+ };
64
+ };
65
+ type: string;
66
+ };
67
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (name: any) => (filePath: any) => any[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ path: any;
3
+ };
4
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ extends: any[];
3
+ rules: {
4
+ 'body-max-line-length': number[];
5
+ 'footer-max-line-length': number[];
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: string[];
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1,26 @@
1
+ export default function (): {
2
+ jobs: {
3
+ build: {
4
+ 'runs-on': string;
5
+ steps: ({
6
+ uses: string;
7
+ with?: undefined;
8
+ } | {
9
+ uses: string;
10
+ with: {
11
+ commitMessage: string;
12
+ githubToken: string;
13
+ syncKeywords: boolean;
14
+ approve: boolean;
15
+ };
16
+ })[];
17
+ };
18
+ };
19
+ name: string;
20
+ on: {
21
+ schedule: {
22
+ cron: string;
23
+ }[];
24
+ workflow_dispatch: {};
25
+ };
26
+ };
@@ -0,0 +1,14 @@
1
+ export default function (): {
2
+ concurrency: {
3
+ 'cancel-in-progress': boolean;
4
+ group: string;
5
+ };
6
+ jobs: any;
7
+ name: string;
8
+ on: {
9
+ pull_request: {};
10
+ push: {
11
+ branches: string[];
12
+ };
13
+ };
14
+ };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ env: {
3
+ GITHUB_TOKEN: string;
4
+ };
5
+ uses: string;
6
+ }[];
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ run: string;
3
+ }[];
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ uses: string;
3
+ with: {
4
+ token: string;
5
+ };
6
+ }[];
7
+ export default _default;
@@ -0,0 +1 @@
1
+ export default function (): any[];
@@ -0,0 +1,19 @@
1
+ export default function (): ({
2
+ env: {
3
+ GH_TOKEN: string;
4
+ };
5
+ run: string;
6
+ if?: undefined;
7
+ uses?: undefined;
8
+ with?: undefined;
9
+ } | {
10
+ if: string;
11
+ uses: string;
12
+ with: {
13
+ 'if-no-files-found': string;
14
+ name: string;
15
+ path: string;
16
+ };
17
+ env?: undefined;
18
+ run?: undefined;
19
+ })[];
@@ -0,0 +1,16 @@
1
+ export default function (): {
2
+ release: {
3
+ needs: string;
4
+ 'runs-on': string;
5
+ steps: any[];
6
+ };
7
+ test: {
8
+ 'runs-on': string;
9
+ steps: any[];
10
+ strategy: {
11
+ matrix: {
12
+ include: any[];
13
+ };
14
+ };
15
+ };
16
+ };
@@ -0,0 +1,7 @@
1
+ export default function (): {
2
+ build: {
3
+ if: string;
4
+ 'runs-on': string;
5
+ steps: any[];
6
+ };
7
+ };
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1,12 @@
1
+ export default function (): {
2
+ image: {
3
+ file: string;
4
+ };
5
+ tasks: {
6
+ before: any;
7
+ init: any;
8
+ }[];
9
+ vscode: {
10
+ extensions: string[];
11
+ };
12
+ };
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ badges(): any;
3
+ description(): any;
4
+ install(): any;
5
+ license(): string;
6
+ title(): string;
7
+ };
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export default function (): {
2
+ plugins: any[];
3
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: (name: any, content: any) => string;
2
+ export default _default;
@@ -0,0 +1,27 @@
1
+ export default function (): {
2
+ extends: string[];
3
+ gitIgnoredAuthors: string[];
4
+ 'github-actions': {
5
+ enabled: boolean;
6
+ };
7
+ labels: string[];
8
+ lockFileMaintenance: {
9
+ semanticCommitType?: string;
10
+ automerge: boolean;
11
+ enabled: boolean;
12
+ };
13
+ rangeStrategy: string;
14
+ regexManagers: ({
15
+ datasourceTemplate: string;
16
+ fileMatch: string[];
17
+ matchStrings: string[];
18
+ versioningTemplate: string;
19
+ } | {
20
+ datasourceTemplate: string;
21
+ depNameTemplate: string;
22
+ fileMatch: string[];
23
+ matchStrings: string[];
24
+ versioningTemplate: string;
25
+ })[];
26
+ semanticCommitScope: null;
27
+ };
@@ -0,0 +1,8 @@
1
+ export default function (): {
2
+ 'editor.tabSize': number;
3
+ 'files.autoSave': string;
4
+ 'files.exclude': {
5
+ [k: string]: any;
6
+ };
7
+ 'workbench.editor.enablePreview': boolean;
8
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ postCreateCommand: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,72 @@
1
+ declare const _default: {
2
+ jobs: {
3
+ run: {
4
+ 'runs-on': string;
5
+ steps: ({
6
+ uses: string;
7
+ with: {
8
+ lfs: boolean;
9
+ filename?: undefined;
10
+ update_existing?: undefined;
11
+ comment?: undefined;
12
+ 'issue-number'?: undefined;
13
+ };
14
+ 'continue-on-error'?: undefined;
15
+ id?: undefined;
16
+ env?: undefined;
17
+ if?: undefined;
18
+ } | {
19
+ 'continue-on-error': boolean;
20
+ id: string;
21
+ uses: string;
22
+ with?: undefined;
23
+ env?: undefined;
24
+ if?: undefined;
25
+ } | {
26
+ env: {
27
+ DEPRECATED: string;
28
+ GITHUB_TOKEN: string;
29
+ RUN_URL: string;
30
+ };
31
+ id: string;
32
+ if: string;
33
+ uses: string;
34
+ with: {
35
+ filename: string;
36
+ update_existing: boolean;
37
+ lfs?: undefined;
38
+ comment?: undefined;
39
+ 'issue-number'?: undefined;
40
+ };
41
+ 'continue-on-error'?: undefined;
42
+ } | {
43
+ if: string;
44
+ uses: string;
45
+ with: {
46
+ comment: string;
47
+ 'issue-number': string;
48
+ lfs?: undefined;
49
+ filename?: undefined;
50
+ update_existing?: undefined;
51
+ };
52
+ 'continue-on-error'?: undefined;
53
+ id?: undefined;
54
+ env?: undefined;
55
+ } | {
56
+ uses: string;
57
+ with?: undefined;
58
+ 'continue-on-error'?: undefined;
59
+ id?: undefined;
60
+ env?: undefined;
61
+ if?: undefined;
62
+ })[];
63
+ };
64
+ };
65
+ name: string;
66
+ on: {
67
+ schedule: {
68
+ cron: string;
69
+ }[];
70
+ };
71
+ };
72
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ custom: string[];
3
+ github: string;
4
+ patreon: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,24 @@
1
+ declare const _default: {
2
+ jobs: {
3
+ build: {
4
+ 'runs-on': string;
5
+ steps: ({
6
+ uses: string;
7
+ env?: undefined;
8
+ } | {
9
+ env: {
10
+ GITHUB_TOKEN: string;
11
+ };
12
+ uses: string;
13
+ })[];
14
+ };
15
+ };
16
+ name: string;
17
+ on: {
18
+ push: {
19
+ branches: string[];
20
+ paths: string[];
21
+ };
22
+ };
23
+ };
24
+ export default _default;
@@ -0,0 +1,26 @@
1
+ export default function (): {
2
+ '.commitlintrc.json': string;
3
+ '.cz.json': string;
4
+ '.devcontainer/devcontainer.json': string;
5
+ '.editorconfig': any;
6
+ '.gitattributes': any;
7
+ '.github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md': any;
8
+ '.github/FUNDING.yml': string;
9
+ '.github/labels.yml': string;
10
+ '.github/workflows/build.yml': string;
11
+ '.github/workflows/deprecated-dependencies.yml': string;
12
+ '.github/workflows/sync-labels.yml': string;
13
+ '.github/workflows/sync-metadata.yml': string;
14
+ '.gitignore': any;
15
+ '.gitpod.Dockerfile': any;
16
+ '.gitpod.yml': string;
17
+ '.npmrc': string;
18
+ '.releaserc.json': string;
19
+ '.renovaterc.json': string;
20
+ '.vscode/settings.json': string;
21
+ 'LICENSE.md': any;
22
+ 'README.md': any;
23
+ 'eslint.config.ts': any;
24
+ 'package.json': string;
25
+ 'tsconfig.json': string;
26
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: "node-linker=hoisted";
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ compilerOptions: {
3
+ declaration: boolean;
4
+ esModuleInterop: boolean;
5
+ module: string;
6
+ moduleResolution: string;
7
+ outDir: string;
8
+ paths: {
9
+ '@/*': string[];
10
+ };
11
+ skipLibCheck: boolean;
12
+ target: string;
13
+ };
14
+ exclude: string[];
15
+ include: string[];
16
+ };
17
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  export default {
2
2
  compilerOptions: {
3
+ declaration: true,
3
4
  esModuleInterop: true,
4
5
  module: 'ESNext',
5
6
  moduleResolution: 'bundler',
@@ -0,0 +1,4 @@
1
+ declare const _default: ({ cwd }?: {
2
+ cwd?: string;
3
+ }) => any;
4
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { type ResultPromise } from 'execa';
2
+ declare class Base {
3
+ config: any;
4
+ packageConfig: any;
5
+ cwd: string;
6
+ generatedFiles: any;
7
+ githubCodespacesConfig: {
8
+ postCreateCommand: string;
9
+ };
10
+ commit(...args: any[]): ResultPromise;
11
+ lint(...args: any[]): ResultPromise;
12
+ prepare(...args: any[]): void;
13
+ test(...args: any[]): ResultPromise;
14
+ testRaw(...args: any[]): ResultPromise;
15
+ testDocker(...args: any[]): ResultPromise;
16
+ getPackageConfig(...args: any[]): any;
17
+ getGeneratedFiles(...args: any[]): any;
18
+ checkUnknownFiles(...args: any[]): void;
19
+ depcheck(...args: any[]): void;
20
+ getEditorIgnoreConfig(...args: any[]): void;
21
+ getEslintConfig(...args: any[]): void;
22
+ getGithubSyncMetadataConfig(...args: any[]): void;
23
+ getGithubWorkflowConfig(...args: any[]): void;
24
+ getGitignoreConfig(...args: any[]): void;
25
+ getGitpodConfig(...args: any[]): void;
26
+ getGitpodDockerfile(...args: any[]): void;
27
+ getLicenseString(...args: any[]): void;
28
+ getReadmeString(...args: any[]): void;
29
+ getReleaseConfig(...args: any[]): void;
30
+ getRenovateConfig(...args: any[]): void;
31
+ getVscodeConfig(...args: any[]): void;
32
+ constructor(config?: any, { cwd }?: {
33
+ cwd?: string;
34
+ });
35
+ run(name: any, ...args: any[]): any;
36
+ }
37
+ export { default as loadConfig } from './load-config';
38
+ export { default as loadConfigSync } from './load-config-sync';
39
+ export { Base };
@@ -0,0 +1,4 @@
1
+ declare const _default: ({ cwd }?: {
2
+ cwd?: string;
3
+ }) => Promise<any>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: ({ cwd }?: {
2
+ cwd?: string;
3
+ }) => any;
4
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "13.0.2",
3
+ "version": "13.0.3",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",