Files
2021-11-04 17:38:42 +04:00

16 lines
314 B
TypeScript

/**
* Write the packages to `.codesandbox/ci.json`
*/
import editJson from "edit-json-file"
import shell from "shelljs"
const ciJson = editJson(".codesandbox/ci.json")
const packages = shell
.ls("-d", "packages/*")
.filter((p) => !p.endsWith("test-utils"))
ciJson.set("packages", packages)
ciJson.save()