Esta página aún no está traducida.
Run spiderlint from a checkout
The container and a packed install both provide a spiderlint command. In a checkout, bin/spiderlint.js is that command: it runs dist/cli.js when a build exists and the TypeScript sources in src/ otherwise.
Link the checkout
npm install
npm link
spiderlint --version
npm linksymlinks the checkout into the global prefix. Node resolves the real path, which lies outsidenode_modules, so the sources run and every edit applies at once.npm unlink --global spiderlintremoves the link.
Install a packed build
npm pack
npm install --global ./spiderlint-*.tgz
prepackcompilessrc/intodist/withtsconfig.build.json, andpostpackdeletesdist/again, so a checkout never keeps a stale build.- Node refuses to strip types for files under
node_modules, which is why a package ships the build instead of the sources.