Skip to content

Commit 28b5aaf

Browse files
committed
feat!: use #/src instead
1 parent d117304 commit 28b5aaf

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

Diff for: template/base/jsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"compilerOptions": {
33
"paths": {
44
// TODO: no longer needed after TS 5.4
5-
"#src/*": ["./src/*"],
6-
// Deprecated, use `#src` instead (configured in `package.json` `imports` field)
5+
"#/*": ["./*"],
6+
// Deprecated, use `#/src` instead (configured in `package.json` `imports` field)
77
"@/*": ["./src/*"]
88
}
99
},

Diff for: template/base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"type": "module",
44
"imports": {
5-
"#src/": "./src/"
5+
"#/*": "./*"
66
},
77
"scripts": {
88
"dev": "vite",

Diff for: template/base/vite.config.js.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default defineConfig({
1414
],
1515
resolve: {
1616
alias: {
17-
// Deprecated, use `#src` instead (configured in `package.json` `imports` field)
17+
// Deprecated, use `#/src` instead (configured in `package.json` `imports` field)
1818
'@': fileURLToPath(new URL('./src', import.meta.url))
1919
},
2020
},

Diff for: template/code/router/src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import HelloWorld from './components/HelloWorld.vue'
55

66
<template>
77
<header>
8-
<img alt="Vue logo" class="logo" src="#src/assets/logo.svg" width="125" height="125" />
8+
<img alt="Vue logo" class="logo" src="#/src/assets/logo.svg" width="125" height="125" />
99

1010
<div class="wrapper">
1111
<HelloWorld msg="You did it!" />

Diff for: template/code/typescript-router/src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import HelloWorld from './components/HelloWorld.vue'
55

66
<template>
77
<header>
8-
<img alt="Vue logo" class="logo" src="#src/assets/logo.svg" width="125" height="125" />
8+
<img alt="Vue logo" class="logo" src="#/src/assets/logo.svg" width="125" height="125" />
99

1010
<div class="wrapper">
1111
<HelloWorld msg="You did it!" />

Diff for: template/config/cypress-ct/cypress/support/component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import './commands'
2020
// require('./commands')
2121

2222
// Import global styles
23-
import '#src/assets/main.css'
23+
import '#/src/assets/main.css'
2424

2525
import { mount } from 'cypress/vue'
2626

Diff for: template/config/cypress-ct/cypress/support/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import './commands'
2020
// require('./commands')
2121

2222
// Import global styles
23-
import '#src/assets/main.css'
23+
import '#/src/assets/main.css'
2424

2525
import { mount } from 'cypress/vue'
2626

Diff for: template/tsconfig/base/tsconfig.app.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
"paths": {
1010
// TODO: no longer needed after TS 5.4
11-
"#src/*": ["./src/*"],
12-
// Deprecated, use `#src` instead (configured in `package.json` `imports` field)
11+
"#/*": ["./*"],
12+
// Deprecated, use `#/src` instead (configured in `package.json` `imports` field)
1313
"@/*": ["./src/*"]
1414
}
1515
}

Diff for: template/tsconfig/nightwatch-ct/tsconfig.app.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
"paths": {
1010
// TODO: no longer needed after TS 5.4
11-
"#src/*": ["./src/*"],
12-
// Deprecated, use `#src` instead (configured in `package.json` `imports` field)
11+
"#/*": ["./*"],
12+
// Deprecated, use `#/src` instead (configured in `package.json` `imports` field)
1313
"@/*": ["./src/*"]
1414
}
1515
}

0 commit comments

Comments
 (0)