chore(docs-util): fix announcement script (#5503)
This commit is contained in:
1 parent
201b35cd31
commit
9f29f18ee9
1 file changed
+4
@@ -3,6 +3,7 @@
|
|||||||
import { Octokit } from "@octokit/core"
|
import { Octokit } from "@octokit/core"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
|
import { fileURLToPath } from "url"
|
||||||
|
|
||||||
const shouldExpire = process.argv.indexOf("--expire") !== -1
|
const shouldExpire = process.argv.indexOf("--expire") !== -1
|
||||||
const octokit = new Octokit({
|
const octokit = new Octokit({
|
||||||
@@ -59,6 +60,9 @@ async function main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url)
|
||||||
|
const __dirname = path.dirname(__filename)
|
||||||
|
|
||||||
//write new config file
|
//write new config file
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
path.join(
|
path.join(
|
||||||
|
|||||||
Reference in new issue
Block a user