Skip to content

Commit

Permalink
feat: show zept version
Browse files Browse the repository at this point in the history
  • Loading branch information
do4ng committed Sep 3, 2023
1 parent 7571b43 commit f719189
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/zely/src/show-listen.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { box } from 'teeti';
import loadModule from '$zely/lib/webpack';
import 'colors';

import pkg from '../package.json';

export function showListen(port: number | string) {
console.log(`${'$'.gray} ${'zely'.yellow}${`v${pkg.version}`.yellow.dim}`);
console.log(
`${'-'.gray} ${`zept@${loadModule('zept/package.json').version}`.yellow.dim}`
);
console.log(`${'$'.gray} ${`zely@${pkg.version}`.yellow}`);

console.log();
const result = box(
Expand Down

0 comments on commit f719189

Please sign in to comment.