@santi020k/lumen-mcp 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,4 @@
1
-
2
1
  import { spawnSync } from 'node:child_process'
3
- import * as fs from 'node:fs/promises'
4
2
  import { dirname, join, resolve } from 'node:path'
5
3
  import { fileURLToPath } from 'node:url'
6
4
 
@@ -9,6 +7,7 @@ const repoRoot = resolve(packageRoot, '../..')
9
7
  const distEntry = join(packageRoot, 'dist/index.js')
10
8
 
11
9
  const filesIn = async (directory) => {
10
+ const fs = await import('node:fs/promises')
12
11
  const entries = await fs.readdir(directory, { withFileTypes: true })
13
12
 
14
13
  const nested = await Promise.all(entries.map((entry) => {
@@ -21,6 +20,8 @@ const filesIn = async (directory) => {
21
20
  }
22
21
 
23
22
  const needsBuild = async () => {
23
+ const fs = await import('node:fs/promises')
24
+
24
25
  try {
25
26
  await fs.access(distEntry)
26
27
  } catch {