refactor(bindings): remove npmignore

Replace with package.json files
This commit is contained in:
ObserverOfTime 2024-02-27 12:57:56 +02:00 committed by Amaan Qureshi
parent c03c773a24
commit 412a6a774e
4 changed files with 8 additions and 24 deletions

View file

@ -26,7 +26,6 @@ const PACKAGE_JSON_TEMPLATE: &str = include_str!("./templates/package.json");
const GITIGNORE_TEMPLATE: &str = include_str!("./templates/gitignore");
const GITATTRIBUTES_TEMPLATE: &str = include_str!("./templates/gitattributes");
const EDITORCONFIG_TEMPLATE: &str = include_str!("./templates/.editorconfig");
const NPMIGNORE_TEMPLATE: &str = include_str!("./templates/npmignore");
const RUST_BINDING_VERSION: &str = env!("CARGO_PKG_VERSION");
const RUST_BINDING_VERSION_PLACEHOLDER: &str = "RUST_BINDING_VERSION";
@ -168,11 +167,6 @@ pub fn generate_grammar_files(
generate_file(path, EDITORCONFIG_TEMPLATE, language_name)
})?;
// Write .npmignore file
missing_path(repo_path.join(".npmignore"), |path| {
generate_file(path, NPMIGNORE_TEMPLATE, language_name)
})?;
if generate_bindings {
let bindings_dir = repo_path.join("bindings");

View file

@ -33,7 +33,6 @@ let package = Package(
".gitignore",
".gitattributes",
".gitmodules",
".npmignore",
],
sources: [
"src/parser.c",

View file

@ -1,17 +0,0 @@
bindings/c
bindings/go
bindings/python
bindings/rust
bindings/swift
Cargo.toml
Makefile
examples
pyproject.toml
setup.py
test
.editorconfig
.github
.gitignore
.gitattributes
.gitmodules
.npmignore

View file

@ -5,6 +5,14 @@
"repository": "github:tree-sitter/tree-sitter-PARSER_NAME",
"license": "MIT",
"main": "bindings/node",
"files": [
"grammar.js",
"binding.gyp",
"types/dsl.d.ts",
"bindings/node/*",
"queries/*",
"src/**"
],
"keywords": [
"parsing",
"incremental",