@modernpoacher/deps 1.6.3 → 1.6.4
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/bin/common/index.js +2 -2
- package/package.json +1 -1
package/bin/common/index.js
CHANGED
|
@@ -54,7 +54,7 @@ const CODE = 0
|
|
|
54
54
|
|
|
55
55
|
const MESSAGE = 'Either no error message has been defined or no error has been supplied'
|
|
56
56
|
|
|
57
|
-
const tidy = (v) => v.replace(/\n\n/gm,
|
|
57
|
+
const tidy = (v) => v.replace(/\n\n/gm, '\n').trim()
|
|
58
58
|
|
|
59
59
|
const trim = (v) => v.split('\n').map((v) => v.trimEnd()).join('\n').trim()
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ const toRelativePath = (to) => relative(process.cwd(), to) // const toRelativePa
|
|
|
62
62
|
|
|
63
63
|
const getRmrfCommands = PLATFORM === 'win32'
|
|
64
64
|
? (directory = DIRECTORY) => tidy(`
|
|
65
|
-
rmdir /s /q node_modules 2> nul &
|
|
65
|
+
rmdir /s /q node_modules 2> nul & \\
|
|
66
66
|
del package-lock.json 2> nul
|
|
67
67
|
`)
|
|
68
68
|
: (directory = DIRECTORY) => tidy(`
|