tsconfig.json 1.0 KB

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