ROLES

tcmts.cli.roles.ROLES · #mqlt5ga6 · term · runs anywhere

The roles a package's manifest can give its definitions (roles: { Sheet: "stylesheet" }): what tcm's analysis and build treat specially, known by the definition's hash rather than by where it's imported from, so a library's versions of them are known too.

export const ROLES = {
  stylesheet:
    "a component given a stylesheet file as `css={…}`: the browser is sent the file, linked to, not its text (as the react library's `<Stylesheet>`)",
  table:
    "a function making a typed table: `const users = table<User>(\"users\")` at the top level is a table, its row type's schema kept with it (as the server library's `table`)",
  every:
    "a function making a recurring job: a definition beside an app whose value it makes is run on its schedule (as the server library's `every`)",
} as const

used by