@typed-assistant/builder 0.0.60 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typed-assistant/builder",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "exports": {
5
5
  "./appProcess": "./src/appProcess.tsx",
6
6
  "./bunInstall": "./src/bunInstall.tsx",
@@ -25,8 +25,8 @@
25
25
  "home-assistant-js-websocket": "^8.2.0",
26
26
  "ts-toolbelt": "^9.6.0",
27
27
  "typescript": "^5.3.3",
28
- "@typed-assistant/eslint-config": "0.0.9",
29
28
  "@typed-assistant/logger": "0.0.17",
29
+ "@typed-assistant/eslint-config": "0.0.9",
30
30
  "@typed-assistant/typescript-config": "0.0.9",
31
31
  "@typed-assistant/utils": "0.0.15"
32
32
  },
@@ -4,8 +4,8 @@ import { bunInstall } from "./bunInstall"
4
4
 
5
5
  export const pullChanges = async () => {
6
6
  logger.debug({ emoji: "⬇️" }, "Pulling changes...")
7
- const { stderr, stdout } = await $`git pull`.quiet()
8
- if (stderr.length > 0) {
7
+ const { exitCode, stderr, stdout } = await $`git pull`.quiet()
8
+ if (exitCode) {
9
9
  logger.error(
10
10
  { additionalDetails: stderr.toString().trim(), emoji: "⬇️🚨" },
11
11
  `Failed to pull changes.`,
@@ -163,6 +163,10 @@ export const startWebappServer = async ({
163
163
  restartAddon()
164
164
  return { message: "Restarting addon..." }
165
165
  })
166
+ .get("/force-sync-with-github", async () => {
167
+ const { exitCode, stdout, stderr } =
168
+ await $`git reset --hard origin/${process.env.GITHUB_BRANCH}`.quiet()
169
+ })
166
170
  .get(
167
171
  "/webhook",
168
172
  async ({ query }) => {