@dword-design/base 15.3.3 → 15.3.5

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.
@@ -7,6 +7,7 @@ import commitlintConfig from "./commitlint.js";
7
7
  import editorconfigConfig from "./editorconfig.js";
8
8
  import eslintLintStaged from "./eslint-lint-staged.js";
9
9
  import gitattributesConfig from "./gitattributes.js";
10
+ import githubCodespacesConfig from "./github-codespaces.js";
10
11
  import githubCodespacesPostcreate from "./github-codespaces-postcreate.js";
11
12
  import githubDeprecatedDependenciesConfig from "./github-deprecated-dependencies/index.js";
12
13
  import deprecatedDependenciesIssueTemplate from "./github-deprecated-dependencies-issue-template.js";
@@ -22,7 +23,7 @@ export default function () {
22
23
  ".cz.json": `${JSON.stringify(commitizenConfig, void 0, 2)}
23
24
  `,
24
25
  ".devcontainer": {
25
- "devcontainer.json": `${JSON.stringify(this.githubCodespacesConfig, void 0, 2)}
26
+ "devcontainer.json": `${JSON.stringify(githubCodespacesConfig, void 0, 2)}
26
27
  `,
27
28
  "postcreate.sh": githubCodespacesPostcreate
28
29
  },
package/dist/index.d.ts CHANGED
@@ -6,9 +6,9 @@ import type { PartialCommandObjectInObject } from 'make-cli';
6
6
  import type { RenovateConfig } from 'renovate/dist/config/types';
7
7
  import type { PackageJson, TsConfigJson } from 'type-fest';
8
8
  import type { PartialCommandOptions } from './commands/command-options-input';
9
- type HandlerWithBase<TConfig extends Config = Config> = (this: Base<TConfig>, ...args: unknown[]) => unknown;
9
+ type HandlerWithBase<TConfig extends Config = Config> = (this: Base<TConfig>, ...args: any[]) => any;
10
10
  type PartialCommandObjectInObjectWithBase<TConfig extends Config = Config> = Omit<PartialCommandObjectInObject, 'handler'> & {
11
- handler: (this: Base<TConfig>, ...args: unknown[]) => unknown;
11
+ handler: (this: Base<TConfig>, ...args: any[]) => any;
12
12
  };
13
13
  type PartialCommandInObjectWithBase<TConfig extends Config = Config> = PartialCommandObjectInObjectWithBase<TConfig> | HandlerWithBase<TConfig>;
14
14
  type Config = {
@@ -64,9 +64,6 @@ declare class Base<TConfig extends Config = Config> {
64
64
  packageConfig: PackageJson;
65
65
  cwd: string;
66
66
  generatedFiles: any;
67
- githubCodespacesConfig: {
68
- postCreateCommand: string;
69
- };
70
67
  commit(...args: any[]): ResultPromise;
71
68
  lint(...args: any[]): ResultPromise;
72
69
  lintPackagejson(...args: any[]): void;
@@ -97,7 +94,7 @@ declare class Base<TConfig extends Config = Config> {
97
94
  constructor(configInput?: PartialConfig<TConfig>, { cwd }?: {
98
95
  cwd?: string | undefined;
99
96
  });
100
- run(name: any, ...args: any[]): any;
97
+ run<K extends keyof TConfig['commands'] & string>(name: K, ...args: Parameters<TConfig['commands'][K]['handler']>): ReturnType<TConfig['commands'][K]['handler']>;
101
98
  }
102
99
  export { default as loadConfig } from './load-config';
103
100
  export { default as loadConfigSync } from './load-config-sync';
package/dist/index.js CHANGED
@@ -38,7 +38,6 @@ import getReleaseConfig from "./get-generated-files/get-release/index.js";
38
38
  import getRenovateConfig from "./get-generated-files/get-renovate/index.js";
39
39
  import getTypescriptConfig from "./get-generated-files/get-typescript/index.js";
40
40
  import getVscodeConfig from "./get-generated-files/get-vscode/index.js";
41
- import githubCodespacesConfig from "./get-generated-files/github-codespaces.js";
42
41
  import getGitInfo from "./get-git-info/index.js";
43
42
  export const defineBaseConfig = configInput => configInput;
44
43
  const mergeConfigs = createDefu((obj, key, value) => {
@@ -53,7 +52,6 @@ class Base {
53
52
  packageConfig;
54
53
  cwd;
55
54
  generatedFiles;
56
- githubCodespacesConfig = githubCodespacesConfig;
57
55
  commit(...args) {
58
56
  return commit.call(this, ...args);
59
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "15.3.3",
3
+ "version": "15.3.5",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",