@dword-design/base 13.0.1 → 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 (62) 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/index.js +0 -1
  4. package/dist/commands/check-unknown-files/unknown-files-error.d.ts +3 -0
  5. package/dist/commands/commit/index.d.ts +5 -0
  6. package/dist/commands/depcheck/index.d.ts +1 -0
  7. package/dist/commands/lint/index.d.ts +5 -0
  8. package/dist/commands/lint/index.js +2 -2
  9. package/dist/commands/prepare/index.d.ts +1 -0
  10. package/dist/commands/test/index.d.ts +1 -0
  11. package/dist/commands/test-docker/index.d.ts +5 -0
  12. package/dist/commands/test-docker/index.js +1 -1
  13. package/dist/commands/test-raw/index.d.ts +8 -0
  14. package/dist/commands/test-raw/is-ci.d.ts +4 -0
  15. package/dist/commands/test-raw/package-json-schema.d.ts +67 -0
  16. package/dist/get-depcheck-special-base/index.d.ts +2 -0
  17. package/dist/get-generated-files/commitizen.d.ts +4 -0
  18. package/dist/get-generated-files/commitlint.d.ts +8 -0
  19. package/dist/get-generated-files/common-editor-ignore.d.ts +2 -0
  20. package/dist/get-generated-files/common-editor-ignore.js +1 -1
  21. package/dist/get-generated-files/editorconfig.d.ts +2 -0
  22. package/dist/get-generated-files/get-editor-ignore/index.d.ts +1 -0
  23. package/dist/get-generated-files/get-eslint/index.d.ts +1 -0
  24. package/dist/get-generated-files/get-github-sync-metadata/index.d.ts +26 -0
  25. package/dist/get-generated-files/get-github-workflow/index.d.ts +14 -0
  26. package/dist/get-generated-files/get-github-workflow/steps/cancel-existing.d.ts +7 -0
  27. package/dist/get-generated-files/get-github-workflow/steps/check-unknown-files.d.ts +4 -0
  28. package/dist/get-generated-files/get-github-workflow/steps/coverage.d.ts +7 -0
  29. package/dist/get-generated-files/get-github-workflow/steps/get-release.d.ts +1 -0
  30. package/dist/get-generated-files/get-github-workflow/steps/get-test.d.ts +19 -0
  31. package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.d.ts +16 -0
  32. package/dist/get-generated-files/get-github-workflow/strategies/simple.d.ts +7 -0
  33. package/dist/get-generated-files/get-gitignore/index.d.ts +1 -0
  34. package/dist/get-generated-files/get-gitpod/index.d.ts +12 -0
  35. package/dist/get-generated-files/get-gitpod-dockerfile.d.ts +1 -0
  36. package/dist/get-generated-files/get-license-string.d.ts +1 -0
  37. package/dist/get-generated-files/get-package-config/index.d.ts +1 -0
  38. package/dist/get-generated-files/get-package-config/index.js +2 -1
  39. package/dist/get-generated-files/get-readme-string/index.d.ts +1 -0
  40. package/dist/get-generated-files/get-readme-string/replacements.d.ts +8 -0
  41. package/dist/get-generated-files/get-release/index.d.ts +3 -0
  42. package/dist/get-generated-files/get-renovate/get-regex-manager-string/index.d.ts +2 -0
  43. package/dist/get-generated-files/get-renovate/index.d.ts +27 -0
  44. package/dist/get-generated-files/get-vscode/index.d.ts +8 -0
  45. package/dist/get-generated-files/gitattributes.d.ts +2 -0
  46. package/dist/get-generated-files/github-codespaces.d.ts +4 -0
  47. package/dist/get-generated-files/github-deprecated-dependencies/index.d.ts +72 -0
  48. package/dist/get-generated-files/github-deprecated-dependencies-issue-template.d.ts +2 -0
  49. package/dist/get-generated-files/github-funding.d.ts +6 -0
  50. package/dist/get-generated-files/github-labels.d.ts +2 -0
  51. package/dist/get-generated-files/github-sync-labels.d.ts +24 -0
  52. package/dist/get-generated-files/index.d.ts +26 -0
  53. package/dist/get-generated-files/index.js +0 -2
  54. package/dist/get-generated-files/npmrc.d.ts +2 -0
  55. package/dist/get-generated-files/typescript.d.ts +17 -0
  56. package/dist/get-generated-files/typescript.js +1 -0
  57. package/dist/get-git-info/index.d.ts +4 -0
  58. package/dist/index.d.ts +39 -0
  59. package/dist/load-config/index.d.ts +4 -0
  60. package/dist/load-config-sync/index.d.ts +4 -0
  61. package/package.json +17 -20
  62. package/dist/get-generated-files/babel.js +0 -8
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>;
@@ -18,7 +18,6 @@ export default async function () {
18
18
  doc: true,
19
19
  'eslint.config.ts': true,
20
20
  fixtures: true,
21
- 'global-test-hooks.js': true,
22
21
  'pnpm-lock.yaml': true,
23
22
  'pnpm-workspace.yaml': true,
24
23
  'types.d.ts': true
@@ -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
+ }>>;
@@ -1,4 +1,4 @@
1
- import { execa } from 'execa';
1
+ import { execaCommand } from 'execa';
2
2
  import parsePackagejsonName from 'parse-packagejson-name';
