Skip to content

Commit fe01b86

Browse files
authored
Merge pull request #9 from mvhenten/fix-dist
Fix publishing the dist folder
2 parents bdd8fff + 6f75314 commit fe01b86

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ See the annotated sources [src/index.ts](src/index.ts).
2323
### Example
2424

2525
```javascript
26-
const { entropy } = require('string-entropy');
26+
import { entropy } from "string-entropy";
2727

2828
console.log(entropy('correct horse battery staple'));
2929
// outputs 132

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"name": "string-entropy",
3-
"version": "0.0.4",
3+
"version": "0.1.2",
44
"description": "Calculate the information entropy of a string",
55
"main": "./dist/cjs/index.cjs",
66
"type": "module",
7+
"files": [
8+
"dist"
9+
],
710
"exports": {
811
"import": "./dist/esm/index.js",
912
"require": "./dist/cjs/index.cjs"

0 commit comments

Comments
 (0)