Skip to content
Snippets Groups Projects
Commit c6e64dfb authored by Giildo's avatar Giildo
Browse files

:bug: Fix TS errors

²
parent c300619d
Branches
Tags
No related merge requests found
#!/bin/zsh
SERVER="root@django-test3.di.unistra.fr"
PROJECT_DIR="/var/www/apps/tuto-front"
echo "👷 Build the prod version"
npm run build
echo "🚀 Paste the new files"
rsync -avzhe ssh --progress --delete "dist/" "$SERVER:$PROJECT_DIR/"
echo "🎉 Project deployed"
......@@ -6,7 +6,7 @@
"build": "run-p type-check build-only",
"preview": "vite preview --port 4173",
"test:unit": "vitest --environment jsdom",
"build-only": "vite build",
"build-only": "vite build --mode prod",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
},
"dependencies": {
......
......@@ -14,5 +14,5 @@ export function customMarked(content: string | undefined): string {
'$1 target="_blank" rel="noopener"$2',
)
}
return content
return content || ''
}
......@@ -10,7 +10,7 @@
],
"compilerOptions": {
"lib": [
"esnext"
"ES2021.String"
],
"composite": true,
"baseUrl": ".",
......
......@@ -3,7 +3,9 @@
"exclude": [],
"compilerOptions": {
"composite": true,
"lib": [],
"lib": [
"ES2021.String"
],
"types": [
"node",
"jsdom"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment