@mxpicture/build-api 0.2.14 → 0.2.15
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/logger/Logger.d.ts +1 -1
- package/dist/logger/Logger.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/types.barrel.d.ts +2 -3
- package/dist/types/types.changeset.d.ts +2 -4
- package/dist/types/types.cleanup.d.ts +2 -3
- package/dist/types/types.npm.d.ts +2 -3
- package/dist/types/types.run.d.ts +7 -0
- package/dist/types/types.run.js +1 -0
- package/package.json +3 -1
package/dist/logger/Logger.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface Logger {
|
|
|
4
4
|
error: LoggerHandler;
|
|
5
5
|
info: LoggerHandler;
|
|
6
6
|
}
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const initLogger: (log: Logger) => Logger;
|
|
8
8
|
export declare const logger: () => Logger;
|
|
9
9
|
export declare const logSuccess: LoggerHandler;
|
|
10
10
|
export declare const logError: LoggerHandler;
|
package/dist/logger/Logger.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let __logger = null;
|
|
2
|
-
export const
|
|
2
|
+
export const initLogger = (log) => (__logger = log);
|
|
3
3
|
export const logger = () => __logger ?? dummyLogger;
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
5
|
export const logSuccess = (...data) => logger().success(...data);
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RunRepoRootWsParams } from "./types.run.js";
|
|
1
2
|
export interface BarrelGroup {
|
|
2
3
|
dirPath: string;
|
|
3
4
|
files: string[];
|
|
@@ -9,9 +10,7 @@ export interface BarrelResult {
|
|
|
9
10
|
packageDir: string;
|
|
10
11
|
packageJsonPath: string;
|
|
11
12
|
}
|
|
12
|
-
export interface BarrelParams {
|
|
13
|
-
repoRoot: string;
|
|
14
|
-
workspacesName?: string;
|
|
13
|
+
export interface BarrelParams extends RunRepoRootWsParams {
|
|
15
14
|
excludes?: RegExp[];
|
|
16
15
|
fileHeader?: string;
|
|
17
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RunRepoRootWsParams } from "./types.run.js";
|
|
1
2
|
export interface ToBeDeleted {
|
|
2
3
|
name: string;
|
|
3
4
|
moveSuffix?: string;
|
|
@@ -6,8 +7,6 @@ export interface ToCleanup extends ToBeDeleted {
|
|
|
6
7
|
path: string;
|
|
7
8
|
moveTo?: string;
|
|
8
9
|
}
|
|
9
|
-
export interface CleanupParams {
|
|
10
|
-
repoRoot: string;
|
|
11
|
-
workspacesName?: string;
|
|
10
|
+
export interface CleanupParams extends RunRepoRootWsParams {
|
|
12
11
|
toBeDeleted?: ToBeDeleted[];
|
|
13
12
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
import { RunPackagesDirParams } from "./types.run.js";
|
|
2
|
+
export type NpmPublisherParams = RunPackagesDirParams;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mxpicture/build-api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "Build utilities API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "MXPicture",
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
"typescript": "^5.9.3"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
+
"@commander-js/extra-typings": "^14.0.0",
|
|
47
48
|
"@types/micromatch": "^4.0.10",
|
|
49
|
+
"commander": "^14.0.3",
|
|
48
50
|
"json5": "^2.2.3",
|
|
49
51
|
"micromatch": "^4.0.8",
|
|
50
52
|
"prettier": "^3.8.1",
|