npms-exam-kit 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/exam-kit.js +2 -2
- package/package.json +1 -1
package/bin/exam-kit.js
CHANGED
|
@@ -6,7 +6,7 @@ import chalk from 'chalk';
|
|
|
6
6
|
import inquirer from 'inquirer';
|
|
7
7
|
import { exec } from 'child_process';
|
|
8
8
|
import { promisify } from 'util';
|
|
9
|
-
import { existsSync, readFileSync, writeFileSync, copyFileSync, mkdirSync, readdirSync, statSync } from 'fs';
|
|
9
|
+
import { existsSync, readFileSync, writeFileSync, copyFileSync, mkdirSync, readdirSync, statSync, cpSync } from 'fs';
|
|
10
10
|
|
|
11
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
12
12
|
const __dirname = dirname(__filename);
|
|
@@ -544,7 +544,7 @@ async function main(){
|
|
|
544
544
|
for(const entry of entries){
|
|
545
545
|
if(entry==='node_modules')continue;
|
|
546
546
|
const s=join(srcDir,entry),d=join(targetDir,entry);
|
|
547
|
-
if(statSync(s).isDirectory())
|
|
547
|
+
if(statSync(s).isDirectory())cpSync(s,d,{recursive:true,force:true});
|
|
548
548
|
else copyFileSync(s,d);
|
|
549
549
|
}
|
|
550
550
|
log(chalk.green(' ✓ Project files installed'));
|