-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
45 lines (45 loc) · 2.25 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"type": "module",
"name": "rehype-tree-sitter",
"version": "0.2.5",
"description": "a rehype plugin to provide syntax highlighting for html code blocks using tree-sitter",
"exports": "./index.js",
"scripts": {
"test": "node --experimental-vm-modules ./node_modules/.bin/jest",
"create-dist-folder": "mkdir -p dist",
"copy-macos-aarch64-artifact": "npm run create-dist-folder && cp target/aarch64-apple-darwin/release/librehype_tree_sitter.dylib dist/aarch64-apple-darwin.node",
"build-macos-aarch64": "cargo zigbuild --target=aarch64-apple-darwin --release && npm run copy-macos-aarch64-artifact",
"copy-macos-x86-artifact": "npm run create-dist-folder && cp target/x86_64-apple-darwin/release/librehype_tree_sitter.dylib dist/x86_64-apple-darwin.node",
"build-macos-x86": "cargo zigbuild --target=x86_64-apple-darwin --release && npm run copy-macos-x86-artifact",
"copy-linux-x86-gnu-artifact": "npm run create-dist-folder && cp target/x86_64-unknown-linux-gnu/release/librehype_tree_sitter.so dist/x86_64-unknown-linux-gnu.node",
"build-linux-x86-gnu": "cargo zigbuild --target=x86_64-unknown-linux-gnu --release && npm run copy-linux-x86-gnu-artifact",
"copy-linux-aarch64-gnu-artifact": "npm run create-dist-folder && cp target/aarch64-unknown-linux-gnu/release/librehype_tree_sitter.so dist/aarch64-unknown-linux-gnu.node",
"build-linux-aarch64-gnu": "cargo zigbuild --target=aarch64-unknown-linux-gnu --release && npm run copy-linux-aarch64-gnu-artifact",
"build-all": "npm run build-macos-aarch64 && npm run build-macos-x86 && npm run build-linux-x86-gnu && npm run build-linux-aarch64-gnu",
"install": "node install.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/haze/rehype-tree-sitter.git"
},
"keywords": [
"tree-sitter",
"rehype"
],
"author": "Haze Booth <isnt@haze.cool>",
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/haze/rehype-tree-sitter/issues"
},
"homepage": "https://github.com/haze/rehype-tree-sitter#readme",
"devDependencies": {
"jest": "^29.6.1",
"cargo-cp-artifact": "^0.1"
},
"dependencies": {
"hastscript": "^7.2.0",
"rehype": "^12.0.1",
"string-byte-slice": "^2.0.0",
"unist-util-visit": "^5.0.0"
}
}