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 }) => {
|
||||
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);
|
||||
|
||||
if (result.exitCode !== 0) {
|
||||
|
|
@ -74,10 +80,6 @@ export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => {
|
|||
.map(Number);
|
||||
const newVersion = `${major}.${minor}.${patch + 1}`;
|
||||
|
||||
const session = await client.session.get({
|
||||
path: { id: event.properties.sessionID },
|
||||
});
|
||||
|
||||
const commitMessage =
|
||||
session.data?.title ?? `feat: release version v${newVersion}`;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "blank",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user