From a6c7545df30cac94c7fea2ff434093cf929ff57b Mon Sep 17 00:00:00 2001 From: Will Soto Date: Thu, 8 Oct 2020 20:59:43 -0400 Subject: [PATCH] fix(*): remove esm version BREAKING CHANGE: shouldn't affect anybody, but if people relied on there being an ESM version it is gone now Signed-off-by: Will Soto --- package.json | 1 - rollup.config.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 218681a2..339c9ca6 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "repository": "git://github.com/willsoto/nestjs-prometheus.git", "license": "Apache-2.0", "author": "Will Soto (https://github.com/willsoto)", - "exports": "./dist/esm.js", "main": "./dist/cjs.js", "typings": "./typings/index.d.ts", "files": [ diff --git a/rollup.config.js b/rollup.config.js index 04d14a4e..c40b9f70 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -6,7 +6,7 @@ import slugify from "@sindresorhus/slugify"; import filesize from "rollup-plugin-filesize"; import pkg from "./package.json"; -const formats = ["cjs", "esm"]; +const formats = ["cjs"]; const globals = Object.keys(pkg.peerDependencies || {}).reduce( (obj, dependency) => { obj[dependency] = slugify(dependency);