Skip to content

deps: swap @feralfile/source-resolver git URL for npm registry semver - #96

Merged
ngleanh merged 2 commits into
mainfrom
resolver-npm-dep
Jul 27, 2026
Merged

deps: swap @feralfile/source-resolver git URL for npm registry semver#96
ngleanh merged 2 commits into
mainfrom
resolver-npm-dep

Conversation

@moskovich

Copy link
Copy Markdown
Contributor

What

Replaces the git-URL dependency on @feralfile/source-resolver with ^1.0.0 from the npm registry, and removes the README --allow-git workaround note that this makes obsolete.

Why

npm 12's supply-chain defaults (allow-git=none) refuse git-URL dependencies, which currently breaks npm i -g @feralfile/cli for end users on npm 12 and npm ci for contributors. Publishing the resolver properly fixes both without weakening npm's protections. Companion PR adding the resolver's publish pipeline: feral-file/ff-source-resolver#11.

Draft until

  1. release: add npm publish workflow (OIDC trusted publishing) ff-source-resolver#11 merges and @feralfile/source-resolver@1.0.0 is published (bootstrap steps in that PR).
  2. package-lock.json is regenerated here with npm install (CI stays red on lockfile mismatch until then).

Note: ^1.0.0 is cut from resolver main, two merges ahead of the old commit pin — it picks up playable-artwork-source resolution and its hardening fix. ff-cli's resolver-path tests will exercise the delta once the lockfile lands.

Bundled release binaries and the curl install path are unaffected either way (esbuild inlines the dependency); this changes only npm-based installs.

Blocked on the resolver's first npm publish
(feral-file/ff-source-resolver#11). npm 12 defaults allow-git=none, so
the git-URL dependency breaks npm i -g @feralfile/cli for end users and
npm ci for contributors. After the registry publish lands, regenerate
package-lock.json with npm install and drop the README allow-git
workaround note (done here).

Note: ^1.0.0 is cut from current resolver main, two merges ahead of the
old commit pin (playable artwork source resolution + hardening).
@moskovich

Copy link
Copy Markdown
Contributor Author

Blocked on the resolver's first npm publish: feral-file/ff-source-resolver#13 (assigned to @ngleanh). Once @feralfile/source-resolver@1.0.0 is live, this needs a regenerated package-lock.json and can come out of draft.

@ngleanh
ngleanh marked this pull request as ready for review July 27, 2026 07:43
@ngleanh
ngleanh merged commit a005b35 into main Jul 27, 2026
6 checks passed
@ngleanh
ngleanh deleted the resolver-npm-dep branch July 27, 2026 07:43
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.

2 participants