From e7db536d0bf6518506900f46fa40785c6a87ee9e Mon Sep 17 00:00:00 2001 From: Florian Maunier Date: Tue, 10 Sep 2024 13:25:12 +0200 Subject: [PATCH] fix(npm pack): add files field in package.json --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bf4f81f..d7f8f32 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "pino-transport-ecs", "version": "1.0.0-beta.1", "description": "A Pino transform transport that converts logs to the Elastic Common Schema format, using the official formatters from Elastic.", - "main": "index.js", + "main": "dist/index.js", "scripts": { "build": "tsc -b tsconfig.dist.json", "dev": "NODE_ENV=development ergol tests/application/app.ts -c ergol.config.json", @@ -44,5 +44,8 @@ "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.4.5" - } + }, + "files": [ + "dist/" + ] }