Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
loopdream committed Oct 8, 2023
1 parent ded99d1 commit 91399cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Configurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ class Configurator {
return this.options;
};

public getConfig = () => this.config;

public getNextConfig = () => {
const exists = (fileName: string) =>
fs.existsSync(path.join(this.cwd, fileName)) || false;
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ program

const opts = await prompts(filteredConfigurationPrompts);

const hasOptions =
const hasConfigurationOptions =
Object.values(opts).includes(true) ||
opts.optionalDependencies.length > 0 ||
opts.dotEnvFiles.length > 0;

if (!hasOptions) {
if (!hasConfigurationOptions) {
// nothing to configure!
goodbye();
return console.log(
Expand Down

0 comments on commit 91399cd

Please sign in to comment.