Move package scripts into packages tree
- relocate Bun normalization helpers under `packages/scripts` - update shared package build logic to use the new paths - remove obsolete top-level package wrappers
This commit is contained in:
@@ -60,6 +60,9 @@ nix flake show --all-systems
|
||||
├── README.md
|
||||
└── packages
|
||||
├── common.nix
|
||||
├── scripts
|
||||
│ ├── canonicalize-node-modules.ts
|
||||
│ └── normalize-bun-binaries.ts
|
||||
├── desktop
|
||||
│ ├── build-nix-desktop-package.mjs
|
||||
│ ├── default.nix
|
||||
@@ -71,6 +74,7 @@ nix flake show --all-systems
|
||||
## Notes
|
||||
|
||||
- `packages/common.nix` contains the shared Bun workspace and `node-pty` setup used by both packages.
|
||||
- `packages/scripts/*.ts` contains the Bun install-tree normalization helpers used by `packages/common.nix`.
|
||||
- `packages/desktop/build-nix-desktop-package.mjs` is local packaging glue carried by this repo.
|
||||
- `packages/desktop/desktop-nix-autoupdate.patch` is a downstream patch for desktop auto-update messaging in package-managed installs.
|
||||
- Upstream source is pinned in `flake.lock` via the `t3code` input.
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
import ../packages/desktop
|
||||
@@ -1 +0,0 @@
|
||||
import ../packages/server
|
||||
+2
-2
@@ -70,8 +70,8 @@ in {
|
||||
--no-progress \
|
||||
${renderBunFilters filters}
|
||||
|
||||
bun --bun ${../nix/scripts/canonicalize-node-modules.ts}
|
||||
bun --bun ${../nix/scripts/normalize-bun-binaries.ts}
|
||||
bun --bun ${./scripts/canonicalize-node-modules.ts}
|
||||
bun --bun ${./scripts/normalize-bun-binaries.ts}
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
@@ -92,7 +92,7 @@ in
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "t3 code web/server app";
|
||||
description = "T3 Code web/server app";
|
||||
homepage = "https://github.com/pingdotgg/t3code";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "t3";
|
||||
|
||||
Reference in New Issue
Block a user