Skip to content

Commit

Permalink
Use esmoduleInterop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper Pietrzak authored and pietrzakacper committed Jan 26, 2022
1 parent d2bdd9d commit 5c46d98
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as https from "https";
import https from "https";

import { AppContext } from "@scramjet/types";
import { IncomingMessage } from "http";
Expand Down
4 changes: 2 additions & 2 deletions packages/reference-apps/durability-preservation-tcp/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as https from "https";
import https from "https";
import { IncomingMessage } from "http";
import { PassThrough } from "stream";
import { Logger, ReadableApp } from "@scramjet/types";
import { StringStream } from "scramjet";
import * as net from "net";
import net from "net";

const mockResponse = () => {
const fakeData = new PassThrough();
Expand Down
2 changes: 1 addition & 1 deletion packages/reference-apps/durability-preservation/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console, no-extra-parens */
import * as http from "https";
import http from "https";
import { IncomingMessage } from "http";
import { PassThrough } from "stream";
import { ReadableApp } from "@scramjet/types";
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lib": ["es2019", "es2020.promise", "es2020.bigint", "es2020.string"],
"strict": true,
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true
},
"typeAcquisition": {
"include": ["node"]
Expand Down

0 comments on commit 5c46d98

Please sign in to comment.