diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-09-17 20:51:22 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-09-17 20:51:22 -0700 |
| commit | 3bb3bd7b393a4127a81f37c3f5b2d1f14c9abf63 (patch) | |
| tree | a861ca03e7a36d04690b1d2c5d85a812485bb56b /tests/codex-plugin-sync | |
| parent | 01c004da995f1e26c40b3832931810200ea6ab60 (diff) | |
fix(scripts): exclude root index.js from the Codex plugin sync
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'tests/codex-plugin-sync')
| -rwxr-xr-x | tests/codex-plugin-sync/test-sync-to-codex-plugin.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/codex-plugin-sync/test-sync-to-codex-plugin.sh b/tests/codex-plugin-sync/test-sync-to-codex-plugin.sh index 01de394..265aea1 100755 --- a/tests/codex-plugin-sync/test-sync-to-codex-plugin.sh +++ b/tests/codex-plugin-sync/test-sync-to-codex-plugin.sh @@ -196,6 +196,10 @@ write_upstream_fixture() { } EOF + cat > "$repo/index.js" <<'EOF' +export { default } from "./.opencode/plugins/superpowers.js"; +EOF + cat > "$repo/.gitignore" <<'EOF' .private-journal/ EOF @@ -303,6 +307,7 @@ EOF hooks/run-hook.cmd \ hooks/session-start \ hooks/session-start-codex \ + index.js \ package.json \ scripts/sync-to-codex-plugin.sh \ skills/example/SKILL.md @@ -664,6 +669,7 @@ main() { assert_not_contains "$preview_section" "evals/" "Preview excludes eval harness" assert_not_contains "$preview_section" ".gitmodules" "Preview excludes repo submodule metadata" assert_not_contains "$preview_section" ".pre-commit-config.yaml" "Preview excludes repo pre-commit config" + assert_not_contains "$preview_section" "index.js" "Preview excludes OpenCode root entrypoint" assert_not_contains "$preview_output" "Overlay file (.codex-plugin/plugin.json) will be regenerated" "Preview omits overlay regeneration note" assert_not_contains "$preview_output" "Assets (superpowers-small.svg, app-icon.png) will be seeded from" "Preview omits assets seeding note" assert_contains "$preview_section" "skills/example/SKILL.md" "Preview reflects dirty tracked destination file" |
