From 0291f5204b6a7792fe5cd890ab559063ebab1455 Mon Sep 17 00:00:00 2001 From: NKDuy Date: Thu, 12 Dec 2024 12:58:22 +0000 Subject: [PATCH] chore(release): fix release process after recent updates --- package.json | 8 ++++---- ...angelog-config.ts => conventional-changelog-config.js} | 0 scripts/utils/release-utils.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename scripts/utils/{conventional-changelog-config.ts => conventional-changelog-config.js} (100%) diff --git a/package.json b/package.json index a7ca9fff..45bca77e 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "testing/" ], "scripts": { - "build": "npm run clean && npm run tsc.prod && npm run ts scripts/index.ts --prod --ci", + "build": "npm run clean && npm run tsc.prod && npm run ts scripts/index.ts -- --prod --ci", "build.watch": "npm run build -- --watch", "build.updateSelectorEngine": "npm run ts scripts/updateSelectorEngine.ts", "clean": "rm -rf build/ cli/ compiler/ dev-server/ internal/ mock-doc/ sys/ testing/ && npm run clean:scripts && npm run clean.screenshots", @@ -34,12 +34,12 @@ "prettier": "npm run prettier.base -- --write", "prettier.base": "prettier --cache \"./({bin,scripts,src,test}/**/*.{ts,tsx,js,jsx})|bin/rindo|.github/(**/)?*.(yml|yaml)|*.js\"", "prettier.dry-run": "npm run prettier.base -- --list-different", - "release.ci.prepare": "npm run ts scripts/index.ts --release --ci-prepare", - "release.ci": "NODE_OPTIONS=--max-old-space-size=4096 npm run ts scripts/index.ts --release --ci-publish", + "release.ci.prepare": "npm run ts scripts/index.ts -- --release --ci-prepare", + "release.ci": "NODE_OPTIONS=--max-old-space-size=4096 npm run ts scripts/index.ts -- --release --ci-publish", "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --coverage", "test.analysis": "cd test && npm run analysis.build-and-analyze", "test.bundlers": "cd test && npm run bundlers", - "test.dist": "npm run ts scripts/index.ts --validate-build", + "test.dist": "npm run ts scripts/index.ts -- --validate-build", "test.end-to-end": "cd test/end-to-end && npm ci && npm test && npm run test.dist", "test.jest": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js", "test.prod": "npm run test.dist && npm run test.end-to-end && npm run test.jest && npm run test.testing && npm run test.analysis", diff --git a/scripts/utils/conventional-changelog-config.ts b/scripts/utils/conventional-changelog-config.js similarity index 100% rename from scripts/utils/conventional-changelog-config.ts rename to scripts/utils/conventional-changelog-config.js diff --git a/scripts/utils/release-utils.ts b/scripts/utils/release-utils.ts index 71421322..b31fe48f 100644 --- a/scripts/utils/release-utils.ts +++ b/scripts/utils/release-utils.ts @@ -98,7 +98,7 @@ export function prettyVersionDiff(oldVersion: string, inc: any): string { */ export async function updateChangeLog(opts: BuildOptions): Promise { const ccPath = join(opts.nodeModulesDir, '.bin', 'conventional-changelog'); - const ccConfigPath = join(opts.scriptsBuildDir, 'utils', 'conventional-changelog-config.js'); + const ccConfigPath = join(__dirname, 'conventional-changelog-config.js'); const { execa } = await import('execa'); // API Docs for conventional-changelog: https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-core#api await execa(