@pubm/plugin-external-version-sync 0.4.6 → 0.4.7
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 +4 -0
- package/dist/sync.d.ts +2 -0
- package/dist/types.d.ts +15 -0
- package/package.json +2 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PubmPlugin } from "@pubm/core";
|
|
2
|
+
import type { ExternalVersionSyncOptions } from "./types.js";
|
|
3
|
+
export type { ExternalVersionSyncOptions, JsonTarget, RegexTarget, SyncTarget, } from "./types.js";
|
|
4
|
+
export declare function externalVersionSync(options: ExternalVersionSyncOptions): PubmPlugin;
|
package/dist/sync.d.ts
ADDED
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface JsonTarget {
|
|
2
|
+
file: string;
|
|
3
|
+
jsonPath: string;
|
|
4
|
+
}
|
|
5
|
+
export interface RegexTarget {
|
|
6
|
+
file: string;
|
|
7
|
+
pattern: RegExp;
|
|
8
|
+
}
|
|
9
|
+
export type SyncTarget = JsonTarget | RegexTarget;
|
|
10
|
+
export interface ExternalVersionSyncOptions {
|
|
11
|
+
targets: SyncTarget[];
|
|
12
|
+
version?: (packages: Map<string, string>) => string;
|
|
13
|
+
}
|
|
14
|
+
export declare function isJsonTarget(target: SyncTarget): target is JsonTarget;
|
|
15
|
+
export declare function isRegexTarget(target: SyncTarget): target is RegexTarget;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubm/plugin-external-version-sync",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "pubm plugin to sync versions to external files",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist/"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "bun build
|
|
18
|
+
"build": "bun run ./build.ts",
|
|
19
19
|
"check": "biome check",
|
|
20
20
|
"typecheck": "tsc --noEmit",
|
|
21
21
|
"test": "vitest --run",
|