Skip to content

Commit

Permalink
fix(create-arca): update config file format
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer17x committed Sep 20, 2023
1 parent 78f1b0a commit b26284f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/create-arca/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const init = async () => {
{
type: 'confirm',
name: 'isCreate',
message: 'Create a new repository?',
message: 'Create a new project?',
initial: true,
},
{
Expand Down
4 changes: 2 additions & 2 deletions packages/create-arca/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ export const setupConfig = (config: {

if (eslint) {
const src = path.resolve(__dirname, '../source/configs/_eslint');
const dest = path.resolve(process.cwd(), `${projectName}/.eslintrc.js`);
const dest = path.resolve(process.cwd(), `${projectName}/.eslintrc.cjs`);
fs.copyFileSync(src, dest);
}
if (prettier) {
const src = path.resolve(__dirname, '../source/configs/_prettier');
const dest = path.resolve(process.cwd(), `${projectName}/.prettierrc.js`);
const dest = path.resolve(process.cwd(), `${projectName}/.prettierrc.cjs`);
fs.copyFileSync(src, dest);
}
};
Expand Down

0 comments on commit b26284f

Please sign in to comment.