@itcase/config 1.6.85 → 1.6.86
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/lint-staged/index.js +2 -3
- package/lint-staged-ts/index.js +2 -3
- package/package.json +1 -1
package/lint-staged/index.js
CHANGED
|
@@ -31,9 +31,8 @@ export default {
|
|
|
31
31
|
const rootPackageJson = resolve(process.cwd(), 'package.json')
|
|
32
32
|
const isRoot = files.some((file) => resolve(file) === rootPackageJson)
|
|
33
33
|
if (existsSync(rootPackageJson) && isRoot) {
|
|
34
|
-
//
|
|
35
|
-
|
|
36
|
-
return ['npm install --package-lock-only', 'git add -- package-lock.json']
|
|
34
|
+
// lint-staged автоматически добавляет изменения задач в index
|
|
35
|
+
return 'npm install --package-lock-only'
|
|
37
36
|
}
|
|
38
37
|
return 'true' // Пропускаем, если не найден
|
|
39
38
|
},
|
package/lint-staged-ts/index.js
CHANGED
|
@@ -38,9 +38,8 @@ export default {
|
|
|
38
38
|
const rootPackageJson = resolve(process.cwd(), 'package.json')
|
|
39
39
|
const isRoot = files.some((file) => resolve(file) === rootPackageJson)
|
|
40
40
|
if (existsSync(rootPackageJson) && isRoot) {
|
|
41
|
-
//
|
|
42
|
-
|
|
43
|
-
return ['npm install --package-lock-only', 'git add -- package-lock.json']
|
|
41
|
+
// lint-staged автоматически добавляет изменения задач в index
|
|
42
|
+
return 'npm install --package-lock-only'
|
|
44
43
|
}
|
|
45
44
|
return 'true' // Пропускаем, если не найден
|
|
46
45
|
},
|