@lntvow/dev 0.1.6 → 0.1.7
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/package.json
CHANGED
package/script/postinstall.js
CHANGED
|
@@ -68,9 +68,6 @@ setTimeout(() => {
|
|
|
68
68
|
...packageJsonObj.scripts,
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
fs.writeFileSync(path.resolve(cwd, './package.json'), JSON.stringify(packageJsonObj, null, 2))
|
|
71
|
+
fs.writeFileSync(path.resolve(cwd, './package.json'), `${JSON.stringify(packageJsonObj, null, 2)}\n`)
|
|
72
72
|
console.log('lint-staged 配置写入成功')
|
|
73
|
-
|
|
74
|
-
// 格式化代码
|
|
75
|
-
execSync('npx lint-staged', { cwd })
|
|
76
|
-
}, 5000)
|
|
73
|
+
}, 3000)
|