From 6efa052f080db9a7b2be3311d1d29f10f4ca875b Mon Sep 17 00:00:00 2001 From: Romain Lenzotti Date: Thu, 14 Mar 2024 20:07:52 +0100 Subject: [PATCH] fix(logger): fix ESM compilation issue --- packages/connect/.npmignore | 6 ++++++ packages/file/.npmignore | 6 ++++++ packages/insight/.npmignore | 6 ++++++ packages/logentries/.npmignore | 6 ++++++ packages/logger/.npmignore | 2 ++ packages/logger/package.json | 17 +++++------------ packages/loggly/.npmignore | 6 ++++++ packages/logstash-http/.npmignore | 6 ++++++ packages/logstash-udp/.npmignore | 6 ++++++ packages/rabbitmq/.npmignore | 6 ++++++ packages/seq/.npmignore | 6 ++++++ packages/slack/.npmignore | 6 ++++++ packages/smtp/.npmignore | 6 ++++++ 13 files changed, 73 insertions(+), 12 deletions(-) create mode 100644 packages/connect/.npmignore create mode 100644 packages/file/.npmignore create mode 100644 packages/insight/.npmignore create mode 100644 packages/logentries/.npmignore create mode 100644 packages/loggly/.npmignore create mode 100644 packages/logstash-http/.npmignore create mode 100644 packages/logstash-udp/.npmignore create mode 100644 packages/rabbitmq/.npmignore create mode 100644 packages/seq/.npmignore create mode 100644 packages/slack/.npmignore create mode 100644 packages/smtp/.npmignore diff --git a/packages/connect/.npmignore b/packages/connect/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/connect/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/file/.npmignore b/packages/file/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/file/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/insight/.npmignore b/packages/insight/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/insight/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/logentries/.npmignore b/packages/logentries/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/logentries/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/logger/.npmignore b/packages/logger/.npmignore index 7f50c0fb..3fbb508a 100644 --- a/packages/logger/.npmignore +++ b/packages/logger/.npmignore @@ -1,4 +1,6 @@ src test tsconfig.compile.json +tsconfig.esm.json tsconfig.json +*.spec.js diff --git a/packages/logger/package.json b/packages/logger/package.json index 819d1526..f784ba97 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -12,18 +12,11 @@ "browser": "./lib/browser/logger.umd.js", "typings": "./lib/types/node/index.d.ts", "exports": { - ".": { - "types": "./lib/types/node/index.d.ts", - "browser": "./lib/browser/logger.umd.js", - "import": "./lib/esm/node/index.js", - "require": "./lib/cjs/node/index.js", - "default": "./lib/esm/node/index.js" - }, - "./browser": { - "types": "./lib/types/browser/index.d.ts", - "import": "./lib/browser/logger.mjs", - "browser": "./lib/browser/logger.umd.js" - } + "types": "./lib/types/node/index.d.ts", + "browser": "./lib/browser/logger.umd.js", + "import": "./lib/esm/node/index.js", + "require": "./lib/cjs/node/index.js", + "default": "./lib/esm/node/index.js" }, "scripts": { "build": "yarn barrels && yarn run build:esm && yarn run build:cjs && yarn run build:browser", diff --git a/packages/loggly/.npmignore b/packages/loggly/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/loggly/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/logstash-http/.npmignore b/packages/logstash-http/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/logstash-http/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/logstash-udp/.npmignore b/packages/logstash-udp/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/logstash-udp/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/rabbitmq/.npmignore b/packages/rabbitmq/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/rabbitmq/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/seq/.npmignore b/packages/seq/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/seq/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/slack/.npmignore b/packages/slack/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/slack/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js diff --git a/packages/smtp/.npmignore b/packages/smtp/.npmignore new file mode 100644 index 00000000..3fbb508a --- /dev/null +++ b/packages/smtp/.npmignore @@ -0,0 +1,6 @@ +src +test +tsconfig.compile.json +tsconfig.esm.json +tsconfig.json +*.spec.js