@alook/app 0.0.2 → 0.0.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/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -177,9 +177,9 @@ function runMigrations() {
|
|
|
177
177
|
const webDir = join4(SELF_HOSTED_DIR, "web");
|
|
178
178
|
console.log("Running database migrations...");
|
|
179
179
|
try {
|
|
180
|
-
execSync2("npx wrangler d1 migrations apply alook-app --local
|
|
180
|
+
execSync2("npx wrangler d1 migrations apply alook-app --local", {
|
|
181
181
|
cwd: webDir,
|
|
182
|
-
stdio: "inherit"
|
|
182
|
+
stdio: ["pipe", "inherit", "inherit"]
|
|
183
183
|
});
|
|
184
184
|
console.log("Migrations complete");
|
|
185
185
|
} catch {
|
|
@@ -17222,6 +17222,7 @@ port = ${ports.web}
|
|
|
17222
17222
|
}
|
|
17223
17223
|
webContent = setVar(webContent, "DEV_WS_DO_URL", `http://localhost:${ports.wsDo}`);
|
|
17224
17224
|
webContent = setVar(webContent, "DEV_EMAIL_WORKER_URL", `http://localhost:${ports.emailWorker}`);
|
|
17225
|
+
webContent = setVar(webContent, "NODE_ENV", "development");
|
|
17225
17226
|
writeFileSync3(webToml, webContent);
|
|
17226
17227
|
setDevPort(join7(SELF_HOSTED_DIR, "email-worker", "wrangler.toml"), ports.emailWorker);
|
|
17227
17228
|
setDevPort(join7(SELF_HOSTED_DIR, "ws-do", "wrangler.toml"), ports.wsDo);
|
|
@@ -17260,7 +17261,7 @@ function onboardCommand() {
|
|
|
17260
17261
|
try {
|
|
17261
17262
|
execSync4("pnpm predev", { cwd: root, stdio: "inherit" });
|
|
17262
17263
|
} catch {}
|
|
17263
|
-
execSync4("pnpm db:migrate
|
|
17264
|
+
execSync4("pnpm db:migrate", { cwd: root, stdio: ["pipe", "inherit", "inherit"] });
|
|
17264
17265
|
} else {
|
|
17265
17266
|
if (!isInstalled()) {
|
|
17266
17267
|
console.log("Installing Alook...");
|