diff --git a/README.md b/README.md index 195ea6c..fd3ecb1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ An ES7 decorator for memoising (caching) a method's response [![MASTER CI status](https://github.com/Alorel/memoise-decorator/actions/workflows/core.yml/badge.svg)](https://github.com/Alorel/memoise-decorator/actions/workflows/core.yml?query=branch%3Amaster) -[![crates.io badge](https://img.shields.io/npm/v/%40aloreljs/memoise-decorator)](https://www.npmjs.com/package/%40aloreljs/memoise-decorator) +[![NPM badge](https://img.shields.io/npm/v/%40aloreljs/memoise-decorator)](https://www.npmjs.com/package/%40aloreljs/memoise-decorator) [![dependencies badge](https://img.shields.io/librariesio/release/npm/%40aloreljs/memoise-decorator)](https://libraries.io/npm/@aloreljs%2Fmemoise-decorator) [![Coverage Status](https://coveralls.io/repos/github/Alorel/memoise-decorator/badge.svg)](https://coveralls.io/github/Alorel/memoise-decorator) diff --git a/package.json b/package.json index 28bf855..724bac7 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "@aloreljs/memoise-decorator", "version": "3.0.1", "description": "An ES7 decorator for memoising (caching) a method's response", - "main": "cjs/index.cjs", - "module": "es/index.mjs", + "main": "cjs/index.js", + "module": "es/index.js", "types": "index.d.ts", "exports": { "./package.json": { @@ -11,11 +11,11 @@ }, ".": { "types": "./index.d.ts", - "esm": "./es/index.mjs", - "module": "./es/index.mjs", - "import": "./es/index.mjs", - "node": "./cjs/index.cjs", - "default": "./cjs/index.cjs" + "esm": "./es/index.js", + "module": "./es/index.js", + "import": "./es/index.js", + "node": "./cjs/index.js", + "default": "./cjs/index.js" } }, "keywords": [ @@ -31,8 +31,8 @@ "scripts": { "clean": "rm -rfv dist && mkdir dist", "build": "concurrently npm:build:*", - "build:es": "tsc --outDir dist/es && for f in dist/es/*.js; do mv \"$f\" \"${f%.js}.mjs\"; done", - "build:cjs": "tsc --outDir dist/cjs --module commonjs && for f in dist/cjs/*.js; do mv \"$f\" \"${f%.js}.cjs\"; done", + "build:es": "tsc --outDir dist/es", + "build:cjs": "tsc --outDir dist/cjs --module commonjs", "build:dts": "tsc --outDir dist --declaration --emitDeclarationOnly", "build:cp": "cp -v LICENSE README.md package.json .npmrc dist/", "watch": "npm --scripts-prepend-node-path=auto run clean && tsc --watch",