deeke-script-app 1.0.4 → 1.0.6
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/init +1 -0
- package/package.json +1 -1
package/init
CHANGED
|
@@ -7,6 +7,7 @@ function generateFiles(answers) {
|
|
|
7
7
|
const projectPath = process.cwd(); // 输出:/Users/username/project
|
|
8
8
|
|
|
9
9
|
const files = fs.readdirSync(projectPath)
|
|
10
|
+
console.log(projectPath, files);
|
|
10
11
|
if (files.length > 3 || !files.includes('package.json') || !files.includes('package-lock.json') || !files.includes('node_modules')) {
|
|
11
12
|
throw new Error('请清空当前文件夹,并重新运行命令');
|
|
12
13
|
}
|