Greeting thread: Hi
This commit is contained in:
parent
8cad80ec6d
commit
9f4eecb116
|
|
@ -35,6 +35,12 @@ export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => {
|
||||||
event: async ({ event }) => {
|
event: async ({ event }) => {
|
||||||
if (event.type !== "session.idle") return;
|
if (event.type !== "session.idle") return;
|
||||||
|
|
||||||
|
const session = await client.session.get({
|
||||||
|
path: { id: event.properties.sessionID },
|
||||||
|
});
|
||||||
|
|
||||||
|
console.dir(session, { depth: null });
|
||||||
|
|
||||||
const result = await $`pnpm build`.catch((error) => error);
|
const result = await $`pnpm build`.catch((error) => error);
|
||||||
|
|
||||||
if (result.exitCode !== 0) {
|
if (result.exitCode !== 0) {
|
||||||
|
|
@ -74,10 +80,6 @@ export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => {
|
||||||
.map(Number);
|
.map(Number);
|
||||||
const newVersion = `${major}.${minor}.${patch + 1}`;
|
const newVersion = `${major}.${minor}.${patch + 1}`;
|
||||||
|
|
||||||
const session = await client.session.get({
|
|
||||||
path: { id: event.properties.sessionID },
|
|
||||||
});
|
|
||||||
|
|
||||||
const commitMessage =
|
const commitMessage =
|
||||||
session.data?.title ?? `feat: release version v${newVersion}`;
|
session.data?.title ?? `feat: release version v${newVersion}`;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "blank",
|
"name": "blank",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user