Skip to content

Commit

Permalink
fix: create the config file on project root instead of the current fo…
Browse files Browse the repository at this point in the history
…lder
  • Loading branch information
enxg committed Oct 9, 2021
1 parent 5f59996 commit aa3b352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ export default async () => {
};

const file = response.configFormat === 'json' ? JSON.stringify(config, null, 2) : YAML.stringify(config);
return writeFile(`.sapphirerc.${response.configFormat}`, file);
return writeFile(packageJson.replace('package.json', `.sapphirerc.${response.configFormat}`), file);
};

0 comments on commit aa3b352

Please sign in to comment.