@mimik/local 6.0.8 → 6.0.9
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/index.js +13 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -644,6 +644,18 @@ const scripts = () => {
|
|
|
644
644
|
write(packageFilename, packageFile, 'package.json', INSTALL, true);
|
|
645
645
|
};
|
|
646
646
|
|
|
647
|
+
const unScripts = () => {
|
|
648
|
+
const packageFilename = rootPath('package.json');
|
|
649
|
+
const scriptsFile = parse(read(path.join(__dirname, 'scripts.json'), INSTALL), 'scripts.json', INSTALL);
|
|
650
|
+
const packageFile = parse(read(packageFilename, INSTALL), 'package.json', INSTALL);
|
|
651
|
+
|
|
652
|
+
Object.keys(scriptsFile.scripts).forEach((script) => {
|
|
653
|
+
delete packageFile.scripts[script];
|
|
654
|
+
});
|
|
655
|
+
delete packageFile.husky;
|
|
656
|
+
write(packageFilename, packageFile, 'package.json', INSTALL, true);
|
|
657
|
+
};
|
|
658
|
+
|
|
647
659
|
module.exports = {
|
|
648
660
|
mSTTestSetup,
|
|
649
661
|
mSTSetup,
|
|
@@ -653,6 +665,7 @@ module.exports = {
|
|
|
653
665
|
setup,
|
|
654
666
|
dotFiles,
|
|
655
667
|
scripts,
|
|
668
|
+
unScripts,
|
|
656
669
|
commitCheckMsg,
|
|
657
670
|
start2process,
|
|
658
671
|
testJsonFile,
|