@dword-design/base 15.1.2 → 15.1.4
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/dist/index.d.ts +10 -10
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import type { PartialCommandObjectInObject } from 'make-cli';
|
|
|
5
5
|
import type { RenovateConfig } from 'renovate/dist/config/types';
|
|
6
6
|
import type { PackageJson, TsConfigJson } from 'type-fest';
|
|
7
7
|
import type { PartialCommandOptions } from './commands/command-options-input';
|
|
8
|
-
type HandlerWithBase = (this: Base
|
|
9
|
-
type PartialCommandObjectInObjectWithBase = Omit<PartialCommandObjectInObject, 'handler'> & {
|
|
10
|
-
handler: (this: Base
|
|
8
|
+
type HandlerWithBase<TConfig extends Config = Config> = (this: Base<TConfig>, ...args: unknown[]) => unknown;
|
|
9
|
+
type PartialCommandObjectInObjectWithBase<TConfig extends Config = Config> = Omit<PartialCommandObjectInObject, 'handler'> & {
|
|
10
|
+
handler: (this: Base<TConfig>, ...args: unknown[]) => unknown;
|
|
11
11
|
};
|
|
12
|
-
type PartialCommandInObjectWithBase = PartialCommandObjectInObjectWithBase | HandlerWithBase
|
|
12
|
+
type PartialCommandInObjectWithBase<TConfig extends Config = Config> = PartialCommandObjectInObjectWithBase<TConfig> | HandlerWithBase<TConfig>;
|
|
13
13
|
type Config = {
|
|
14
14
|
name?: string;
|
|
15
15
|
global: boolean;
|
|
@@ -50,14 +50,14 @@ type Config = {
|
|
|
50
50
|
renovateConfig: RenovateConfig;
|
|
51
51
|
isLockFileFixCommitType: boolean;
|
|
52
52
|
};
|
|
53
|
-
type PartialConfigObject = Omit<Partial<
|
|
54
|
-
commands?: Record<string, PartialCommandInObjectWithBase
|
|
53
|
+
type PartialConfigObject<TConfig extends Config = Config> = Omit<Partial<TConfig>, 'commands'> & {
|
|
54
|
+
commands?: Record<string, PartialCommandInObjectWithBase<TConfig>>;
|
|
55
55
|
};
|
|
56
|
-
type PartialConfigOrFunction = PartialConfigObject | ((this: Base
|
|
57
|
-
type PartialConfig = PartialConfigOrFunction | string | null;
|
|
56
|
+
type PartialConfigOrFunction<TConfig extends Config = Config> = PartialConfigObject | ((this: Base<TConfig>, config: TConfig) => PartialConfigObject<TConfig>);
|
|
57
|
+
type PartialConfig<TConfig extends Config = Config> = PartialConfigOrFunction<TConfig> | string | null;
|
|
58
58
|
export declare const defineBaseConfig: <T>(configInput: T) => T;
|
|
59
|
-
declare class Base {
|
|
60
|
-
config:
|
|
59
|
+
declare class Base<TConfig extends Config = Config> {
|
|
60
|
+
config: TConfig;
|
|
61
61
|
packageConfig: PackageJson;
|
|
62
62
|
cwd: string;
|
|
63
63
|
generatedFiles: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.4",
|
|
4
4
|
"description": "Base package for projects.",
|
|
5
5
|
"repository": "dword-design/base",
|
|
6
6
|
"funding": "https://github.com/sponsors/dword-design",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@commitlint/cli": "^18.6.1",
|
|
37
37
|
"@commitlint/config-conventional": "^18.6.3",
|
|
38
38
|
"@dword-design/base-config-node": "^4.0.0",
|
|
39
|
-
"@dword-design/ci": "^
|
|
39
|
+
"@dword-design/ci": "^5.0.0",
|
|
40
40
|
"@dword-design/defu": "^1.0.3",
|
|
41
41
|
"@dword-design/eslint-config": "^8.0.0",
|
|
42
|
-
"@dword-design/personal-data": "^
|
|
42
|
+
"@dword-design/personal-data": "^3.0.0",
|
|
43
43
|
"@semantic-release/changelog": "^6.0.3",
|
|
44
44
|
"@semantic-release/git": "^10.0.1",
|
|
45
45
|
"ajv": "^8.17.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"execa": "^9.6.0",
|
|
59
59
|
"find-up": "^7.0.0",
|
|
60
60
|
"fs-extra": "^11.3.0",
|
|
61
|
-
"get-projectz-readme-section-regex": "^
|
|
61
|
+
"get-projectz-readme-section-regex": "^4.0.0",
|
|
62
62
|
"globby": "^14.1.0",
|
|
63
63
|
"hosted-git-info": "^8.0.0",
|
|
64
64
|
"husky": "^8.0.3",
|