From 0f9cc8896b0f51aa5872b7aed81de8d788f462e3 Mon Sep 17 00:00:00 2001 From: Ika Date: Sun, 18 Aug 2019 21:13:19 +0800 Subject: [PATCH] chore: update gitattributes and add prepack script --- .gitattributes | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index 8ac44ac..dfbd374 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,6 @@ * text eol=lf -/src/** linguist-vendored -/examples/* linguist-vendored +/src/** linguist-generated +/src/scanner.c linguist-generated=false +/index.js linguist-generated +/binding.gyp linguist-detectable=false diff --git a/package.json b/package.json index 77761c7..ab96013 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "scripts": { "lint": "prettier grammar.js --check", "test": "tree-sitter test && tree-sitter parse examples/*.toml --quiet --time", - "build": "tree-sitter generate && node-gyp build", + "prepack": "tree-sitter generate", "release": "standard-version" }, "dependencies": {