Skip to content

Commit 13c9f1f

Browse files
committed
docs(extensions): note how prerelease CLIs interact with the peer range
1 parent bcd08f0 commit 13c9f1f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

extensions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ types — needs `nativescript` declared twice:
4242
- The **dev dependency** is what makes `require("nativescript/contracts")`
4343
resolve while you build and test the extension. It is not installed for your
4444
users.
45+
- Developing against a **prerelease** CLI? Semver ranges without a prerelease
46+
tag never match one — `9.1.0-alpha.15` does not satisfy `>=9.1.0` — so pin
47+
the exact prerelease as your dev dependency and keep the stable floor in
48+
`peerDependencies`.
4549

4650
Never declare `nativescript` as a plain dependency.
4751

0 commit comments

Comments
 (0)