@atomicsmash/cli 9.0.0-beta.6 → 9.0.0-beta.8
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.
|
@@ -38,7 +38,7 @@ export async function handler() {
|
|
|
38
38
|
await (async () => {
|
|
39
39
|
const tmpFile = "/tmp/staging-database.sql";
|
|
40
40
|
const tmpFileProcessed = "/tmp/staging-database.processed.sql";
|
|
41
|
-
await execute(`ssh ${stagingSSHUsername}@${stagingSSHHost} -p ${stagingSSHPort} "cd public/current && wp db export - --add-drop-table" > ${tmpFile}`)
|
|
41
|
+
await execute(`ssh -o "StrictHostKeyChecking no" ${stagingSSHUsername}@${stagingSSHHost} -p ${stagingSSHPort} "cd public/current && wp db export - --add-drop-table" > ${tmpFile}`)
|
|
42
42
|
.then(async () => {
|
|
43
43
|
await stopRunningMessage();
|
|
44
44
|
console.log("Database downloaded.");
|
|
@@ -10,7 +10,7 @@ async function downloadFiles(remotePath, localPath, ssh) {
|
|
|
10
10
|
// Create local directory if it doesn't exist
|
|
11
11
|
await mkdir(localPath, { recursive: true });
|
|
12
12
|
// Download files using scp
|
|
13
|
-
await execute(`scp -r -p -O -P ${ssh.port} "${ssh.username}@${ssh.host}:${remotePath}" "${localPath}"`);
|
|
13
|
+
await execute(`scp -r -p -O -P -o "StrictHostKeyChecking no" ${ssh.port} "${ssh.username}@${ssh.host}:${remotePath}" "${localPath}"`);
|
|
14
14
|
}
|
|
15
15
|
catch (error) {
|
|
16
16
|
console.log(`Failed to download ${remotePath}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,QAAQ,kDAAkD,CAAC;AACxE,wBAAsB,OAAO,
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,QAAQ,kDAAkD,CAAC;AACxE,wBAAsB,OAAO,kBAkM5B"}
|
package/dist/commands/setup.js
CHANGED
|
@@ -44,7 +44,8 @@ export async function handler() {
|
|
|
44
44
|
throw new Error("Failed to copy .env file.");
|
|
45
45
|
}),
|
|
46
46
|
(async () => {
|
|
47
|
-
if (existsSync(resolve(process.cwd(), "herd.
|
|
47
|
+
if ((existsSync(resolve(process.cwd(), "herd.yaml")) ||
|
|
48
|
+
existsSync(resolve(process.cwd(), "herd.yml"))) &&
|
|
48
49
|
(await execute(`herd --version`)
|
|
49
50
|
.then(() => true)
|
|
50
51
|
.catch(() => false))) {
|
package/dist/utils.js
CHANGED
|
@@ -169,8 +169,8 @@ export async function getSmashConfig() {
|
|
|
169
169
|
function isValidSmashConfig(config) {
|
|
170
170
|
return (typeof config === "object" &&
|
|
171
171
|
config !== null &&
|
|
172
|
-
"
|
|
173
|
-
typeof config.
|
|
172
|
+
"projectName" in config &&
|
|
173
|
+
typeof config.projectName === "string" &&
|
|
174
174
|
"themePath" in config &&
|
|
175
175
|
typeof config.themePath === "string");
|
|
176
176
|
}
|