diff --git a/package.json b/package.json index c8ec97c..977e7e4 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "url": "https://github.com/khaledosama999/binary-heap.js" }, "main": "./build/index.js", + "module": "./build/index.js", + "files": [ + "build" + ], "types": "./build/index.d.ts", "source": "./src/index.ts", "scripts": { @@ -13,14 +17,13 @@ "build": "rollup -c", "git-cz": "./node_modules/.bin/git-cz", "husky": "husky init", - "_postinstall": "husky install", + "postinstall": "husky install", "prepublishOnly": "pinst --disable", "postpublish": "pinst --enable", "lint": "eslint", "release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major", "release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor", - "release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch", - "postinstall": "husky install" + "release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch" }, "keywords": [ "data", diff --git a/tsconfig.json b/tsconfig.json index e43bd85..fc3d0d5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ - "module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ + "module": "ES2015", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */