Commit
Author: Michael Davis [mcarsondavis@gmail.com]
Hash: 4af19767444abc8c24e9486b075eda8b5ad9ff8a
Timestamp: Thu, 23 Dec 2021 23:01:30 +0000 (2 years ago)

+70 -0 +/-3 browse
add npm package declaration
1diff --git a/.gitignore b/.gitignore
2new file mode 100644
3index 0000000..e623bbb
4--- /dev/null
5+++ b/.gitignore
6 @@ -0,0 +1,3 @@
7+ /node_modules/
8+ /tmp/
9+ /log.html
10 diff --git a/package-lock.json b/package-lock.json
11new file mode 100644
12index 0000000..5acd075
13--- /dev/null
14+++ b/package-lock.json
15 @@ -0,0 +1,25 @@
16+ {
17+ "name": "tree-sitter-gitdiff",
18+ "version": "0.0.1",
19+ "lockfileVersion": 1,
20+ "requires": true,
21+ "dependencies": {
22+ "nan": {
23+ "version": "2.15.0",
24+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz",
25+ "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ=="
26+ },
27+ "prettier": {
28+ "version": "2.5.1",
29+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz",
30+ "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==",
31+ "dev": true
32+ },
33+ "tree-sitter-cli": {
34+ "version": "0.20.1",
35+ "resolved": "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.20.1.tgz",
36+ "integrity": "sha512-I0Gp4ThRp39TDnBAaZKiogvoE85MSeL6/ILZMXbzeEo8hUsudpVhEHRE4CU+Bk5QUaiMiDkD+ZIL3gT2zZ++wg==",
37+ "dev": true
38+ }
39+ }
40+ }
41 diff --git a/package.json b/package.json
42new file mode 100644
43index 0000000..1eb5ed7
44--- /dev/null
45+++ b/package.json
46 @@ -0,0 +1,42 @@
47+ {
48+ "name": "tree-sitter-gitdiff",
49+ "version": "0.0.1",
50+ "description": "A tree-sitter grammar for git diffs",
51+ "main": "bindings/node",
52+ "scripts": {
53+ "test": "tree-sitter test",
54+ "format": "prettier --trailing-comma es5 --write grammar.js",
55+ "format-check": "prettier --trailing-comma es5 --check grammar.js"
56+ },
57+ "repository": {
58+ "type": "git",
59+ "url": "git+https://github.com/the-mikedavis/tree-sitter-gitdiff.git"
60+ },
61+ "keywords": [
62+ "tree-sitter",
63+ "parser",
64+ "lexer",
65+ "git",
66+ "diff"
67+ ],
68+ "author": "the-mikedavis",
69+ "license": "MIT",
70+ "bugs": {
71+ "url": "https://github.com/the-mikedavis/tree-sitter-gitdiff/issues"
72+ },
73+ "homepage": "https://github.com/the-mikedavis/tree-sitter-gitdiff#readme",
74+ "dependencies": {
75+ "nan": "^2.15.0"
76+ },
77+ "devDependencies": {
78+ "prettier": "^2.5.1",
79+ "tree-sitter-cli": "^0.20.1"
80+ },
81+ "tree-sitter": [
82+ {
83+ "file-types": [
84+ "diff"
85+ ]
86+ }
87+ ]
88+ }