Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 271a900

Browse files
author
Hendrik van Antwerpen
committed
Clarify possible version formats
1 parent 4541705 commit 271a900

File tree

1 file changed

+3
-1
lines changed
  • tree-sitter-stack-graphs/src/bin/tree-sitter-stack-graphs

1 file changed

+3
-1
lines changed

tree-sitter-stack-graphs/src/bin/tree-sitter-stack-graphs/init.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ impl ProjectSettings {
212212
213213
Give the NPM package version or dependency string for the {} dependency. The
214214
format can be any of:
215-
- MAJOR.MINOR.PATCH An NPM release version
215+
- MAJOR.MINOR.PATCH An NPM release version.
216+
Prefix with ~ to allow any patch version, for example: ~0.4.1
217+
Prefix with ^ to allow any minor version, for example: ^1.2.7
216218
- github:OWNER/REPOSITORY#COMMITISH A GitHub dependency, tagged to a branch, tag, or commit SHA
217219
"##,
218220
grammar_npm_name,

0 commit comments

Comments
 (0)