Merge pull request #7 from sern-handler/fix/json

Fix/json
This commit is contained in:
Jacob Nguyen
2023-07-02 22:24:53 -05:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@sern/create-bot",
"version": "1.1.1",
"version": "1.1.2",
"main": "./dist/index.js",
"license": "MIT",
"scripts": {

View File

@@ -168,7 +168,7 @@ async function createProject(
await Promise.all([
fs.promises.writeFile(
path.join(root, 'sern.config.json'),
JSON.stringify(config),
JSON.stringify(config, null, 2),
'utf8'
),
fs.promises.writeFile(
@@ -207,7 +207,7 @@ function createConfig(isTypescript: boolean) {
language: isTypescript ? 'typescript' : 'javascript',
paths: {
base: 'src',
cmds_dir: 'commands',
commands: 'commands',
},
};
}