Skip to content
Discussion options

You must be logged in to vote

Wanted to close the loop on this... I had to not use the Vite dts plugin and run vue-tsc after vite builds. The final tsconfigs look like this:

tsconfig.build.json

{
  "files": [],
  "references": [{
    "path": "src/tsconfig.build.json"
  }, {
    "path": "sibling/tsconfig.sibling.json"
  }]
}

src/tsconfig.build.json

{
  "compilerOptions": {
    "outDir": "../dist",
    "target": "esnext",
    "baseUrl": ".",
    "declaration": true,
    "emitDeclarationOnly": true,
    "paths": {
      "@/*": ["*"],
      "@sibling/*": ["../sibling/src/*"]
    }
  },
  "include": [
    "**/*.ts",
    "**/*.vue"
  ],
  "exclude": ["App.vue", "main.ts"],
  "references": [{
    "path": "../sibling/tsconfig…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by incutonez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant