From 3868cb3e88b112f0cc100f02e6c8e69cdb1257ef Mon Sep 17 00:00:00 2001 From: Ashton Eby Date: Thu, 31 Oct 2024 15:31:57 -0700 Subject: [PATCH] WIP --- src/config/setup-container.mjs | 2 ++ src/lib/middleware.mjs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/setup-container.mjs b/src/config/setup-container.mjs index df64ec38..d06ea2b6 100644 --- a/src/config/setup-container.mjs +++ b/src/config/setup-container.mjs @@ -8,6 +8,7 @@ import { confirm } from "@inquirer/prompts"; import * as awilix from "awilix"; import { Lifetime } from "awilix"; import open from "open"; +import updateNotifier from "update-notifier"; import { parseYargs } from "../cli.mjs"; import { performQuery } from "../commands/eval.mjs"; @@ -60,6 +61,7 @@ export const injectables = { // third-party libraries confirm: awilix.asValue(confirm), open: awilix.asValue(open), + updateNotifier: awilix.asValue(updateNotifier), // generic lib (homemade utilities) parseYargs: awilix.asValue(parseYargs), diff --git a/src/lib/middleware.mjs b/src/lib/middleware.mjs index ec9780d2..3a72ac93 100644 --- a/src/lib/middleware.mjs +++ b/src/lib/middleware.mjs @@ -24,7 +24,7 @@ export function fixPaths(argv) { export function checkForUpdates(argv) { // TODO: figure out upgrade path for SEA installations - if (!isSea()) return argv; + if (isSea()) return argv; const __filename = fileURLToPath(import.meta.url); let __dirname = path.dirname(__filename);