Skip to content

Commit 702518a

Browse files
committed
Create build-versions.js
1 parent c0b7cc3 commit 702518a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: build/build-versions.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const fse = require("fs-extra");
2+
const path = require("path");
3+
4+
const docVersions = require("../package.json").docVersions;
5+
6+
// build versions
7+
function buildVersions() {
8+
fse.writeFileSync(
9+
path.join(__dirname, "../examples/public/versions.json"),
10+
JSON.stringify(docVersions),
11+
);
12+
}
13+
14+
buildVersions();

0 commit comments

Comments
 (0)