@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/dev",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "description": "开发环境依赖包",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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
- return console.log(`文件存在跳过: ${sourcePath}`)
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
  })
@@ -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
+ _*
@@ -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
- /test-results/
27
- /playwright-report/
28
- /playwright/.cache/
29
- /test-results/
30
- /playwright-report/
31
- /playwright/.cache/
32
- /test-results/
33
- /playwright-report/
34
- /playwright/.cache/
16
+
17
+
18
+ #
19
+ node_modules
20
+ .DS_Store
21
+ dist
22
+ dist-ssr
23
+ coverage
24
+ *.local
25
+ _*