diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 750caf3..eed2c38 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 + - uses: actions/checkout@v4.1.7 - name: Install dependencies run: | - yarn install + yarn install --immutable - name: Lint the grammar run: | @@ -28,3 +28,4 @@ jobs: - name: Test corpus run: | yarn test + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 39080c9..8442477 100644 --- a/.gitignore +++ b/.gitignore @@ -5,9 +5,15 @@ /public/browserapp.js # dependencies -/node_modules +node_modules /.pnp .pnp.js +**/.yarn/* +**/!.yarn/patches +**/!.yarn/plugins +**/!.yarn/releases +**/!.yarn/sdks +**/!.yarn/versions # testing /coverage diff --git a/package.json b/package.json index 88ab3a1..e3bfa24 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,12 @@ "private": true, "scripts": { "clean": "rm -rf src/grammar.json src/node-types.json src/parser.c src/tree_sitter log.html .swift build public coverage", - "generate": "tree-sitter generate --no-bindings", + "generate": "./scripts/generate.sh", "test": "tree-sitter test", "lint": "eslint grammar.js && prettier --check grammar.js", "format": "prettier --write grammar.js", "test:debug": "tree-sitter test --debug", - "postinstall": "yarn generate" + "postinstall": "./scripts/generate.sh" }, "devDependencies": { "eslint": "^8.25.0", diff --git a/scripts/generate.sh b/scripts/generate.sh new file mode 100755 index 0000000..62f5d40 --- /dev/null +++ b/scripts/generate.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +npx tree-sitter-cli@0.20.8 generate --no-bindings