mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
45b29dbc32
* chore(ci): Add release-it script; * chore(ci): add github actions release script;
21 lines
686 B
JavaScript
21 lines
686 B
JavaScript
import fs from 'fs';
|
|
import assert from 'assert';
|
|
import axios from '../index.js';
|
|
import axiosBuild from '../dist/node/axios.cjs';
|
|
|
|
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(`Axios build version: v${axiosBuild.VERSION}`);
|
|
console.log(`----------------------------`);
|
|
|
|
assert.strictEqual(version, axios.VERSION, `Version mismatch between package and Axios`);
|
|
assert.strictEqual(version, axiosBuild.VERSION, `Version mismatch between package and build`);
|
|
|
|
console.log('✔️ PASSED\n');
|
|
|
|
|