@intellectual-frontiers/ergonex 0.2.2 → 0.2.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.
Files changed (2) hide show
  1. package/ergonex.mjs +3 -2
  2. package/package.json +1 -1
package/ergonex.mjs CHANGED
@@ -5040,7 +5040,7 @@ function checkFiles(files, repositories) {
5040
5040
  }
5041
5041
 
5042
5042
  // src/state-record.ts
5043
- var ERGONEX_VERSION = "0.2.2";
5043
+ var ERGONEX_VERSION = "0.2.3";
5044
5044
  var STATE_RECORD_PATH = ".ergonex/state.auto.json";
5045
5045
  var EMPTY_RECORD = {
5046
5046
  ergonex: ERGONEX_VERSION,
@@ -8695,7 +8695,8 @@ function globalInstall(l) {
8695
8695
  var firstLine = (s) => s.split(`
8696
8696
  `).find((l) => l.trim() !== "")?.trim() ?? "no reason given";
8697
8697
  async function putOnPath(deps, launch) {
8698
- const there = deps.which("ergonex");
8698
+ const found = deps.which("ergonex");
8699
+ const there = found !== undefined && launch.kind === "registry" && isRegistryCopy(found) ? undefined : found;
8699
8700
  if (there !== undefined)
8700
8701
  return {
8701
8702
  lines: [`ergonex is already on your path (${there})`],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intellectual-frontiers/ergonex",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Ergonex, the workspaces management of Intellectual Frontiers: one command that sets up, configures and operates a team's software repositories, package registries and builds, on Windows, macOS and Linux, with Bun by default and Node 26 as the backup.",
5
5
  "license": "MIT",
6
6
  "type": "module",