@ankhorage/devtools 2.3.15 → 2.3.17

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # @ankhorage/devtools
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v2.3.15](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v2.3.17](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
7
7
 
8
8
  Shared tooling, repository automation, and agent standards for Ankhorage TypeScript projects
9
9
 
@@ -269,6 +269,7 @@ jobs:
269
269
  fi
270
270
  printf '{"name":"standalone-consumer","private":true,"version":"0.0.0"}\n' > "$install_dir/package.json"
271
271
  package_name="$(node -p "require('./package.json').name")"
272
+ capability_module_path="$(node --input-type=module -e "import { createRequire } from 'node:module'; console.log(createRequire(import.meta.resolve('@ankhorage/devtools/cli')).resolve('@ankhorage/capability'))")"
272
273
  (
273
274
  cd "$install_dir"
274
275
  bun add "$artifact" --ignore-scripts
@@ -339,9 +340,8 @@ jobs:
339
340
  process.stdout.write(output.length === 0 ? '' : `${output.join('\n')}\n`);
340
341
  NODE
341
342
 
342
- PACKAGE_NAME="$package_name" node --input-type=module - <<'NODE'
343
+ PACKAGE_NAME="$package_name" CAPABILITY_MODULE_PATH="$capability_module_path" node --input-type=module - <<'NODE'
343
344
  import { readFileSync } from 'node:fs';
344
- import { createRequire } from 'node:module';
345
345
  import { join } from 'node:path';
346
346
  import { pathToFileURL } from 'node:url';
347
347
  const name = process.env.PACKAGE_NAME;
@@ -352,8 +352,10 @@ jobs:
352
352
  typeof manifest.ankh !== 'object' ||
353
353
  !Object.hasOwn(manifest.ankh, 'capabilities')
354
354
  ) process.exit(0);
355
- const requireFromPackage = createRequire(join(packageDir, 'package.json'));
356
- const capabilityPath = requireFromPackage.resolve('@ankhorage/capability');
355
+ const capabilityPath = process.env.CAPABILITY_MODULE_PATH;
356
+ if (typeof capabilityPath !== 'string' || capabilityPath.length === 0) {
357
+ throw new Error('The release capability validator module path is required.');
358
+ }
357
359
  const { areCapabilitiesEqual, isCapability, normalizeCapability } = await import(pathToFileURL(capabilityPath).href);
358
360
  const { CAPABILITIES } = await import(`${name}/capabilities`);
359
361
  const metadata = manifest.ankh.capabilities;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/devtools",
3
- "version": "2.3.15",
3
+ "version": "2.3.17",
4
4
  "description": "Shared tooling, repository automation, and agent standards for Ankhorage TypeScript projects",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ankhorage/devtools#readme",
@@ -492,8 +492,8 @@
492
492
  "dependencies": {
493
493
  "@ankhorage/apm": "^0.8.14",
494
494
  "@ankhorage/capability": "^0.2.1",
495
- "@ankhorage/contracts": "^25.2.0",
496
- "@ankhorage/project-detector": "^0.3.4",
495
+ "@ankhorage/contracts": "^26.0.0",
496
+ "@ankhorage/project-detector": "^0.3.5",
497
497
  "@ankhorage/rules-repository": "^0.2.0",
498
498
  "@ankhorage/utility": "^0.5.5",
499
499
  "@changesets/cli": "^3.0.3",
@@ -517,7 +517,7 @@
517
517
  },
518
518
  "devDependencies": {
519
519
  "@ankhorage/paradox": "^0.3.3",
520
- "@ankhorage/ankh": "^0.13.0",
520
+ "@ankhorage/ankh": "^0.13.1",
521
521
  "@ankhorage/doctor": "0.14.13",
522
522
  "@techstark/opencv-js": "^5.0.0-release.1",
523
523
  "@types/bun": "^1.4.2",