brew-tui 2.2.0 → 2.2.1
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/build/{brew-tui-bar-installer-W5ERTVV4.js → brew-tui-bar-installer-ACAVC66L.js} +4 -2
- package/build/{chunk-NTJNEZ52.js → chunk-HKKLLJPO.js} +23 -1
- package/build/{chunk-NTJNEZ52.js.map → chunk-HKKLLJPO.js.map} +1 -1
- package/build/index.js +8 -25
- package/build/index.js.map +1 -1
- package/build/postinstall.js +3 -10
- package/build/postinstall.js.map +1 -1
- package/build/{version-check-B2GS6HLU.js → version-check-HXQJF64V.js} +2 -2
- package/package.json +1 -1
- /package/build/{brew-tui-bar-installer-W5ERTVV4.js.map → brew-tui-bar-installer-ACAVC66L.js.map} +0 -0
- /package/build/{version-check-B2GS6HLU.js.map → version-check-HXQJF64V.js.map} +0 -0
package/build/postinstall.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
launchBrewTUIBar
|
|
6
|
-
} from "./chunk-NTJNEZ52.js";
|
|
3
|
+
syncAndLaunchBrewTUIBar
|
|
4
|
+
} from "./chunk-HKKLLJPO.js";
|
|
7
5
|
import "./chunk-NRRQECXA.js";
|
|
8
6
|
import {
|
|
9
7
|
t
|
|
@@ -19,12 +17,7 @@ async function main() {
|
|
|
19
17
|
return;
|
|
20
18
|
}
|
|
21
19
|
try {
|
|
22
|
-
|
|
23
|
-
console.log(t("cli_brewtuibarInstalling"));
|
|
24
|
-
await installBrewTUIBar(false, false);
|
|
25
|
-
console.log(t("cli_brewtuibarInstalled"));
|
|
26
|
-
}
|
|
27
|
-
await launchBrewTUIBar();
|
|
20
|
+
await syncAndLaunchBrewTUIBar();
|
|
28
21
|
} catch (err) {
|
|
29
22
|
const message = err instanceof Error ? err.message : String(err);
|
|
30
23
|
console.warn(t("postinstall_skipped", { error: message }));
|
package/build/postinstall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"sourcesContent":["#!/usr/bin/env node\n// Runs after `npm install -g brew-tui` (which is what `brew install brew-tui`\n// does internally). Auto-installs and launches Brew-TUI-Bar so that users get\n// the menu bar app without needing a separate `brew install --cask` step.\n//\n// Non-fatal by design: any failure here only logs a warning and exits 0. We\n// never want a transient network / disk / permissions issue to break the npm\n// install itself.\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/postinstall.ts"],"sourcesContent":["#!/usr/bin/env node\n// Runs after `npm install -g brew-tui` (which is what `brew install brew-tui`\n// does internally). Auto-installs and launches Brew-TUI-Bar so that users get\n// the menu bar app without needing a separate `brew install --cask` step.\n//\n// Non-fatal by design: any failure here only logs a warning and exits 0. We\n// never want a transient network / disk / permissions issue to break the npm\n// install itself.\nimport { syncAndLaunchBrewTUIBar } from './lib/brew-tui-bar-installer.js';\nimport { t } from './i18n/index.js';\n\nasync function main(): Promise<void> {\n // Only run on global installs. `brew install` calls `npm install --global`\n // (which sets npm_config_global=true), and `npm install -g <pkg>` does the\n // same. Local installs in dev (`npm install` from the repo) skip this so\n // cloning the repo does not silently touch /Applications.\n if (process.env['npm_config_global'] !== 'true') {\n return;\n }\n\n // macOS only — the bundle is a .app, no equivalent on Linux/Windows.\n if (process.platform !== 'darwin') {\n return;\n }\n\n try {\n // Shared with the CLI cold-start path: installs when missing, reinstalls\n // when outdated, then launches. So upgrading `brew-tui` (formula or npm)\n // also brings Brew-TUI-Bar.app up to the matching version automatically.\n await syncAndLaunchBrewTUIBar();\n } catch (err) {\n const message = err instanceof Error ? err.message : String(err);\n console.warn(t('postinstall_skipped', { error: message }));\n console.warn(t('postinstall_manualHint'));\n }\n}\n\nmain().catch(() => {\n // Belt-and-suspenders: never propagate a failure to npm.\n});\n"],"mappings":";;;;;;;;;;;AAWA,eAAe,OAAsB;AAKnC,MAAI,QAAQ,IAAI,mBAAmB,MAAM,QAAQ;AAC/C;AAAA,EACF;AAGA,MAAI,QAAQ,aAAa,UAAU;AACjC;AAAA,EACF;AAEA,MAAI;AAIF,UAAM,wBAAwB;AAAA,EAChC,SAAS,KAAK;AACZ,UAAM,UAAU,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;AAC/D,YAAQ,KAAK,EAAE,uBAAuB,EAAE,OAAO,QAAQ,CAAC,CAAC;AACzD,YAAQ,KAAK,EAAE,wBAAwB,CAAC;AAAA,EAC1C;AACF;AAEA,KAAK,EAAE,MAAM,MAAM;AAEnB,CAAC;","names":[]}
|
|
@@ -6,7 +6,7 @@ var execFileAsync = promisify(execFile);
|
|
|
6
6
|
var BREWTUIBAR_INFO_PLIST = "/Applications/Brew-TUI-Bar.app/Contents/Info.plist";
|
|
7
7
|
var CONTRACT_VERSION = 1;
|
|
8
8
|
function expectedVersion() {
|
|
9
|
-
return "2.2.
|
|
9
|
+
return "2.2.1";
|
|
10
10
|
}
|
|
11
11
|
async function readBrewTUIBarVersion() {
|
|
12
12
|
try {
|
|
@@ -61,4 +61,4 @@ export {
|
|
|
61
61
|
expectedVersion,
|
|
62
62
|
readBrewTUIBarVersion
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=version-check-
|
|
64
|
+
//# sourceMappingURL=version-check-HXQJF64V.js.map
|
package/package.json
CHANGED
/package/build/{brew-tui-bar-installer-W5ERTVV4.js.map → brew-tui-bar-installer-ACAVC66L.js.map}
RENAMED
|
File without changes
|
|
File without changes
|