mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-22 14:41:05 +01:00
feat: add lilybird transformers to version cmd
This commit is contained in:
parent
e5162861d5
commit
0f22aa8dcc
2 changed files with 9 additions and 3 deletions
|
@ -6,6 +6,7 @@ import {
|
||||||
LILYBIRD_VERSION,
|
LILYBIRD_VERSION,
|
||||||
LILYBIRD_HANDLERS_VERSION,
|
LILYBIRD_HANDLERS_VERSION,
|
||||||
LILYBIRD_JSX_VERSION,
|
LILYBIRD_JSX_VERSION,
|
||||||
|
LILYBIRD_TRANSFORMERS_VERSION,
|
||||||
} from "../constants.ts";
|
} from "../constants.ts";
|
||||||
|
|
||||||
$applicationCommand({
|
$applicationCommand({
|
||||||
|
@ -20,8 +21,9 @@ $applicationCommand({
|
||||||
`[Bun v${Bun.version} (${Bun.revision})](<https://github.com/oven-sh/bun/releases/tag/bun-v${Bun.version}>)`,
|
`[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 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 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"),
|
].join("\n"),
|
||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,12 +8,16 @@ export const COMMIT_HASH = spawnSync({
|
||||||
}).stdout.toString();
|
}).stdout.toString();
|
||||||
|
|
||||||
export const LILYBIRD_VERSION = sliceIfStartsWith(dependencies.lilybird, "^");
|
export const LILYBIRD_VERSION = sliceIfStartsWith(dependencies.lilybird, "^");
|
||||||
|
export const LILYBIRD_HANDLERS_VERSION = sliceIfStartsWith(
|
||||||
|
dependencies["@lilybird/handlers"],
|
||||||
|
"^",
|
||||||
|
);
|
||||||
export const LILYBIRD_JSX_VERSION = sliceIfStartsWith(
|
export const LILYBIRD_JSX_VERSION = sliceIfStartsWith(
|
||||||
dependencies["@lilybird/jsx"],
|
dependencies["@lilybird/jsx"],
|
||||||
"^",
|
"^",
|
||||||
);
|
);
|
||||||
export const LILYBIRD_HANDLERS_VERSION = sliceIfStartsWith(
|
export const LILYBIRD_TRANSFORMERS_VERSION = sliceIfStartsWith(
|
||||||
dependencies["@lilybird/handlers"],
|
dependencies["@lilybird/transformers"],
|
||||||
"^",
|
"^",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue