Fix #319 keep unknown files when importing and downloading a project

This commit is contained in:
Misode
2024-10-04 15:30:35 +02:00
parent 394beeab16
commit 5d08f15006
5 changed files with 23 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ export type Project = {
namespace?: string,
version?: VersionId,
files: ProjectFile[],
unknownFiles?: UnknownFile[],
}
export const DRAFT_PROJECT: Project = {
name: 'Drafts',
@@ -26,6 +27,11 @@ export type ProjectFile = {
data: any,
}
export type UnknownFile = {
path: string,
data: string,
}
export const FilePatterns = [
'worldgen/[a-z_]+',
'tags/worldgen/[a-z_]+',