Skip to content

Commit f0e42a0

Browse files
committed
Merge branch 'miho-wasp-app-runner' into miho-example-apps-headless-tests
2 parents 47c2514 + 1fd6bae commit f0e42a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

wasp-app-runner/bin/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/usr/bin/env node
22

3-
import "../dist/index.js";
3+
import { main } from "../dist/index.js";
4+
5+
main();

wasp-app-runner/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"scripts": {
99
"build": "tsc",
10-
"start": "npm run build && node ./dist/index.js",
10+
"start": "npm run build && node ./bin/index.js",
1111
"install:global": "npm run build && npm install -g",
1212
"prepublishOnly": "npm ci && npm run build"
1313
},

wasp-app-runner/src/index.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { log } from "./logging.js";
44
import { checkAndSetupDependencies } from "./dependencies.js";
55
import { setupEnvFiles } from "./env.js";
66
import { executeWithDb } from "./db/index.js";
7-
import { getAppInfo, installWaspCli, migrateDb, startApp } from "./waspCli.js";
7+
import { getAppInfo, migrateDb, startApp } from "./waspCli.js";
88

99
const argv = yargs(hideBin(process.argv))
1010
.options({
@@ -26,7 +26,7 @@ const argv = yargs(hideBin(process.argv))
2626
})
2727
.parseSync();
2828

29-
async function main() {
29+
export async function main() {
3030
try {
3131
await checkAndSetupDependencies({
3232
isWaspCliBuiltFromSource: !argv.skipCliInstall,
@@ -72,5 +72,3 @@ async function main() {
7272
process.exit(1);
7373
}
7474
}
75-
76-
main();

0 commit comments

Comments
 (0)