Skip to content

feat: support .config/portless.json#279

Open
luojiyin1987 wants to merge 6 commits intovercel-labs:mainfrom
luojiyin1987:feat/config-dir-support
Open

feat: support .config/portless.json#279
luojiyin1987 wants to merge 6 commits intovercel-labs:mainfrom
luojiyin1987:feat/config-dir-support

Conversation

@luojiyin1987
Copy link
Copy Markdown

Summary

Add support for loading project config from .config/portless.json as an alternative to the existing root portless.json.

Closes #268.

What changed

  • added .config/portless.json as a fallback config location
  • preserved existing precedence:
    1. portless.json
    2. .config/portless.json
    3. package.json#portless
  • kept apps path matching relative to the project root, including when config is loaded from .config/
  • added tests for precedence, validation, and workspace app matching
  • updated README, skills/portless/SKILL.md, and CLI help text

Why

This supports the growing .config/ convention without changing existing behavior for projects that already use portless.json.

Notes

Issue #268 suggests making package.json#portless highest precedence, but the current implementation and tests already define portless.json as higher precedence. This PR keeps the existing behavior and adds .config/portless.json as a non-breaking fallback.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2026

@luojiyin1987 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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.

Support .config/portless.json per the .config/ directory proposal

1 participant