fix: correct website upload path (#483)
* test(wip): add ui tests * fix: correct website upload path * fix: use includes * test: rewrite ui tests * build: remove concurrently * ci: run puppeteer in headless * test: add regression tests * test: add website regression 03 test * test: add react test website * chore: revert newlines Co-authored-by: Cafe137 <aron@aronsoos.com>
This commit is contained in:
+5
-1
@@ -88,7 +88,11 @@ export function getPath(file: FilePath): string {
|
||||
* Utility function that is needed to have correct directory structure as webkitRelativePath is read only
|
||||
*/
|
||||
export function packageFile(file: FilePath, pathOverwrite?: string): FilePath {
|
||||
const path = pathOverwrite || getPath(file)
|
||||
let path = pathOverwrite || getPath(file)
|
||||
|
||||
if (!path.startsWith('/') && path.includes('/')) {
|
||||
path = `/${path}`
|
||||
}
|
||||
|
||||
return {
|
||||
path: path,
|
||||
|
||||
Reference in New Issue
Block a user