UNPKG

@thingjs/cli

Version:

<div align="center">      <a href="https://www.thingjs.com/guide/"><img width="200" src="https://www.thingjs.com/static/images/avatar.png"/></a> </div>

16 lines (13 loc) 409 B
import { thing } from '@thingjs/cli-common'; const list = async () => { const versions = await thing.getAllThingJSVersions(); const currentVersion = await thing.getCurProjectThingJSVersion(process.cwd()); versions.forEach((version) => { if (version === currentVersion) { console.log(`* ${version}`); } else { console.log(` ${version}`); } }); }; export { list as default };