Skip to content

Commit

Permalink
Move the versioning scripts into their own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarta committed May 29, 2023
1 parent bb3fc73 commit 7f66aec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "pwa-kit",
"version": "3.0.0-dev",
"scripts": {
"bump-version": "node ./scripts/bump-version.js",
"bump-version:retail-react-app": "node ./scripts/bump-version.js --package=retail-react-app",
"bump-version:commerce-sdk-react": "node ./scripts/bump-version.js --package=commerce-sdk-react-preview",
"bump-version": "node ./scripts/bump-version/index.js",
"bump-version:retail-react-app": "node ./scripts/bump-version/index.js --package=retail-react-app",
"bump-version:commerce-sdk-react": "node ./scripts/bump-version/index.js --package=commerce-sdk-react-preview",
"publish-to-npm": "node ./scripts/publish-to-npm.js",
"format": "lerna run --stream format",
"preinstall": "node ./scripts/check-version.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const sh = require('shelljs')
const path = require('path')
const {saveJSONToFile, setPackageVersion} = require('./utils')
const {saveJSONToFile, setPackageVersion} = require('../utils')

// Exit upon error
sh.set('-e')
Expand Down
6 changes: 3 additions & 3 deletions scripts/bump-version.js → scripts/bump-version/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
const sh = require('shelljs')
const path = require('path')
const program = require('commander')
const {saveJSONToFile, setPackageVersion} = require('./utils')
const {saveJSONToFile, setPackageVersion} = require('../utils')

// Exit upon error
sh.set('-e')

const lernaConfigPath = path.join(__dirname, '..', 'lerna.json')
const rootPath = path.join(__dirname, '..')
const rootPath = path.join(__dirname, '..', '..')
const lernaConfigPath = path.join(rootPath, 'lerna.json')

const monorepoPackages = JSON.parse(sh.exec('lerna list --all --json', {silent: true}))
const monorepoPackageNames = monorepoPackages.map((pkg) => pkg.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const sh = require('shelljs')
const path = require('path')
const {saveJSONToFile} = require('./utils')
const {saveJSONToFile} = require('../utils')

// Exit upon error
sh.set('-e')
Expand Down

0 comments on commit 7f66aec

Please sign in to comment.