{"draft":null,"from":26,"to":27,"files":[{"path":"client/src/export.ts","added":10,"removed":4,"diff":"--- a/client/src/export.ts\n+++ b/client/src/export.ts\n@@ -1,6 +1,6 @@\n // abso export <dir> [--version N]: one published version of this folder's\n // space, written to a folder of its own, for a build that doesn't move while\n-// shared does (#37, Playtester 1). The folder gets .avcs-export.json naming\n+// shared does (#37, Playtester 1). The folder gets .abso-export.json (.avcs-export.json before the rename) naming\n // the version, to stamp the build with. Exporting again replaces the folder,\n // keeping node_modules (and what --keep names) so a build needs no new install.\n //\n@@ -19,7 +19,9 @@\n import { type Refused, unsafePath } from \"./safety.ts\";\n \n /** The file an export leaves in its folder: what it holds, and the sign that the folder is one export may replace. */\n-export const EXPORT_STAMP = \".avcs-export.json\";\n+export const EXPORT_STAMP = \".abso-export.json\";\n+/** The name before the rename: an export made then still counts as one. */\n+const OLD_EXPORT_STAMP = \".avcs-export.json\";\n \n /** Where an export may go: outside the abso folder, or in a part of it abso leaves out. Empty, or an earlier export. */\n function checkTarget(root: string, target: string): void {\n@@ -29,12 +31,16 @@\n \t}\n \tif (inside !== undefined && !ignoredHere(loadIgnore(root), inside, true)) {\n \t\tthrow new UsageError(\n-\t\t\t`${inside} is inside this abso folder, so abso would record the export as your edits. Export outside the folder, or into a folder .avcsignore leaves out`,\n+\t\t\t`${inside} is inside this abso folder, so abso would record the export as your edits. Export outside the folder, or into a folder .absoignore leaves out`,\n \t\t);\n \t}\n \tif (!existsSync(target)) return;\n \tif (!statSync(target).isDirectory()) throw new UsageError(`${target} is a file; export to a folder`);\n-\tif (readdirSync(target).length > 0 && !existsSync(join(target, EXPORT_STAMP))) {\n+\tif (\n+\t\treaddirSync(target).length > 0 &&\n+\t\t!existsSync(join(target, EXPORT_STAMP)) &&\n+\t\t!existsSync(join(target, OLD_EXPORT_STAMP))\n+\t) {\n \t\tthrow new UsageError(\n \t\t\t`${target} has files in it; export to an empty folder (an export replaces only a folder an earlier export made)`,\n \t\t);"}],"unmatched":[]}