mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-19 20:27:45 +03:00
eca6f1a5c9
Rollup of: - Update dependencies; TS 4.4, Prettier 2.4 - Explicitly handle unrooted execution environments (e.g., open file mode), preventing various crashes and oddities. - Generate default values in method overload signatures. Previously, we didn't include them, which generated the wrong signature. - Disable webpack caching (which recently broke upstream). - Use attribute docstrings for type aliases in completion and hover. - Clean up import resolver search path cache, which was leftover from the per-execution environment python interpreter removal. - Modify parser to change the range of parenthesized expressions to their contents. This improves the ranges returned in hovers, document highlight, etc. - Add boolean to ConfigOptions to check if the config was loaded from a config object (i.e., was produced in part by a `pyrightconfig.json` or `pyproject.toml` with a pyright section). Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
43 lines
1.7 KiB
JSON
43 lines
1.7 KiB
JSON
{
|
|
"name": "pyright-root",
|
|
"private": true,
|
|
"scripts": {
|
|
"postinstall": "npm run bootstrap",
|
|
"bootstrap": "node ./build/skipBootstrap.js || lerna bootstrap",
|
|
"clean": "lerna run --no-bail --stream clean",
|
|
"install:all": "npm install && lerna exec --no-bail npm install",
|
|
"update:all": "node ./build/updateDeps.js",
|
|
"build:extension:dev": "cd packages/vscode-pyright && npm run webpack",
|
|
"build:cli:dev": "cd packages/pyright && npm run webpack",
|
|
"watch:extension": "cd packages/vscode-pyright && npm run webpack-dev",
|
|
"check": "npm run check:syncpack && npm run check:eslint && npm run check:prettier && npm run check:lockindent",
|
|
"check:syncpack": "syncpack list-mismatches",
|
|
"fix:syncpack": "syncpack fix-mismatches --indent \" \" && npm run install:all",
|
|
"check:eslint": "eslint .",
|
|
"fix:eslint": "eslint --fix .",
|
|
"check:prettier": "prettier -c .",
|
|
"fix:prettier": "prettier --write .",
|
|
"check:lockindent": "node ./build/checkLockIndent.js"
|
|
},
|
|
"devDependencies": {
|
|
"@types/glob": "^7.1.4",
|
|
"@types/node": "^12.20.24",
|
|
"@types/yargs": "^16.0.4",
|
|
"@typescript-eslint/eslint-plugin": "^4.31.0",
|
|
"@typescript-eslint/parser": "^4.31.0",
|
|
"detect-indent": "^6.1.0",
|
|
"eslint": "^7.32.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
"glob": "^7.1.7",
|
|
"jsonc-parser": "^3.0.0",
|
|
"lerna": "^4.0.0",
|
|
"npm-check-updates": "^11.8.5",
|
|
"p-queue": "^6.6.2",
|
|
"prettier": "2.4.0",
|
|
"syncpack": "^5.8.15",
|
|
"typescript": "~4.4.2",
|
|
"yargs": "^16.2.0"
|
|
}
|
|
}
|