screeps-deploy-action/node_modules/axios/bin/check-build-version.js
2025-04-08 22:08:47 +02:00

20 lines
535 B
JavaScript

const fs = require('fs');
const assert = require('assert');
const axios = require('../index.js');
const {version} = JSON.parse(fs.readFileSync('./package.json'));
console.log('Checking versions...\n----------------------------')
console.log(`Package version: v${version}`);
console.log(`Axios version: v${axios.VERSION}`);
console.log(`----------------------------`);
assert.strictEqual(
version,
axios.VERSION,
`Version mismatch between package and Axios ${version} != ${axios.VERSION}`
);
console.log('✔️ PASSED\n');