MCPcopy Create free account
hub / github.com/effect-app/libs / copyPackedTarballs

Function copyPackedTarballs

scripts/stagePublishPackage.mjs:44–55  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

42}
43
44const copyPackedTarballs = (dir) => {
45 if (!_fs.existsSync(dir)) return
46
47 for (const dirent of _fs.readdirSync(dir, { withFileTypes: true })) {
48 const path = _path.join(dir, dirent.name)
49 if (dirent.isDirectory()) {
50 copyPackedTarballs(path)
51 } else if (dirent.isFile() && dirent.name.endsWith(".tgz")) {
52 copyFile(path, _path.join(cwd, dirent.name))
53 }
54 }
55}
56
57const run = (cmd, args, options = {}) => {
58 const result = _childProcess.spawnSync(cmd, args, {

Callers 1

Calls 2

joinMethod · 0.80
copyFileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…