Fix npm package contents so Codex install path can resolve installer modules - #2
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Closed
Copilot
AI
changed the title
[WIP] Fix codex installation failure issue
Fix npm package contents so Codex install path can resolve installer modules
Jul 3, 2026
There was a problem hiding this comment.
Pull request overview
This PR fixes the published npm package contents so the installer (bin/install.js) can resolve its runtime ../scripts/* imports when run via npx (notably for the Codex install path).
Changes:
- Add
scripts/topackage.json#filesso required installer runtime modules ship in the published tarball. - Add a small packaging regression guard (
scripts/test/package-files.test.js) to assertscripts/remains included.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Publishes scripts/ so installer runtime require("../scripts/...") paths are present in distributed packages. |
| scripts/test/package-files.test.js | Adds a minimal test to guard against accidentally removing scripts/ from published package contents. |
| const { strict: assert } = require("assert"); | ||
| const pkg = require("../../package.json"); | ||
|
|
||
| assert.ok(pkg.files.includes("scripts/"), 'package.json "files" must include "scripts/"'); |
yugasun
approved these changes
Jul 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npx -y github:yugasun/aiops --ide codexwas failing at runtime becausebin/install.jsimports../scripts/providers, butscripts/was excluded from the published package. This PR updates package contents to ship required installer runtime modules and adds a focused guard against regression.Package publish contents
scripts/topackage.json#filesso runtime imports used bybin/install.jsare present in distributed tarballs.Regression guard for packaging
scripts/test/package-files.test.jsto assert thatpackage.json#filesincludesscripts/.Why this unblocks Codex install
{ "files": [ "bin/", "scripts/", "agents/", "skills/", "docs/" ] }