miolo 2.0.0-beta.21 → 2.0.0-beta.22
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/create-bin.mjs
CHANGED
|
@@ -17,21 +17,21 @@ export default async function(appName, dest, serverName) {
|
|
|
17
17
|
|
|
18
18
|
let startContent = readSource('./start.mjs')
|
|
19
19
|
startContent = startContent.replace('export default async function', 'async function start')
|
|
20
|
-
startContent = startContent.replace('
|
|
20
|
+
startContent = startContent.replace('(appName, dest, serverName)', `(appName= ''${appName}, dest= '${dest}', serverName= '${serverName}')`)
|
|
21
21
|
startContent+= '\n'
|
|
22
22
|
startContent+= 'start()'
|
|
23
23
|
writeDest('start.mjs', startContent)
|
|
24
24
|
|
|
25
25
|
let stopContent = readSource('./stop.mjs')
|
|
26
26
|
stopContent = stopContent.replace('export default async function', 'async function stop')
|
|
27
|
-
stopContent = stopContent.replace('
|
|
27
|
+
stopContent = stopContent.replace('(appName)', `(appName= '${appName}')`)
|
|
28
28
|
stopContent+= '\n'
|
|
29
29
|
stopContent+= 'stop()'
|
|
30
30
|
writeDest('stop.mjs', stopContent)
|
|
31
31
|
|
|
32
32
|
let restartContent = readSource('./restart.mjs')
|
|
33
33
|
restartContent = restartContent.replace('export default async function', 'async function restart')
|
|
34
|
-
restartContent = restartContent.replace('
|
|
34
|
+
restartContent = restartContent.replace('(appName, dest, serverName)', `(appName= ''${appName}, dest= '${dest}', serverName= '${serverName}')`)
|
|
35
35
|
restartContent+= '\n'
|
|
36
36
|
restartContent+= 'restart()'
|
|
37
37
|
writeDest('restart.mjs', restartContent)
|