Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: include optional deps in desktop package #3105

ClosedStiensWout(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/3105/headopened View on GitHub

Showing 2 changed files with 15 additions and 2 deletions.

x
0 of 2 viewed, 2 left
8 additions and 0 deletionsscripts/build-desktop-artifact.test.tsModified
View file
@@ -15,6 +15,7 @@
resolveGitHubPublishConfig,
resolveMockUpdateServerPort,
resolveMockUpdateServerUrl,
+ resolveStageInstallArgs,
} from "./build-desktop-artifact.ts";
import { BRAND_ASSET_PATHS } from "./lib/brand-assets.ts";
import { HostProcessArchitecture, HostProcessPlatform } from "@t3tools/shared/hostProcess";
@@ -142,6 +143,13 @@
});
​
+ it("installs staged production dependencies with optional platform packages", () => {
+ const args = resolveStageInstallArgs();
+​
+ assert.deepStrictEqual(args, ["install", "--prod"]);
+ assert.equal(args.includes("--no-optional"), false);
+ });
+​
it("falls back to the default mock update port when the configured port is blank", () => {
assert.equal(resolveMockUpdateServerUrl(undefined), "http://localhost:3000");
assert.equal(resolveMockUpdateServerUrl(4123), "http://localhost:4123");
7 additions and 2 deletionsscripts/build-desktop-artifact.tsModified
View file
@@ -297,6 +297,10 @@
: undefined;