Import stdlib by its name, @repos/stdlib
Misha Kaletsky, 2026-11-25 17:42 UTC · 5c140fb60d2972541d6cc96e649020f9e08b0fe5 · parent 1de534a
2 files changed
M app.ts
@@ -5,8 +5,8 @@ // A MIND BORN FROM ANOTHER MIND'S REPOS has its own copy of the Dash and may change it. Once it // has, a pull of /repos/dash is refused until upstream's commits and its own are brought together. import { type AppDescription, serveFiles, type IterateConfigEntrypoint } from "iterate/sdk"; -import { openFile } from "../stdlib/open-files.ts"; -import theme from "../stdlib/theme.css"; +import { openFile } from "@repos/stdlib/open-files.ts"; +import theme from "@repos/stdlib/theme.css"; import index from "./index.html"; import files from "./public/"; @@ -15,7 +15,7 @@ const DASH: AppDescription = { name: "Dash", icon: "/icon.svg", for: "members" }; /** `icon`: the answer for the mind's icon, which every app serves as its own - * (../stdlib/open-files.ts). */ + * (open-files.ts of /repos/stdlib). */ export function dashApp({ icon }: { icon: () => Response }) { return { /** The app's description and icon, for anyone: worker.ts asks this before its guard. */
A package.json
@@ -0,0 +1,8 @@ +{ + "name": "@repos/dash", + "private": true, + "type": "module", + "dependencies": { + "@repos/stdlib": "../stdlib" + } +}