esoftplay 0.0.152 → 0.0.154
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/cli.js +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -291,7 +291,7 @@ function switchStatusAssets(status) {
|
|
|
291
291
|
const data = oldscript.match(new RegExp(/^\/\/\s{0,}export\s{1}default/gm))
|
|
292
292
|
let newData = data;
|
|
293
293
|
if (data && data.length > 0) {
|
|
294
|
-
newData = oldscript.replace((new RegExp(
|
|
294
|
+
newData = oldscript.replace((new RegExp(/^\/\/\s{0,1}/gm)), "")
|
|
295
295
|
fs.writeFileSync(to, newData)
|
|
296
296
|
} else {
|
|
297
297
|
command('cp ' + from + ' ' + to)
|