diff --git a/README.md b/README.md index f648566..06942d3 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ npm install --save supermemo ``` ``` -const supermemo = require('supermemo'); +const { supermemo } = require('supermemo'); ``` ### For Deno diff --git a/package.json b/package.json index f186064..1d2ccf3 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "typescript" ], "author": "Vien Dinh", - "version": "2.0.11", + "version": "2.0.12", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -24,12 +24,13 @@ "prepare": "npm run build", "lint": "tsdx lint" }, - "dependencies": {}, + "dependencies": { + "tslib": "^1.10.0" + }, "devDependencies": { "@types/jest": "^25.1.1", "husky": "^4.2.1", "tsdx": "^0.12.3", - "tslib": "^1.10.0", "typescript": "^3.7.5" }, "husky": { diff --git a/src/index.ts b/src/index.ts index 861520f..e297943 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1 @@ -import { supermemo } from './supermemo'; - -export default supermemo; - export * from './supermemo';