@ankhorage/devtools 2.3.18 → 2.3.20

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.18](././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.20](././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
 
@@ -373,7 +373,37 @@ jobs:
373
373
  fi
374
374
  case "$loader" in
375
375
  import)
376
- PACKAGE_SPECIFIER="$specifier" bun -e 'await import(process.env.PACKAGE_SPECIFIER)'
376
+ runtime_log="$(mktemp "${RUNNER_TEMP}/standalone-runtime.XXXXXX")"
377
+ if PACKAGE_SPECIFIER="$specifier" bun -e 'await import(process.env.PACKAGE_SPECIFIER)' >"$runtime_log" 2>&1; then
378
+ continue
379
+ fi
380
+
381
+ if grep -Fq 'react-native/index.js' "$runtime_log" && grep -Fq 'Unexpected typeof' "$runtime_log"; then
382
+ platform_dir="$(mktemp -d "${install_dir}/packed-platform.XXXXXX")"
383
+ platform_output_dir="$(mktemp -d "${RUNNER_TEMP}/standalone-platform-output.XXXXXX")"
384
+ printf '{"expo":{"name":"packed-platform-verification","slug":"packed-platform-verification"}}\n' > "$platform_dir/app.json"
385
+ APP_DIR="$platform_dir" PACKAGE_SPECIFIER="$specifier" node - <<'NODE'
386
+ const { writeFileSync } = require('node:fs');
387
+ const { join } = require('node:path');
388
+ const appDir = process.env.APP_DIR;
389
+ const specifier = process.env.PACKAGE_SPECIFIER;
390
+ if (typeof appDir !== 'string' || typeof specifier !== 'string') {
391
+ throw new Error('The platform verification app and package specifier are required.');
392
+ }
393
+ writeFileSync(join(appDir, 'App.tsx'), `export * from ${JSON.stringify(specifier)};\n`);
394
+ NODE
395
+ if (
396
+ cd "$platform_dir"
397
+ "$install_dir/node_modules/.bin/expo" export --platform ios --output-dir "$platform_output_dir"
398
+ ); then
399
+ echo "Verified React Native export $specifier with Expo."
400
+ continue
401
+ fi
402
+ fi
403
+
404
+ cat "$runtime_log"
405
+ echo "::error title=Packed runtime export failed::$specifier could not load with Bun or compile with Expo."
406
+ exit 1
377
407
  ;;
378
408
  require)
379
409
  PACKAGE_SPECIFIER="$specifier" node -e 'require(process.env.PACKAGE_SPECIFIER)'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/devtools",
3
- "version": "2.3.18",
3
+ "version": "2.3.20",
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",