File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
typescript-express-starter Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,10 @@ const destination = getDest(process.argv[2]);
12
12
console . log ( 'Setting up new TypeScript-Express-Starter Project' ) ;
13
13
14
14
tsExpressStarter ( destination ) . then ( ( ) => {
15
- console . log ( 'tsExpressStarter' , destination ) ;
16
15
console . log ( 'Project setup complete!' ) ;
17
16
} ) ;
18
17
19
18
function getDest ( destFolder ) {
20
- console . log ( 'getDest' , destFolder ) ;
21
19
destFolder = destFolder || 'typescript-express-starter' ;
22
20
return path . join ( process . cwd ( ) , destFolder ) ;
23
21
} ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ const editJsonFile = require('edit-json-file');
9
9
const childProcess = require ( 'child_process' ) ;
10
10
const inquirer = require ( 'inquirer' ) ;
11
11
const ncp = require ( 'ncp' ) . ncp ;
12
- const TARGET_DIR = `${ process . cwd ( ) } /lib` ;
13
12
14
13
async function tsExpressStarter ( destination ) {
15
14
try {
@@ -26,16 +25,14 @@ async function tsExpressStarter(destination) {
26
25
function getDirectorys ( ) {
27
26
let directorys = [ ] ;
28
27
29
- console . log ( 'getDirectorys' , TARGET_DIR ) ;
30
- fs . readdirSync ( TARGET_DIR , { withFileTypes : true } )
28
+ fs . readdirSync ( __dirname , { withFileTypes : true } )
31
29
. forEach ( p => {
32
30
const dir = p . name ;
33
31
if ( p . isDirectory ( ) ) {
34
32
directorys . push ( dir ) ;
35
33
}
36
34
} ) ;
37
35
38
- console . log ( 'directorys' , directorys )
39
36
return directorys ;
40
37
} ;
41
38
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " typescript-express-starter" ,
3
- "version" : " 2.0.1 " ,
3
+ "version" : " 2.0.2 " ,
4
4
"description" : " Quick and easy TypeScript Express Starter package" ,
5
5
"author" :
" AGUMON [email protected] " ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments