From 59f3cb91c2d8f5bd8851d2cefd204473f2fe6cec Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sat, 30 Aug 2025 22:54:11 +0300 Subject: [PATCH] fix(npm): add directory to repository fields and remove non-existent "main" entry point (cherry picked from commit 90bdd63a7175fe5341d7f416776d04abd7516c00) --- cli/eslint/package.json | 3 ++- cli/npm/package.json | 4 ++-- lib/binding_web/package.json | 7 +++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cli/eslint/package.json b/cli/eslint/package.json index d53bf3a4..a3ba26c9 100644 --- a/cli/eslint/package.json +++ b/cli/eslint/package.json @@ -4,7 +4,8 @@ "description": "Eslint configuration for Tree-sitter grammar files", "repository": { "type": "git", - "url": "git+https://github.com/tree-sitter/tree-sitter.git" + "url": "git+https://github.com/tree-sitter/tree-sitter.git", + "directory": "crates/cli/eslint" }, "license": "MIT", "author": "Amaan Qureshi ", diff --git a/cli/npm/package.json b/cli/npm/package.json index dddff0a9..34ef9901 100644 --- a/cli/npm/package.json +++ b/cli/npm/package.json @@ -14,14 +14,14 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/tree-sitter/tree-sitter.git" + "url": "git+https://github.com/tree-sitter/tree-sitter.git", + "directory": "crates/cli/npm" }, "description": "CLI for generating fast incremental parsers", "keywords": [ "parser", "lexer" ], - "main": "lib/api/index.js", "engines": { "node": ">=12.0.0" }, diff --git a/lib/binding_web/package.json b/lib/binding_web/package.json index 72ca73ca..9945c51d 100644 --- a/lib/binding_web/package.json +++ b/lib/binding_web/package.json @@ -2,8 +2,11 @@ "name": "web-tree-sitter", "version": "0.25.8", "description": "Tree-sitter bindings for the web", - "repository": "https://github.com/tree-sitter/tree-sitter", - "homepage": "https://github.com/tree-sitter/tree-sitter/tree/master/lib/binding_web", + "repository": { + "type": "git", + "url": "git+https://github.com/tree-sitter/tree-sitter.git", + "directory": "lib/binding_web" + }, "license": "MIT", "author": { "name": "Max Brunsfeld",