@pubm/core 0.4.2 → 0.4.3

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.
@@ -15,5 +15,6 @@ export interface ResolvedPackage {
15
15
  dependencies: string[];
16
16
  registryVersions?: Map<RegistryType, string>;
17
17
  }
18
+ export declare function resolvePatterns(cwd: string, patterns: string[]): string[];
18
19
  export declare function discoverPackages(options: DiscoverOptions): Promise<ResolvedPackage[]>;
19
20
  //# sourceMappingURL=discover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/monorepo/discover.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,yBAAyB,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,YAAY,CAAC;IACxB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;CAC9C;AA+ID,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,eAAe,EAAE,CAAC,CA8C5B"}
1
+ {"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/monorepo/discover.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,yBAAyB,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,YAAY,CAAC;IACxB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;CAC9C;AA0BD,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAiBzE;AAoGD,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,eAAe,EAAE,CAAC,CA8C5B"}
@@ -1,5 +1,6 @@
1
1
  export { buildDependencyGraph, type PackageNode, topologicalSort, } from "./dependency-graph.js";
2
- export { type DiscoverOptions, discoverPackages, type ResolvedPackage, } from "./discover.js";
2
+ export { type DiscoverOptions, discoverPackages, type ResolvedPackage, resolvePatterns, } from "./discover.js";
3
3
  export { applyFixedGroup, applyLinkedGroup, resolveGroups } from "./groups.js";
4
+ export { collectWorkspaceVersions, resolveWorkspaceProtocol, resolveWorkspaceProtocolsInManifests, restoreManifests, } from "./resolve-workspace.js";
4
5
  export { detectWorkspace, type WorkspaceInfo } from "./workspace.js";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/monorepo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,WAAW,EAChB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,eAAe,EACpB,gBAAgB,EAChB,KAAK,eAAe,GACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/monorepo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,WAAW,EAChB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,eAAe,EACpB,gBAAgB,EAChB,KAAK,eAAe,EACpB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,oCAAoC,EACpC,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Resolve a single workspace: protocol specifier to a concrete version string.
3
+ * Follows pnpm/yarn/bun publish resolution rules.
4
+ */
5
+ export declare function resolveWorkspaceProtocol(spec: string, version: string): string;
6
+ /**
7
+ * Build a Map<packageName, version> for all workspace packages.
8
+ * Uses cwd-based workspace discovery, not pubm config.
9
+ */
10
+ export declare function collectWorkspaceVersions(cwd: string): Map<string, string>;
11
+ /**
12
+ * Resolve workspace: protocols in package.json files.
13
+ * Returns a Map<filePath, originalContent> for restoration.
14
+ */
15
+ export declare function resolveWorkspaceProtocolsInManifests(packagePaths: string[], workspaceVersions: Map<string, string>): Map<string, string>;
16
+ /**
17
+ * Restore original package.json files from backups.
18
+ */
19
+ export declare function restoreManifests(backups: Map<string, string>): void;
20
+ //# sourceMappingURL=resolve-workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-workspace.d.ts","sourceRoot":"","sources":["../../src/monorepo/resolve-workspace.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,MAAM,CAeR;AAOD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAkCzE;AAED;;;GAGG;AACH,wBAAgB,oCAAoC,CAClD,YAAY,EAAE,MAAM,EAAE,EACtB,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA0CrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAInE"}
@@ -1 +1 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/tasks/runner.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAuYjD,wBAAsB,GAAG,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAw/BzD"}
1
+ {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/tasks/runner.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA4ajD,wBAAsB,GAAG,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAyhCzD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubm/core",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "description": "Core SDK for pubm - publish manager for multiple registries",
6
6
  "types": "./dist/index.d.ts",