Skip to content

Commit cea19b4

Browse files
committed
fix(ci): replace TypeScript import with inline uniq function in generate-ci-env.js
Node.js in CI cannot load .ts files directly. Replaced the import from lodash-replacements.ts with an inline native uniq implementation.
1 parent d2d6f5b commit cea19b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/generate-ci-env.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
import fs from 'fs'
88
import path from 'path'
99
import { fileURLToPath } from 'url'
10-
import { uniq } from '../common/src/util/lodash-replacements.ts'
10+
// Native uniq implementation (lodash replacement)
11+
function uniq(arr) {
12+
return Array.from(new Set(arr))
13+
}
1114

1215
const __filename = fileURLToPath(import.meta.url)
1316
const __dirname = path.dirname(__filename)

0 commit comments

Comments
 (0)