You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
$ npm run lint ____
> [email protected] lint .../DefinitelyTyped
> dtslint types "____"
.../DefinitelyTyped/node_modules/.bin/dtslint: line 1: use strict: command not found
.../DefinitelyTyped/node_modules/.bin/dtslint: line 2: syntax error near unexpected token `('
.../DefinitelyTyped/node_modules/.bin/dtslint: line 2: `var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {'
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] lint: `dtslint types "____"`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
This could potentially also be fixed in DefinitelyTyped's package.json, by having it invoke the script with node node_modules/.bin/dtslint, though that means hard-coding a path instead of letting npm-run handle the resolution.
The text was updated successfully, but these errors were encountered:
The contribution instructions in DefinitelyTyped say to run
npm run lint package-name
:With [email protected], that command runs successfully. With [email protected], it fails with this error message:
Looks like it's because the
#!/usr/bin/env node
got removed, so the outputdtslint
file is interpreted as a plaintext file and not a Node JS file:https://github.com/Microsoft/dtslint/pull/218/files#diff-f41e9d04a45c83f3b6f6e630f10117feL1
This could potentially also be fixed in DefinitelyTyped's package.json, by having it invoke the script with
node node_modules/.bin/dtslint
, though that means hard-coding a path instead of letting npm-run handle the resolution.The text was updated successfully, but these errors were encountered: