ci: separate tests-unit, esm scripts (#5607)

* ci: script esm updates

* ci: separate out unit tests
This commit is contained in:
Elliot DeNolf
2024-04-02 17:31:38 -04:00
committed by GitHub
parent 1e60250670
commit 390731c07b
6 changed files with 39 additions and 29 deletions

View File

@@ -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) {