diff --git a/scripts/release/bump-package-version.js b/scripts/release/bump-package-version.js index 1b240f80e6..d005da86f2 100644 --- a/scripts/release/bump-package-version.js +++ b/scripts/release/bump-package-version.js @@ -1,10 +1,10 @@ -/* eslint-disable no-console */ +/* eslint-disable no-console, import/no-commonjs */ -import fs from 'fs'; -import path from 'path'; -import mversion from 'mversion'; -import semver from 'semver'; -import { version as currentVersion } from '../../package.json'; +const fs = require('fs'); +const path = require('path'); +const mversion = require('mversion'); +const semver = require('semver'); +const { version: currentVersion } = require('../../package.json'); if (!process.env.VERSION) { throw new Error( diff --git a/scripts/release/publish-maintenance.sh b/scripts/release/publish-maintenance.sh index 2e8616d7d7..2cff8355d0 100755 --- a/scripts/release/publish-maintenance.sh +++ b/scripts/release/publish-maintenance.sh @@ -40,7 +40,7 @@ conventional-changelog --preset angular --output-unreleased | less # printf "\n\nRelease: Please enter the new chosen version > " printf "\n=> Release: please type the new chosen version > " read -e newVersion -VERSION=$newVersion babel-node ./scripts/release/bump-package-version.js +VERSION=$newVersion node ./scripts/release/bump-package-version.js # build new version NODE_ENV=production VERSION=$newVersion npm run build diff --git a/scripts/release/publish.js b/scripts/release/publish.js index 8a158b4de2..eae9470f0f 100755 --- a/scripts/release/publish.js +++ b/scripts/release/publish.js @@ -157,7 +157,7 @@ inquirer // bump new version shell.echo(colors.blue(`Bump version to "${newVersion}"`)); shell.exec( - `VERSION=${newVersion} babel-node ./scripts/release/bump-package-version.js` + `VERSION=${newVersion} node ./scripts/release/bump-package-version.js` ); // build library new version