Skip to content

Commit

Permalink
feat: add lilybird transformers to version cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Jul 22, 2024
1 parent e516286 commit 0f22aa8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/commands/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
LILYBIRD_VERSION,
LILYBIRD_HANDLERS_VERSION,
LILYBIRD_JSX_VERSION,
LILYBIRD_TRANSFORMERS_VERSION,
} from "../constants.ts";

$applicationCommand({
Expand All @@ -20,8 +21,9 @@ $applicationCommand({
`[Bun v${Bun.version} (${Bun.revision})](<https://github.com/oven-sh/bun/releases/tag/bun-v${Bun.version}>)`,
"",
`[Lilybird v${LILYBIRD_VERSION}](<https://npmjs.org/lilybird>)`,
`[Lilybird JSX v${LILYBIRD_JSX_VERSION}](<https://npmjs.org/@lilybird/jsx>)`,
`[Lilybird Handlers v${LILYBIRD_HANDLERS_VERSION}](<https://npmjs.org/@lilybird/handlers>)`,
`[Lilybird JSX v${LILYBIRD_JSX_VERSION}](<https://npmjs.org/@lilybird/jsx>)`,
`[Lilybird Transformers v${LILYBIRD_TRANSFORMERS_VERSION}](<https://npmjs.org/@lilybird/transformers>)`,
].join("\n"),
ephemeral: true,
});
Expand Down
8 changes: 6 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ export const COMMIT_HASH = spawnSync({
}).stdout.toString();

export const LILYBIRD_VERSION = sliceIfStartsWith(dependencies.lilybird, "^");
export const LILYBIRD_HANDLERS_VERSION = sliceIfStartsWith(
dependencies["@lilybird/handlers"],
"^",
);
export const LILYBIRD_JSX_VERSION = sliceIfStartsWith(
dependencies["@lilybird/jsx"],
"^",
);
export const LILYBIRD_HANDLERS_VERSION = sliceIfStartsWith(
dependencies["@lilybird/handlers"],
export const LILYBIRD_TRANSFORMERS_VERSION = sliceIfStartsWith(
dependencies["@lilybird/transformers"],
"^",
);

Expand Down

0 comments on commit 0f22aa8

Please sign in to comment.