mirror of
https://github.com/danbulant/jose
synced 2026-05-21 21:39:04 +00:00
13 lines
492 B
JavaScript
Executable file
13 lines
492 B
JavaScript
Executable file
require("./explode-exports");
|
|
const { execSync } = require("child_process");
|
|
const { readFileSync, writeFileSync } = require("fs");
|
|
const { version } = require("../package.json");
|
|
|
|
const readme = readFileSync("docs/README.md");
|
|
const tagName = `v${version}`;
|
|
|
|
execSync("git rm docs/**/*.md");
|
|
execSync('find docs -type d | grep "docs/" | xargs rm -rf');
|
|
execSync(`npm run docs:generate -- --gitRevision ${tagName}`);
|
|
writeFileSync("docs/README.md", readme);
|
|
execSync("git add docs/**/*.md");
|