corvid-local-server
Advanced tools
{ | ||
"name": "corvid-local-server", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -98,9 +98,9 @@ const { | ||
siteRootPath, | ||
options = { force: false, move: false } | ||
options = { override: false, move: false } | ||
) => { | ||
if (options.force && options.move) { | ||
throw new Error("Only one of 'force' and 'move' may be set"); | ||
if (options.override && options.move) { | ||
throw new Error("Only one of 'override' and 'move' may be set"); | ||
} | ||
return startServer(siteRootPath, { | ||
type: options.force ? "FORCE_PULL" : options.move ? "MOVE_PULL" : "CLONE" | ||
type: options.override ? "FORCE_PULL" : options.move ? "MOVE_PULL" : "CLONE" | ||
}); | ||
@@ -107,0 +107,0 @@ }; |
@@ -26,3 +26,3 @@ const omit_ = require("lodash/omit"); | ||
const server = localServer.startInCloneMode(localSitePath, { | ||
force: true | ||
override: true | ||
}); | ||
@@ -38,3 +38,3 @@ | ||
await localServer.startInCloneMode(localSitePath, { | ||
force: true | ||
override: true | ||
}); | ||
@@ -54,3 +54,3 @@ | ||
const server = await localServer.startInCloneMode(localSitePath, { | ||
force: true | ||
override: true | ||
}); | ||
@@ -57,0 +57,0 @@ await loadEditor(server.port, editorSite); |
Sorry, the diff of this file is not supported yet
89539
0.03%