Skip to content

Commit

Permalink
fix: Fix packaged import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Oct 20, 2023
1 parent d73c134 commit 4a2232a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"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": {
"default": "./package.json"
},
".": {
"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": [
Expand All @@ -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",
Expand Down

0 comments on commit 4a2232a

Please sign in to comment.