Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vue): fix generate type declaration #66

Merged
merged 1 commit into from
Jul 25, 2024
Merged

fix(vue): fix generate type declaration #66

merged 1 commit into from
Jul 25, 2024

Conversation

baurine
Copy link
Collaborator

@baurine baurine commented Jul 25, 2024

No description provided.

Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for tisqleditor-playground ready!

Name Link
🔨 Latest commit 5f0d902
🔍 Latest deploy log https://app.netlify.com/sites/tisqleditor-playground/deploys/66a26567a1124100080b3307
😎 Deploy Preview https://deploy-preview-66--tisqleditor-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -13,7 +13,7 @@
"CHANGELOG.md"
],
"scripts": {
"build": "vue-tsc -b && vite build"
"build": "vite build && vue-tsc -b"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vue-tsc -b generate type declaration in the dist folder, but vite build deletes the dist folder and re-create it, so we need to run vite build first, else we can't get the type declaration files.

@@ -1,9 +1,8 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import dts from 'vite-plugin-dts'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because vue-tsc -b will get type declaration, so we don't need dts plugin.

@baurine baurine merged commit f28e41f into main Jul 25, 2024
7 checks passed
@baurine baurine deleted the fix/vue-build branch July 25, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant