Skip to content

Commit 9102852

Browse files
test(web): include exact reporter fixture in preview seed
1 parent eac2c78 commit 9102852

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
type: Task
3+
title: Decide the joke source and Draft safety limits
4+
description: Settle where Jokes come from and what a Draft may never contain.
5+
status: draft
6+
task_status: ready
7+
blocked_by: []
8+
created: 2026-10-22
9+
---
10+
11+
# Decide the joke source and Draft safety limits
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import { copyFileSync, readdirSync } from "node:fs";
2-
import { fileURLToPath } from "node:url";
3-
import { resolve } from "node:path";
4-
const destination = resolve(process.argv[2] ?? ".");
5-
for (const name of readdirSync(new URL(".", import.meta.url))) {
1+
import * as NodeFS from "node:fs";
2+
import * as NodeURL from "node:url";
3+
import * as NodePath from "node:path";
4+
const destination = NodePath.resolve(process.argv[2] ?? ".");
5+
for (const name of NodeFS.readdirSync(new URL(".", import.meta.url))) {
66
if (name.endsWith(".md"))
7-
copyFileSync(fileURLToPath(new URL(name, import.meta.url)), resolve(destination, name));
7+
NodeFS.copyFileSync(
8+
NodeURL.fileURLToPath(new URL(name, import.meta.url)),
9+
NodePath.resolve(destination, name),
10+
);
811
}

0 commit comments

Comments
 (0)