@plurnk/plurnk-mimetypes-grammar-ruby 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.grammar-pin ADDED
@@ -0,0 +1 @@
1
+ ad907a69da0c8a4f7a943a7fe012712208da6dee
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PossumTech Laboratories, LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @plurnk/plurnk-mimetypes-grammar-ruby
2
+
3
+ Pre-built `tree-sitter-ruby` WASM grammar for the [@plurnk/plurnk-mimetypes](https://github.com/plurnk/plurnk-mimetypes) framework.
4
+
5
+ ## install
6
+
7
+ ```
8
+ npm i @plurnk/plurnk-mimetypes-grammar-ruby
9
+ ```
10
+
11
+ ## what's in here
12
+
13
+ - **`ruby.wasm`** — pre-built from the pinned upstream [tree-sitter-ruby](https://github.com/tree-sitter/tree-sitter-ruby) commit (SHA in `.grammar-pin`)
14
+ - `scripts/build-wasm.mjs` — reproducible rebuild from the pinned source
15
+ - `scripts/verify-wasm.mjs` — CI byte-identical reproducibility check
16
+
17
+ Declares only `web-tree-sitter` as a peer — no native `tree-sitter`, no node-gyp.
18
+
19
+ ## license
20
+
21
+ MIT. The bundled `ruby.wasm` is built from the upstream tree-sitter-ruby grammar; see the pinned commit for that project's attribution.
package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ // Pre-built tree-sitter-ruby WASM grammar for @plurnk/plurnk-mimetypes.
2
+ //
3
+ // This package ships exactly one thing: ruby.wasm at the package root.
4
+ // The framework's TreeSitterLanguageHandler resolves it at runtime via
5
+ // import.meta.resolve("@plurnk/plurnk-mimetypes-grammar-ruby/ruby.wasm").
6
+ import { fileURLToPath } from "node:url";
7
+ import path from "node:path";
8
+
9
+ const here = path.dirname(fileURLToPath(import.meta.url));
10
+
11
+ /** Absolute filesystem path to the bundled ruby.wasm. */
12
+ export const wasmPath = path.join(here, "ruby.wasm");
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@plurnk/plurnk-mimetypes-grammar-ruby",
3
+ "version": "0.1.0",
4
+ "description": "Pre-built tree-sitter-ruby WASM grammar for @plurnk/plurnk-mimetypes.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "engines": {
11
+ "node": ">=25"
12
+ },
13
+ "exports": {
14
+ ".": {
15
+ "default": "./index.js"
16
+ },
17
+ "./package.json": "./package.json",
18
+ "./ruby.wasm": "./ruby.wasm"
19
+ },
20
+ "files": [
21
+ "ruby.wasm",
22
+ ".grammar-pin",
23
+ "index.js",
24
+ "README.md"
25
+ ],
26
+ "scripts": {
27
+ "build:wasm": "node scripts/build-wasm.mjs",
28
+ "verify:wasm": "node scripts/verify-wasm.mjs"
29
+ },
30
+ "peerDependencies": {
31
+ "@plurnk/plurnk-mimetypes": ">=0.11.0",
32
+ "web-tree-sitter": "^0.25.0"
33
+ }
34
+ }
package/ruby.wasm ADDED
Binary file