@elmeragroup/internal 0.2.0-canary.0 → 0.2.0-canary.1

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/release.mjs +8 -10
  2. package/package.json +8 -8
package/dist/release.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { createRequire } from "node:module";
3
3
  import { Duration, Effect, Result, Schedule, Schema } from "effect";
4
- import { isAbsolute, join, relative, resolve, sep } from "node:path";
4
+ import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
5
5
  import { existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
6
6
  import { execFileSync, spawnSync } from "node:child_process";
7
7
  import { createHash } from "node:crypto";
@@ -535,25 +535,23 @@ function trackedBranchOf(baseBranch) {
535
535
  /**
536
536
  * Asks Changesets which releases the pending changesets in `checkoutRoot` would produce.
537
537
  *
538
- * Two properties of the pinned CLI are load-bearing here. It writes `--output` with
539
- * `path.join(cwd, output)`, so the path must stay relative to the directory the CLI runs in; an
540
- * absolute path is concatenated onto that directory instead. It also resolves the configured
541
- * `baseBranch` through `git merge-base`, which is why `.changeset/config.json` names
542
- * `origin/<branch>` — the publisher runs in a detached checkout of one commit, where a bare branch
543
- * name does not resolve. Passing `--since` is not a substitute: it also filters out every changeset
544
- * added before that ref, which would silently plan the wrong version.
538
+ * The load-bearing property of the pinned CLI is that it resolves the configured `baseBranch`
539
+ * through `git merge-base`, which is why `.changeset/config.json` names `origin/<branch>` — the
540
+ * publisher runs in a detached checkout of one commit, where a bare branch name does not resolve.
541
+ * Passing `--since` is not a substitute: it also filters out every changeset added before that ref,
542
+ * which would silently plan the wrong version.
545
543
  *
546
544
  * The CLI binary is resolved from the consuming checkout, never from this package's location.
547
545
  */
548
546
  function readReleasePlan(checkoutRoot) {
549
547
  const planPath = resolve(checkoutRoot, planFileName);
550
- mkdirSync(resolve(checkoutRoot, ".artifacts"), { recursive: true });
548
+ mkdirSync(dirname(planPath), { recursive: true });
551
549
  try {
552
550
  execFileSync(process.execPath, [
553
551
  changesetBin(checkoutRoot),
554
552
  "status",
555
553
  "--output",
556
- planFileName
554
+ planPath
557
555
  ], {
558
556
  cwd: checkoutRoot,
559
557
  stdio: "pipe"
package/package.json CHANGED
@@ -3,22 +3,22 @@
3
3
  "type": "module",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
- "effect": "4.0.0-rc.111",
6
+ "effect": "4.0.0-rc.115",
7
7
  "typescript": "7.0.2",
8
- "@oxlint/plugins": "1.78.0"
8
+ "@oxlint/plugins": "1.82.0"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@types/node": "25.9.5",
12
- "vitest": "4.1.10",
12
+ "vitest": "4.1.11",
13
13
  "tsdown": "0.23.0",
14
- "@elmeragroup/typescript-config": "0.0.0",
15
14
  "@elmeragroup/api-extractor": "0.0.0",
16
15
  "@elmeragroup/oxlint-plugin": "0.0.0",
16
+ "@elmeragroup/api-artifacts": "0.0.0",
17
17
  "@elmeragroup/oxlint-plugin-anti-slop": "0.0.0",
18
- "@elmeragroup/release": "0.0.0",
19
- "@elmeragroup/api-artifacts": "0.0.0"
18
+ "@elmeragroup/typescript-config": "0.0.0",
19
+ "@elmeragroup/release": "0.0.0"
20
20
  },
21
- "version": "0.2.0-canary.0",
21
+ "version": "0.2.0-canary.1",
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.mts",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "sideEffects": false,
71
71
  "elmeraRelease": {
72
- "commit": "408e0d2a54342abfc6efc9492434a6e91a0eec93",
72
+ "commit": "53d7c332e91b6755b2b3f546ed3a39320acf914f",
73
73
  "channel": "canary"
74
74
  },
75
75
  "scripts": {