@lntvow/dev 0.1.2 → 0.1.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/package.json +1 -1
- package/script/postinstall.js +2 -5
- package/script/tmp/.eslintignore +9 -10
- package/script/tmp/.gitignore +10 -19
package/package.json
CHANGED
package/script/postinstall.js
CHANGED
|
@@ -24,15 +24,12 @@ function copyDirectorySync(source, target) {
|
|
|
24
24
|
|
|
25
25
|
if (file.isDirectory()) {
|
|
26
26
|
// 如果是子目录,递归复制
|
|
27
|
-
console.log(`发现目录: ${sourcePath}`)
|
|
28
27
|
copyDirectorySync(sourcePath, filePath)
|
|
29
28
|
} else {
|
|
30
|
-
if (fs.existsSync(filePath))
|
|
31
|
-
|
|
32
|
-
}
|
|
29
|
+
if (fs.existsSync(filePath)) return
|
|
30
|
+
|
|
33
31
|
// 如果是文件,使用流复制
|
|
34
32
|
fs.createReadStream(sourcePath).pipe(fs.createWriteStream(filePath))
|
|
35
|
-
|
|
36
33
|
console.log(`文件复制成功: ${sourcePath}`)
|
|
37
34
|
}
|
|
38
35
|
})
|
package/script/tmp/.eslintignore
CHANGED
|
@@ -7,19 +7,18 @@ yarn-error.log*
|
|
|
7
7
|
pnpm-debug.log*
|
|
8
8
|
lerna-debug.log*
|
|
9
9
|
|
|
10
|
-
node_modules
|
|
11
|
-
.DS_Store
|
|
12
|
-
dist
|
|
13
|
-
dist-ssr
|
|
14
|
-
coverage
|
|
15
|
-
*.local
|
|
16
|
-
|
|
17
|
-
/cypress/videos/
|
|
18
|
-
/cypress/screenshots/
|
|
19
|
-
|
|
20
10
|
# Editor directories and files
|
|
21
11
|
*.suo
|
|
22
12
|
*.ntvs*
|
|
23
13
|
*.njsproj
|
|
24
14
|
*.sln
|
|
25
15
|
*.sw?
|
|
16
|
+
|
|
17
|
+
#
|
|
18
|
+
node_modules
|
|
19
|
+
.DS_Store
|
|
20
|
+
dist
|
|
21
|
+
dist-ssr
|
|
22
|
+
coverage
|
|
23
|
+
*.local
|
|
24
|
+
_*
|
package/script/tmp/.gitignore
CHANGED
|
@@ -7,28 +7,19 @@ yarn-error.log*
|
|
|
7
7
|
pnpm-debug.log*
|
|
8
8
|
lerna-debug.log*
|
|
9
9
|
|
|
10
|
-
node_modules
|
|
11
|
-
.DS_Store
|
|
12
|
-
dist
|
|
13
|
-
dist-ssr
|
|
14
|
-
coverage
|
|
15
|
-
*.local
|
|
16
|
-
|
|
17
|
-
/cypress/videos/
|
|
18
|
-
/cypress/screenshots/
|
|
19
|
-
|
|
20
10
|
# Editor directories and files
|
|
21
11
|
*.suo
|
|
22
12
|
*.ntvs*
|
|
23
13
|
*.njsproj
|
|
24
14
|
*.sln
|
|
25
15
|
*.sw?
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
node_modules
|
|
20
|
+
.DS_Store
|
|
21
|
+
dist
|
|
22
|
+
dist-ssr
|
|
23
|
+
coverage
|
|
24
|
+
*.local
|
|
25
|
+
_*
|