ligo/gitlab-pages/website/preversion.js
2019-06-06 15:45:45 +02:00

9 lines
327 B
JavaScript

// 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));