feat: add lilybird transformers to version cmd

This commit is contained in:
Jozef Steinhübl 2024-07-22 21:39:56 +02:00
parent e5162861d5
commit 0f22aa8dcc
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
2 changed files with 9 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import {
LILYBIRD_VERSION,
LILYBIRD_HANDLERS_VERSION,
LILYBIRD_JSX_VERSION,
LILYBIRD_TRANSFORMERS_VERSION,
} from "../constants.ts";
$applicationCommand({
@ -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,
});

View file

@ -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"],
"^",
);