ligo/gitlab-pages/website/preversion.js

9 lines
327 B
JavaScript
Raw Normal View History

// This script is used to remove 'next' from the versions.json file in order to re-create in the CI
const versions = require('./versions.json')
const fs = require('fs');
const versionsWithoutNext = versions
.filter(version => version !== "next");
fs.writeFileSync("./versions.json", JSON.stringify(versionsWithoutNext));