Skip to content
Source
Sign inSign up
pingdotgg/t3code

chore(server): keep the legacy service entry point to the npm package only #11770

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/11770/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 9 additions and 82 deletions (loading 2).

x
0 of 5 viewed, 5 left
0 additions and 48 deletionsapps/server/src/cloud/pinnedRuntime.test.tsModified
View file
@@ -1,4 +1,3 @@
-import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
import * as NodeServices from "@effect/platform-node/NodeServices";
import { assert, it } from "@effect/vitest";
import * as Deferred from "effect/Deferred";
@@ -95,19 +94,6 @@
assert.deepEqual(commands, ["tar"]);
assert.equal(yield* fs.readFileString(paths.sentinelPath), `${version}\n`);
assert.isFalse(yield* fs.exists(path.join(paths.versionDir, "t3-runtime-archive")));
- if ((yield* HostProcessPlatform) !== "win32") {
- // The old launcher must still be able to start this archive after the
- // first npm-to-executable update, including from the final directory.
- yield* fs.writeFileString(paths.entryPath, '#!/bin/sh\nprintf "%s\\n" "$@"\n');
- yield* fs.chmod(paths.entryPath, 0o755);
- const runner = yield* ProcessRunner.make();
- const legacyStart = yield* runner.run({
- command: process.execPath,
- args: [path.join(paths.versionDir, "node_modules/t3/dist/bin.mjs"), "serve"],
- });
- assert.equal(Number(legacyStart.code), 0, legacyStart.stderr);
- assert.equal(legacyStart.stdout.trim(), "serve");
- }
}),
​
@@ -223,40 +209,6 @@
}),
​