3
3
  export default async function (options) {
4
4
  options = {
@@ -11,7 +11,7 @@ export default async function (options) {
11
11
  throw new Error(`Package name '${packageName}' has to be equal to repository name '${this.config.git.project}'`);
12
12
  }
13
13
  await this.config.lint.call(this, options);
14
- await execa('eslint', ['--fix', '.'], {
14
+ return execaCommand('eslint --fix --no-error-on-unmatched-pattern .', {
15
15
  ...(options.log && {
16
16
  stdout: 'inherit'
17
17
  }),
@@ -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;
@@ -1 +1 @@
1
- export default ['babel.config.json', '.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', 'eslint.config.ts', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.npmrc', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'pnpm-lock.yaml'];
1
+ export default ['.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', 'eslint.config.ts', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.npmrc', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'pnpm-lock.yaml'];
@@ -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;
@@ -1,4 +1,5 @@
1
1
  import pathLib from 'node:path';
2
+ import packageName from 'depcheck-package-name';
2
3
  import fs from 'fs-extra';
3
4
  import { mapValues, pick, stubTrue } from 'lodash-es';
4
5
  import sortKeys from 'sort-keys';
@@ -51,6 +52,6 @@ export default function () {
51
52
  files: ['dist', ...(fs.existsSync(pathLib.join(this.cwd, 'types.d.ts')) ? ['types.d.ts'] : [])],
52
53
  license: 'MIT',
53
54
  ...this.config.packageConfig,
54
- scripts: sortKeys(mapValues(commandNames, (handler, name) => this.packageConfig.name === '@dword-design/base' ? `rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js ${name}` : `base ${name}`))
55
+ scripts: sortKeys(mapValues(commandNames, (handler, name) => this.packageConfig.name === '@dword-design/base' ? `${packageName`tsx`} src/cli.ts ${name}` : `base ${name}`))
55
56
  };
56
57
  }
@@ -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
+ };
@@ -1,7 +1,6 @@
1
1
  import sortKeys from 'sort-keys';
2
2
  import sortPackageJson from 'sort-package-json';
3
3
  import { stringify as yamlStringify } from 'yaml';
4
- import babelConfig from "./babel.js";
5
4
  import commitizenConfig from "./commitizen.js";
6
5
  import commitlintConfig from "./commitlint.js";
7
6
  import editorconfigConfig from "./editorconfig.js";
@@ -49,7 +48,6 @@ export default function () {
49
48
  '.vscode/settings.json': `${JSON.stringify(this.getVscodeConfig(), undefined, 2)}\n`,
50
49
  'LICENSE.md': this.getLicenseString(),
51
50
  'README.md': this.getReadmeString(),
52
- 'babel.config.json': `${JSON.stringify(babelConfig, undefined, 2)}\n`,
53
51
  'eslint.config.ts': this.getEslintConfig(),
54
52
  'package.json': `${JSON.stringify(sortPackageJson(packageConfig), undefined, 2)}\n`,
55
53
  'tsconfig.json': `${JSON.stringify(typescriptConfig, undefined, 2)}\n`
@@ -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.1",
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",
@@ -14,27 +14,25 @@
14
14
  "dist"
15
15
  ],
16
16
  "scripts": {
17
- "checkUnknownFiles": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js checkUnknownFiles",
18
- "commit": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js commit",
19
- "depcheck": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js depcheck",
20
- "dev": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js dev",
21
- "lint": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js lint",
22
- "prepare": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js prepare",
23
- "prepublishOnly": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js prepublishOnly",
24
- "test": "rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js test"
17
+ "checkUnknownFiles": "tsx src/cli.ts checkUnknownFiles",
18
+ "commit": "tsx src/cli.ts commit",
19
+ "depcheck": "tsx src/cli.ts depcheck",
20
+ "dev": "tsx src/cli.ts dev",
21
+ "lint": "tsx src/cli.ts lint",
22
+ "prepare": "tsx src/cli.ts prepare",
23
+ "prepublishOnly": "tsx src/cli.ts prepublishOnly",
24
+ "test": "tsx src/cli.ts test"
25
25
  },
26
26
  "dependencies": {
27
27
  "@commitlint/cli": "^18.6.1",
28
28
  "@commitlint/config-conventional": "^18.6.3",
29
- "@dword-design/base-config-node": "^3.0.3",
29
+ "@dword-design/base-config-node": "^3.0.7",
30
30
  "@dword-design/ci": "^4.0.6",
31
- "@dword-design/eslint-config": "^6.1.3",
31
+ "@dword-design/eslint-config": "^7.0.3",
32
32
  "@dword-design/personal-data": "^2.0.3",
33
33
  "@semantic-release/changelog": "^6.0.3",
34
34
  "@semantic-release/git": "^10.0.1",
35
35
  "ajv": "^8.17.1",
36
- "babel-plugin-add-import-extension": "^1.6.0",
37
- "babel-plugin-module-resolver": "^5.0.2",
38
36
  "c8": "^9.1.0",
39
37
  "change-case": "^5.4.4",
40
38
  "commitizen": "^4.3.1",
@@ -43,12 +41,12 @@
43
41
  "deepmerge": "^4.3.1",
44
42
  "depcheck": "npm:@dword-design/depcheck@^0.0.7",
45
43
  "depcheck-detector-bin-name": "^1.0.2",
46
- "depcheck-detector-execa": "^4.0.0",
44
+ "depcheck-detector-execa": "^4.0.3",
47
45
  "depcheck-detector-package-name": "^3.0.4",
48
46
  "depcheck-package-name": "^3.0.1",
49
47
  "endent": "npm:@dword-design/endent@^1.4.1",
50
- "eslint": "^9.27.0",
51
- "execa": "^9.5.3",
48
+ "eslint": "^9.28.0",
49
+ "execa": "^9.6.0",
52
50
  "find-up": "^7.0.0",
53
51
  "fs-extra": "^11.3.0",
54
52
  "get-projectz-readme-section-regex": "^3.0.10",
@@ -61,7 +59,7 @@
61
59
  "lodash-es": "^4.17.21",
62
60
  "make-cli": "^4.0.0",
63
61
  "output-files": "^2.0.32",
64
- "package-name-regex": "^4.0.0",
62
+ "package-name-regex": "^4.0.1",
65
63
  "parse-git-config": "npm:@dword-design/parse-git-config@^0.0.1",
66
64
  "parse-packagejson-name": "^1.0.1",
67
65
  "plugin-name-to-package-name": "npm:@dword-design/plugin-name-to-package-name@^0.1.2",
@@ -72,15 +70,14 @@
72
70
  "spdx-expression-parse": "^4.0.0",
73
71
  "spdx-license-list": "^6.10.0",
74
72
  "tagged-template-noop": "^2.1.1",
73
+ "tsx": "^4.19.4",
75
74
  "yaml": "^2.8.0"
76
75
  },
77
76
  "devDependencies": {
78
- "@babel/cli": "^7.27.2",
79
77
  "@dword-design/dotenv-json-extended": "^2.0.25",
80
78
  "@playwright/test": "^1.52.0",
81
79
  "p-event": "^6.0.1",
82
- "renovate": "^39.264.0",
83
- "rimraf": "^5.0.10",
80
+ "renovate": "^39.264.1",
84
81
  "sharp": "^0.34.2",
85
82
  "strip-ansi": "^7.1.0",
86
83
  "uuid": "^11.1.0"
@@ -1,8 +0,0 @@
1
- import packageName from 'depcheck-package-name';
2
- export default {
3
- plugins: [[packageName`babel-plugin-module-resolver`, {
4
- alias: {
5
- '@/src': './dist'
6
- }
7
- }], packageName`babel-plugin-add-import-extension`]
8
- };