Skip to content

add link to tsc docs

Administrator requested to merge DaedalusG-tsc-doc-link into main

Created by: DaedalusG

Check out the tool's documentation if you're having trouble getting lsif-tsc to work. It accepts any options tsc does, so it shouldn't be too hard to get it running on your project.

It is hard though 😢

warrengifford@Warrens-MacBook-Pro js % ls
README.md       deploy-web.sh   node_modules    tsconfig.json
assets          dump.lsif       package.json    yarn.lock
deploy-web.bat  lerna.json      packages
warrengifford@Warrens-MacBook-Pro js % lsif-tsc -p .
Error: error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src/**/*"]' and 'exclude' paths were '[]'.

    at loadConfigFile (/Users/warrengifford/.nvm/versions/node/v17.0.0/lib/node_modules/@sourcegraph/lsif-tsc/dist/src/main.js:108:15)
    at processProject (/Users/warrengifford/.nvm/versions/node/v17.0.0/lib/node_modules/@sourcegraph/lsif-tsc/dist/src/main.js:133:18)
    at run (/Users/warrengifford/.nvm/versions/node/v17.0.0/lib/node_modules/@sourcegraph/lsif-tsc/dist/src/main.js:282:11)
    at Object.<anonymous> (/Users/warrengifford/.nvm/versions/node/v17.0.0/lib/node_modules/@sourcegraph/lsif-tsc/dist/src/main.js:288:1)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47
warrengifford@Warrens-MacBook-Pro js % bat tsconfig.json
───────┬───────────────────────────────────────────────────────────────
       │ File: tsconfig.json
───────┼───────────────────────────────────────────────────────────────
   1   │ {
   2   │   "compilerOptions": {
   3   │     "moduleResolution": "node",
   4   │     "target": "es6",
   5   │     "module": "es2015",
   6   │     "lib": ["es2015", "es2016", "es2017", "dom"],
   7   │     "strict": true,
   8   │     "sourceMap": true,
   9   │     "declaration": true,
  10   │     "allowSyntheticDefaultImports": true,
  11   │     "experimentalDecorators": true,
  12   │     "emitDecoratorMetadata": true,
  13   │     "noImplicitAny": true,
  14   │     "typeRoots": ["types", "node_modules/@types"]
  15   │   },
  16   │   "include": ["src/**/*"]
  17   │ }
───────┴───────────────────────────────────────────────────────────────

Merge request reports

Loading