@dotcom-tool-kit/base 1.1.10 → 1.2.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.
- package/CHANGELOG.md +7 -0
- package/lib/init.d.ts +4 -1
- package/lib/init.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/init.ts +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -60,6 +60,13 @@
|
|
|
60
60
|
* @dotcom-tool-kit/config bumped from ^1.0.12 to ^1.1.0
|
|
61
61
|
* @dotcom-tool-kit/plugin bumped from ^1.0.0 to ^1.1.0
|
|
62
62
|
|
|
63
|
+
## [1.2.0](https://github.com/Financial-Times/dotcom-tool-kit/compare/base-v1.1.10...base-v1.2.0) (2025-03-03)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Features
|
|
67
|
+
|
|
68
|
+
* **base:** pass cwd into init method ([b6cc028](https://github.com/Financial-Times/dotcom-tool-kit/commit/b6cc028129138869866f88860d544f5056668080))
|
|
69
|
+
|
|
63
70
|
## [1.1.5](https://github.com/Financial-Times/dotcom-tool-kit/compare/base-v1.1.4...base-v1.1.5) (2025-01-14)
|
|
64
71
|
|
|
65
72
|
|
package/lib/init.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { Logger } from 'winston';
|
|
2
2
|
import { typeSymbol } from './symbols';
|
|
3
3
|
import { Base } from './base';
|
|
4
|
+
export type InitContext = {
|
|
5
|
+
cwd: string;
|
|
6
|
+
};
|
|
4
7
|
export declare abstract class Init extends Base {
|
|
5
8
|
logger: Logger;
|
|
6
9
|
constructor(logger: Logger);
|
|
7
10
|
static get [typeSymbol](): symbol;
|
|
8
11
|
get [typeSymbol](): symbol;
|
|
9
|
-
abstract init(): Promise<void>;
|
|
12
|
+
abstract init(context: InitContext): Promise<void>;
|
|
10
13
|
}
|
|
11
14
|
export type InitConstructor = {
|
|
12
15
|
new (logger: Logger): Init;
|
package/lib/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAc,UAAU,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,8BAAsB,IAAK,SAAQ,IAAI;IACrC,MAAM,EAAE,MAAM,CAAA;gBAEF,MAAM,EAAE,MAAM;IAK1B,MAAM,KAAK,CAAC,UAAU,CAAC,IAAI,MAAM,CAEhC;IAED,IAAI,CAAC,UAAU,CAAC,IAAI,MAAM,CAEzB;IAED,QAAQ,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAc,UAAU,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,8BAAsB,IAAK,SAAQ,IAAI;IACrC,MAAM,EAAE,MAAM,CAAA;gBAEF,MAAM,EAAE,MAAM;IAK1B,MAAM,KAAK,CAAC,UAAU,CAAC,IAAI,MAAM,CAEhC;IAED,IAAI,CAAC,UAAU,CAAC,IAAI,MAAM,CAEzB;IAED,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CACnD;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,OAAO,IAAI,CAAA"}
|
package/package.json
CHANGED
package/src/init.ts
CHANGED
|
@@ -2,6 +2,10 @@ import type { Logger } from 'winston'
|
|
|
2
2
|
import { initSymbol, typeSymbol } from './symbols'
|
|
3
3
|
import { Base } from './base'
|
|
4
4
|
|
|
5
|
+
export type InitContext = {
|
|
6
|
+
cwd: string
|
|
7
|
+
}
|
|
8
|
+
|
|
5
9
|
export abstract class Init extends Base {
|
|
6
10
|
logger: Logger
|
|
7
11
|
|
|
@@ -18,7 +22,7 @@ export abstract class Init extends Base {
|
|
|
18
22
|
return initSymbol
|
|
19
23
|
}
|
|
20
24
|
|
|
21
|
-
abstract init(): Promise<void>
|
|
25
|
+
abstract init(context: InitContext): Promise<void>
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
export type InitConstructor = {
|