@ankhorage/devtools 2.3.15 → 2.3.16
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
|
-
         
|
|
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
|
|
356
|
-
|
|
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.
|
|
3
|
+
"version": "2.3.16",
|
|
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",
|