Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: sha.js import (#5728)
* Fix sha.js import

* synthetic default exports

* add module interop

* fixup import

* fixup indentation
  • Loading branch information
guybedford committed May 16, 2020
1 parent f8c52f3 commit 8c3f48a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/StringUtils.ts
@@ -1,4 +1,4 @@
import * as shajs from "sha.js";
import shajs from "sha.js";

/**
* Converts string into camelCase.
Expand Down
2 changes: 1 addition & 1 deletion test/github-issues/799/issue-799.ts
@@ -1,7 +1,7 @@
import "reflect-metadata";
import * as assert from "assert";
import {createConnection} from "../../../src/index";
import * as rimraf from "rimraf";
import rimraf from "rimraf";
import {dirname} from "path";
import {Connection} from "../../../src/connection/Connection";

Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Expand Up @@ -3,6 +3,8 @@
"compilerOptions": {
"lib": ["es5", "es6"],
"outDir": "build/compiled",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
Expand Down

0 comments on commit 8c3f48a

Please sign in to comment.