{"draft":null,"from":28,"to":29,"files":[{"path":"client/src/export.ts","added":10,"removed":9,"diff":"--- a/client/src/export.ts\n+++ b/client/src/export.ts\n@@ -1,8 +1,10 @@\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 .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+// shared does (#37, Playtester 1). The folder gets .abso-export naming the\n+// version, to stamp the build with: JSON on one line, in a file with no\n+// extension, so the exported project's own formatter and linter pass it by.\n+// Exporting again replaces the folder, keeping node_modules (and what --keep\n+// names) so a build needs no new install.\n //\n // The version is rebuilt as `abso run --at` rebuilds it (at.ts), from the\n // known copies and one compare; the server's listing of that version (#37,\n@@ -19,9 +21,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 = \".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+export const EXPORT_STAMP = \".abso-export\";\n+/** Its earlier names: an export made then still counts as one. A .json name drew the project's formatter. */\n+const OLD_EXPORT_STAMPS = [\".abso-export.json\", \".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@@ -38,8 +40,7 @@\n \tif (!statSync(target).isDirectory()) throw new UsageError(`${target} is a file; export to a folder`);\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\t![EXPORT_STAMP, ...OLD_EXPORT_STAMPS].some((n) => existsSync(join(target, n)))\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@@ -137,7 +138,7 @@\n \t\tfiles: written,\n \t\texportedAt: new Date().toISOString(),\n \t};\n-\twriteFileSync(join(target, EXPORT_STAMP), `${JSON.stringify(stamp, null, 2)}\\n`);\n+\twriteFileSync(join(target, EXPORT_STAMP), `${JSON.stringify(stamp)}\\n`);\n \treturn {\n \t\ttext: [\n \t\t\t`Exported version ${version} of ${space} to ${target}: ${plural(written, \"file\")}. ${EXPORT_STAMP} there names the version; abso export to the same folder replaces it.`,"}],"unmatched":[]}