Skip to content

Broken package.json scripts #309

@NSExceptional

Description

@NSExceptional
$ npm run test:watch
npm error Missing script: "test:watch"
$ npm run build
npm error Missing script: "build"
$ npm run test

> [email protected] test
> node --test bindings/node/*_test.js

node:internal/modules/cjs/loader:1372
  throw err;
  ^

Error: Cannot find module 'tree-sitter'
Require stack:
- /Users/tanner/Developer/Forks/tree-sitter-bash/bindings/node/binding_test.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1369:15)

The scripts in package.json:

  "scripts": {
    "install": "node-gyp-build",
    "lint": "eslint grammar.js",
    "prestart": "tree-sitter build --wasm",
    "start": "tree-sitter playground",
    "test": "node --test bindings/node/*_test.js"
  }

The README:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions