From 04a6b8a8ac843ab640cd7556ae356a4062b1b8df Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sun, 7 Sep 2025 17:38:59 +0300 Subject: [PATCH] feat(npm)!: rename package to @tree-sitter-grammars/tree-sitter-query Problem: Cannot publish new versions on npmjs since tree-sitter-query package owner is unresponsive. Solution: Publish packages as @tree-sitter-grammars/tree-sitter-query. --- .github/workflows/publish.yaml | 2 ++ package-lock.json | 4 ++-- package.json | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2b6d054..9ad208e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,6 +12,8 @@ concurrency: jobs: npm: uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main + with: + package-name: "@tree-sitter-grammars/tree-sitter-query" secrets: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} crates: diff --git a/package-lock.json b/package-lock.json index 8100ac5..9eb7c03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "tree-sitter-query", + "name": "@tree-sitter-grammars/tree-sitter-query", "version": "0.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "tree-sitter-query", + "name": "@tree-sitter-grammars/tree-sitter-query", "version": "0.7.0", "hasInstallScript": true, "license": "Apache-2.0", diff --git a/package.json b/package.json index ac6ddc0..0e934e9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "tree-sitter-query", + "name": "@tree-sitter-grammars/tree-sitter-query", "version": "0.7.0", "description": "TS query grammar for tree-sitter", "repository": "https://github.com/tree-sitter-grammars/tree-sitter-query", @@ -46,5 +46,8 @@ "prestart": "tree-sitter build --wasm", "start": "tree-sitter playground", "test": "node --test bindings/node/*_test.js" + }, + "publishConfig": { + "access": "public" } }