Skip to content

Commit 4415062

Browse files
update version package.json
1 parent 3acf4e4 commit 4415062

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"automating-code-creation",
1010
"code-generation"
1111
],
12-
"version": "1.3.6",
12+
"version": "1.3.7",
1313
"bin": {
1414
"create-snippet": "./dist/bin/index.js"
1515
},

src/modules/config/config.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import chalk from 'chalk'
12
import fs from 'fs'
23
import path from 'path'
34
import { CONSTANTS } from '../../constants'
@@ -68,6 +69,9 @@ ${objectToString(enumSnippetName)}
6869
fs.mkdirSync(path.join(pathExample), { recursive: true })
6970
fs.writeFileSync(path.join(...[pathExample, 'snippet-name.ts']), this.example(index))
7071
})
72+
73+
// eslint-disable-next-line no-console
74+
console.log(`${chalk.green(`√`)} ${chalk.gray(`the project has been successfully initialized`)}`)
7175
}
7276

7377
public get() {

src/modules/snippet/snippet.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import chalk from 'chalk'
12
import fs from 'fs'
23
import nodePath from 'path'
34
import { prompt } from 'prompts'
@@ -170,6 +171,8 @@ export class ModuleSnippet {
170171
this.options.isFlat ? myPath.pathFlatWriteSnippetFile : myPath.pathWriteSnippetFile,
171172
data
172173
)
174+
// eslint-disable-next-line no-console
175+
console.log(`${chalk.green(`√`)} ${chalk.gray(myPath.snippetFileName)}`)
173176
})
174177
})
175178
}

0 commit comments

Comments
 (0)