chore: move docs-util to www (#7232)

* reorganize docs apps

* add README

* fix directory

* add condition for old docs

* move docs-util to www

* remove remaining docs-util

* fixes of paths

* fix scripts

* path fixes

* fix github actions

* add build packages script
This commit is contained in:
Shahed Nasser
2024-05-06 09:13:50 +03:00
committed by GitHub
parent cf9605fe6f
commit b39de05535
607 changed files with 183 additions and 254 deletions

View File

@@ -0,0 +1,26 @@
import util from "node:util"
import { exec } from "child_process"
import path from "node:path"
const promiseExec = util.promisify(exec)
async function main() {
// check if there are any changes in diff
const diffFiles = (await promiseExec(`git diff --name-only`)).stdout
.toString()
.split("\n")
.filter(Boolean)
if (!diffFiles.length) {
console.log("No files were changed, skipping generating changeset...")
return
}
// run changeset
await promiseExec(`yarn changeset --empty`, {
cwd: path.resolve("..", "..", ".."),
})
console.log("Generated changeset.")
}
void main()