Skip to content

Commit

Permalink
feat(detect-js): provided output to highlight when a js project is de…
Browse files Browse the repository at this point in the history
…tected
  • Loading branch information
travi committed Mar 21, 2024
1 parent b4fa37a commit c26fea5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tester.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {info} from '@travi/cli-messages';

import {test as nvmIsUsed} from './node-version/index.js';
import {test as jsPackageManagerIsUsed} from './package-managers/index.js';

Expand All @@ -7,5 +9,9 @@ export default async function ({projectRoot}) {
jsPackageManagerIsUsed({projectRoot})
]);

return nvmFound || jsPackageManagerFound;
const jsProjectFound = nvmFound || jsPackageManagerFound;

if (jsProjectFound) info('JavaScript Project Detected');

return jsProjectFound;
}

0 comments on commit c26fea5

Please sign in to comment.