Skip to content

Commit bcd0587

Browse files
committed
fix: Upgrade apollo to v4 standalone mode
1 parent 80c0cd2 commit bcd0587

File tree

10 files changed

+2251
-1072
lines changed

10 files changed

+2251
-1072
lines changed

cli.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/usr/bin/env node
22

3-
const updateNotifier = require("update-notifier");
4-
53
const pkg = require("./package.json");
6-
const createHandler = require("./dist").default;
4+
const createServer = require("./dist").default;
5+
console.log("", createServer);
76

8-
updateNotifier({ pkg }).notify();
7+
try {
8+
const updateNotifier = require("update-notifier");
9+
updateNotifier({ pkg }).notify();
10+
} catch {}
911

1012
require("./dist/cli")
11-
.cli({ version: pkg.version, createHandler })
13+
.cli({ version: pkg.version, createServer })
1214
.catch((error) => {
1315
console.error(error);
1416
process.exit(1);

dev.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
#!/usr/bin/env node
22

33
require("ts-node/register");
4-
const updateNotifier = require("update-notifier");
54

65
const pkg = require("./package.json");
7-
const createHandler = require("./src").default;
8-
9-
updateNotifier({ pkg }).notify();
6+
const createServer = require("./src").default;
107

118
require("./src/cli")
12-
.cli({ version: pkg.version, createHandler })
9+
.cli({ version: pkg.version, createServer })
1310
.catch((error) => {
1411
console.error(error);
1512
process.exit(1);

0 commit comments

Comments
 (0)