1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Tools: Moved some utility functions to @joplin/utils to reduce dependencies between packages

This commit is contained in:
Laurent Cozic
2023-03-19 15:37:07 +00:00
parent 1548ea18e1
commit 3e52411bc4
37 changed files with 308 additions and 229 deletions

View File

@@ -1,5 +1,6 @@
import { execCommand } from '@joplin/utils';
import { chdir } from 'process';
import { rootDir, gitPullTry, execCommand2, releaseFinalGitCommands } from './tool-utils';
import { rootDir, gitPullTry, releaseFinalGitCommands } from './tool-utils';
const workDir = `${rootDir}/packages/plugin-repo-cli`;
@@ -7,18 +8,18 @@ async function main() {
await gitPullTry();
chdir(rootDir);
await execCommand2('yarn run tsc');
await execCommand('yarn run tsc');
chdir(workDir);
await execCommand2('yarn run dist');
await execCommand('yarn run dist');
const newVersion = (await execCommand2('npm version patch')).trim();
const newVersion = (await execCommand('npm version patch')).trim();
console.info(`New version: ${newVersion}`);
const tagName = `plugin-repo-cli-${newVersion}`;
console.info(`Tag name: ${tagName}`);
await execCommand2('npm publish');
await execCommand('npm publish');
console.info(releaseFinalGitCommands('Plugin Repo CLI', newVersion, tagName));
}