Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app-vite/lib/types-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ function generateTsConfig (quasarConf, fsUtils) {
}

const paths = {}
Object.keys(aliasMap).forEach(alias => {
Object.keys(aliasMap).sort((a,b) => // move the 'src' and 'app' entries to the end
b === 'app' ? -1 :
a === 'app' ? 1 :
b === 'src' ? -1 :
a === 'src' ? 1 : 0
).forEach(alias => {
const rawPath = aliasMap[ alias ]
const tsPath = toTsPath(rawPath)

Expand Down
7 changes: 6 additions & 1 deletion app-webpack/lib/types-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ function generateTsConfig (quasarConf, fsUtils) {
}

const paths = {}
Object.keys(aliasMap).forEach(alias => {
Object.keys(aliasMap).sort((a,b) => // move the 'src' and 'app' entries to the end
b === 'app' ? -1 :
a === 'app' ? 1 :
b === 'src' ? -1 :
a === 'src' ? 1 : 0
).forEach(alias => {
const rawPath = aliasMap[ alias ]
const tsPath = toTsPath(rawPath)

Expand Down