tsconfig.json 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "extends": "@vue/tsconfig/tsconfig.json",
  3. "include": ["./apps/**/*.ts", "./apps/**/*.vue", "./core/**/*.ts", "./core/**/*.vue", "./*.d.ts"],
  4. "compilerOptions": {
  5. "types": ["jest", "node", "vue", "vue-router"],
  6. "outDir": "./dist/",
  7. "target": "ESNext",
  8. "module": "esnext",
  9. // Set module resolution to bundler and `noEmit` to be able to set `allowImportingTsExtensions`, so we can import Typescript with .ts extension
  10. "moduleResolution": "Bundler",
  11. "allowImportingTsExtensions": true,
  12. "noEmit": true,
  13. // Allow ts to import js files
  14. "allowJs": true,
  15. "allowSyntheticDefaultImports": true,
  16. "declaration": false,
  17. "noImplicitAny": false,
  18. "resolveJsonModule": true,
  19. "strict": true,
  20. },
  21. "vueCompilerOptions": {
  22. "target": 2.7
  23. },
  24. "ts-node": {
  25. // these options are overrides used only by ts-node
  26. // same as our --compilerOptions flag and our TS_NODE_COMPILER_OPTIONS environment variable
  27. "compilerOptions": {
  28. "moduleResolution": "node",
  29. "module": "commonjs",
  30. "verbatimModuleSyntax": false
  31. }
  32. }
  33. }