@pubm/plugin-external-version-sync 0.4.0 → 0.4.2

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -79,13 +79,13 @@ function externalVersionSync(options) {
79
79
  if (options.version) {
80
80
  version = options.version(plan.packages);
81
81
  } else {
82
- throw new Error("external-version-sync: 'version' callback is required in independent mode. " + "Provide a version picker, e.g. version: (pkgs) => pkgs.get('@pubm/core') ?? ''");
82
+ throw new Error("external-version-sync: 'version' callback is required in independent mode. " + "Provide a version picker, e.g. version: (pkgs) => pkgs.get('packages/core') ?? ''");
83
83
  }
84
84
  } else {
85
85
  version = plan.version;
86
86
  }
87
87
  } else {
88
- version = ctx.runtime.version;
88
+ throw new Error("external-version-sync: versionPlan is not set.");
89
89
  }
90
90
  const errors = [];
91
91
  for (const target of options.targets) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubm/plugin-external-version-sync",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "pubm plugin to sync versions to external files",
6
6
  "main": "./dist/index.js",