Skip to content

Conversation

@eablack
Copy link
Contributor

@eablack eablack commented Feb 2, 2026

WIP

The package-lock.json was out of sync with package.json after removing
the monorepo structure, causing npm ci to fail in CI. Regenerated the
lock file to resolve dependency mismatches.
Update test and config file paths that were still referencing the old
monorepo structure (packages/cli).
After switching from /lib to /dist in commit 1fad4d5, the
oclif.config.mjs wasn't updated to point to the new directory.
This caused commands to not be discovered.

Also set OCLIF_TEST_ROOT environment variable in test init to help
@oclif/test find the CLI root after monorepo removal.
The apps:create command creates actual git remotes when running in a
git repository. In tests, this was creating a 'heroku' remote pointing
to 'foobar' which then interfered with other tests that check for app
names from git remotes.

Added cleanup in afterEach to remove any heroku remotes created during
the tests.
After removing the monorepo structure, the example Procfile that local
command tests depended on was deleted. Created a test fixture at
test/fixtures/local/Procfile with the same content.

Updated tests that verify default Procfile loading to change directory
to the fixtures location before running, ensuring they can find the
default Procfile without explicitly specifying the path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant