ci: separate tests-unit, esm scripts (#5607)
* ci: script esm updates * ci: separate out unit tests
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import { getPackageDetails, showPackageDetails } from './lib/getPackageDetails'
|
||||
|
||||
async function main() {
|
||||
const packageDetails = await getPackageDetails()
|
||||
showPackageDetails(packageDetails)
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
})
|
||||
@@ -36,9 +36,9 @@ const packageWhitelist = [
|
||||
// 'plugin-stripe',
|
||||
]
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
const cwd = path.resolve(__dirname, '..')
|
||||
const filename = fileURLToPath(import.meta.url)
|
||||
const dirname = path.dirname(filename)
|
||||
const cwd = path.resolve(dirname, '..')
|
||||
|
||||
const git = simpleGit(cwd)
|
||||
|
||||
@@ -180,7 +180,7 @@ async function main() {
|
||||
|
||||
// Set version in root package.json
|
||||
header(`${logPrefix}📦 Updating root package.json...`)
|
||||
const rootPackageJsonPath = path.resolve(__dirname, '../package.json')
|
||||
const rootPackageJsonPath = path.resolve(dirname, '../package.json')
|
||||
const rootPackageJson = await fse.readJSON(rootPackageJsonPath)
|
||||
rootPackageJson.version = nextReleaseVersion
|
||||
if (!dryRun) {
|
||||
|
||||
@@ -11,7 +11,7 @@ import { default as getConventionalPreset } from 'conventional-changelog-convent
|
||||
import { once } from 'events'
|
||||
import fse from 'fs-extra'
|
||||
import minimist from 'minimist'
|
||||
import simpleGit from 'simple-git'
|
||||
import { simpleGit } from 'simple-git'
|
||||
import tempfile from 'tempfile'
|
||||
|
||||
const { createReadStream, createWriteStream } = fse
|
||||
|
||||
Reference in New Issue
Block a user