Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 8e4cd4a

Browse files
committed
chore: Updated minify profiles task
1 parent d2fc1ea commit 8e4cd4a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import { readFile, writeFile } from "node:fs/promises"
22
import fs from "node:fs/promises"
33
import { join } from "node:path"
44

5-
const registryDir = join(import.meta.dirname, "profile", "registry")
6-
const files = (await fs.readdir(registryDir)).filter(file =>
5+
const assetsDir = join(import.meta.dirname, "..", "assets")
6+
const files = (await fs.readdir(assetsDir)).filter(file =>
77
file.endsWith(".json"),
88
)
99

10-
console.log(`Found ${files.length} JSON files in registry directory`)
10+
console.log(`Found ${files.length} JSON files in the assets directory`)
1111

1212
for (const file of files) {
13-
const filePath = join(registryDir, file)
13+
const filePath = join(assetsDir, file)
1414
console.log(`Processing ${file}...`)
1515

1616
const content = await readFile(filePath, "utf8")

0 commit comments

Comments
 (0)