Set up @ alias for src/
This commit is contained in:
parent
f2299a7219
commit
8729cf09b1
4 changed files with 42 additions and 19 deletions
|
|
@ -3,6 +3,7 @@
|
|||
"fmt": "prettier . --write"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.13.8",
|
||||
"prettier": "^3.5.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
54
pnpm-lock.yaml
generated
54
pnpm-lock.yaml
generated
|
|
@ -8,6 +8,9 @@ importers:
|
|||
|
||||
.:
|
||||
devDependencies:
|
||||
'@types/node':
|
||||
specifier: ^22.13.8
|
||||
version: 22.13.8
|
||||
prettier:
|
||||
specifier: ^3.5.2
|
||||
version: 3.5.2
|
||||
|
|
@ -20,7 +23,7 @@ importers:
|
|||
devDependencies:
|
||||
'@vitejs/plugin-vue':
|
||||
specifier: ^5.2.1
|
||||
version: 5.2.1(vite@6.2.0)(vue@3.5.13(typescript@5.7.3))
|
||||
version: 5.2.1(vite@6.2.0(@types/node@22.13.8))(vue@3.5.13(typescript@5.7.3))
|
||||
'@vue/tsconfig':
|
||||
specifier: ^0.7.0
|
||||
version: 0.7.0(typescript@5.7.3)(vue@3.5.13(typescript@5.7.3))
|
||||
|
|
@ -29,10 +32,10 @@ importers:
|
|||
version: 5.7.3
|
||||
vite:
|
||||
specifier: ^6.2.0
|
||||
version: 6.2.0
|
||||
version: 6.2.0(@types/node@22.13.8)
|
||||
vite-plugin-vue-devtools:
|
||||
specifier: ^7.7.2
|
||||
version: 7.7.2(rollup@4.34.9)(vite@6.2.0)(vue@3.5.13(typescript@5.7.3))
|
||||
version: 7.7.2(rollup@4.34.9)(vite@6.2.0(@types/node@22.13.8))(vue@3.5.13(typescript@5.7.3))
|
||||
vue-tsc:
|
||||
specifier: ^2.2.4
|
||||
version: 2.2.8(typescript@5.7.3)
|
||||
|
|
@ -467,6 +470,9 @@ packages:
|
|||
'@types/estree@1.0.6':
|
||||
resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}
|
||||
|
||||
'@types/node@22.13.8':
|
||||
resolution: {integrity: sha512-G3EfaZS+iOGYWLLRCEAXdWK9my08oHNZ+FHluRiggIYJPOXzhOiDgpVCUHaUvyIC5/fj7C/p637jdzC666AOKQ==}
|
||||
|
||||
'@vitejs/plugin-vue@5.2.1':
|
||||
resolution: {integrity: sha512-cxh314tzaWwOLqVes2gnnCtvBDcM1UMdn+iFR+UjAn411dPT3tOmqrJjbMd7koZpMAmBM/GqeV4n9ge7JSiJJQ==}
|
||||
engines: {node: ^18.0.0 || >=20.0.0}
|
||||
|
|
@ -889,6 +895,9 @@ packages:
|
|||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
undici-types@6.20.0:
|
||||
resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==}
|
||||
|
||||
unicorn-magic@0.3.0:
|
||||
resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==}
|
||||
engines: {node: '>=18'}
|
||||
|
|
@ -1361,9 +1370,13 @@ snapshots:
|
|||
|
||||
'@types/estree@1.0.6': {}
|
||||
|
||||
'@vitejs/plugin-vue@5.2.1(vite@6.2.0)(vue@3.5.13(typescript@5.7.3))':
|
||||
'@types/node@22.13.8':
|
||||
dependencies:
|
||||
vite: 6.2.0
|
||||
undici-types: 6.20.0
|
||||
|
||||
'@vitejs/plugin-vue@5.2.1(vite@6.2.0(@types/node@22.13.8))(vue@3.5.13(typescript@5.7.3))':
|
||||
dependencies:
|
||||
vite: 6.2.0(@types/node@22.13.8)
|
||||
vue: 3.5.13(typescript@5.7.3)
|
||||
|
||||
'@volar/language-core@2.4.11':
|
||||
|
|
@ -1443,14 +1456,14 @@ snapshots:
|
|||
de-indent: 1.0.2
|
||||
he: 1.2.0
|
||||
|
||||
'@vue/devtools-core@7.7.2(vite@6.2.0)(vue@3.5.13(typescript@5.7.3))':
|
||||
'@vue/devtools-core@7.7.2(vite@6.2.0(@types/node@22.13.8))(vue@3.5.13(typescript@5.7.3))':
|
||||
dependencies:
|
||||
'@vue/devtools-kit': 7.7.2
|
||||
'@vue/devtools-shared': 7.7.2
|
||||
mitt: 3.0.1
|
||||
nanoid: 5.1.2
|
||||
pathe: 2.0.3
|
||||
vite-hot-client: 0.2.4(vite@6.2.0)
|
||||
vite-hot-client: 0.2.4(vite@6.2.0(@types/node@22.13.8))
|
||||
vue: 3.5.13(typescript@5.7.3)
|
||||
transitivePeerDependencies:
|
||||
- vite
|
||||
|
|
@ -1809,6 +1822,8 @@ snapshots:
|
|||
|
||||
typescript@5.7.3: {}
|
||||
|
||||
undici-types@6.20.0: {}
|
||||
|
||||
unicorn-magic@0.3.0: {}
|
||||
|
||||
universalify@2.0.1: {}
|
||||
|
|
@ -1819,11 +1834,11 @@ snapshots:
|
|||
escalade: 3.2.0
|
||||
picocolors: 1.1.1
|
||||
|
||||
vite-hot-client@0.2.4(vite@6.2.0):
|
||||
vite-hot-client@0.2.4(vite@6.2.0(@types/node@22.13.8)):
|
||||
dependencies:
|
||||
vite: 6.2.0
|
||||
vite: 6.2.0(@types/node@22.13.8)
|
||||
|
||||
vite-plugin-inspect@0.8.9(rollup@4.34.9)(vite@6.2.0):
|
||||
vite-plugin-inspect@0.8.9(rollup@4.34.9)(vite@6.2.0(@types/node@22.13.8)):
|
||||
dependencies:
|
||||
'@antfu/utils': 0.7.10
|
||||
'@rollup/pluginutils': 5.1.4(rollup@4.34.9)
|
||||
|
|
@ -1834,28 +1849,28 @@ snapshots:
|
|||
perfect-debounce: 1.0.0
|
||||
picocolors: 1.1.1
|
||||
sirv: 3.0.1
|
||||
vite: 6.2.0
|
||||
vite: 6.2.0(@types/node@22.13.8)
|
||||
transitivePeerDependencies:
|
||||
- rollup
|
||||
- supports-color
|
||||
|
||||
vite-plugin-vue-devtools@7.7.2(rollup@4.34.9)(vite@6.2.0)(vue@3.5.13(typescript@5.7.3)):
|
||||
vite-plugin-vue-devtools@7.7.2(rollup@4.34.9)(vite@6.2.0(@types/node@22.13.8))(vue@3.5.13(typescript@5.7.3)):
|
||||
dependencies:
|
||||
'@vue/devtools-core': 7.7.2(vite@6.2.0)(vue@3.5.13(typescript@5.7.3))
|
||||
'@vue/devtools-core': 7.7.2(vite@6.2.0(@types/node@22.13.8))(vue@3.5.13(typescript@5.7.3))
|
||||
'@vue/devtools-kit': 7.7.2
|
||||
'@vue/devtools-shared': 7.7.2
|
||||
execa: 9.5.2
|
||||
sirv: 3.0.1
|
||||
vite: 6.2.0
|
||||
vite-plugin-inspect: 0.8.9(rollup@4.34.9)(vite@6.2.0)
|
||||
vite-plugin-vue-inspector: 5.3.1(vite@6.2.0)
|
||||
vite: 6.2.0(@types/node@22.13.8)
|
||||
vite-plugin-inspect: 0.8.9(rollup@4.34.9)(vite@6.2.0(@types/node@22.13.8))
|
||||
vite-plugin-vue-inspector: 5.3.1(vite@6.2.0(@types/node@22.13.8))
|
||||
transitivePeerDependencies:
|
||||
- '@nuxt/kit'
|
||||
- rollup
|
||||
- supports-color
|
||||
- vue
|
||||
|
||||
vite-plugin-vue-inspector@5.3.1(vite@6.2.0):
|
||||
vite-plugin-vue-inspector@5.3.1(vite@6.2.0(@types/node@22.13.8)):
|
||||
dependencies:
|
||||
'@babel/core': 7.26.9
|
||||
'@babel/plugin-proposal-decorators': 7.25.9(@babel/core@7.26.9)
|
||||
|
|
@ -1866,16 +1881,17 @@ snapshots:
|
|||
'@vue/compiler-dom': 3.5.13
|
||||
kolorist: 1.8.0
|
||||
magic-string: 0.30.17
|
||||
vite: 6.2.0
|
||||
vite: 6.2.0(@types/node@22.13.8)
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
vite@6.2.0:
|
||||
vite@6.2.0(@types/node@22.13.8):
|
||||
dependencies:
|
||||
esbuild: 0.25.0
|
||||
postcss: 8.5.3
|
||||
rollup: 4.34.9
|
||||
optionalDependencies:
|
||||
'@types/node': 22.13.8
|
||||
fsevents: 2.3.3
|
||||
|
||||
vscode-uri@3.1.0: {}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
|
||||
"paths": { "@/*": ["./src/*"] },
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
import vue from "@vitejs/plugin-vue";
|
||||
import { fileURLToPath, URL } from "node:url";
|
||||
import { defineConfig } from "vite";
|
||||
import vueDevTools from "vite-plugin-vue-devtools";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue(), vueDevTools()],
|
||||
resolve: {
|
||||
alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) },
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue