Skip to content

Commit 9f9d8b8

Browse files
committed
fix: npm package publishing fix
1 parent d4bc27c commit 9f9d8b8

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ lerna-debug.log*
2929
!.vscode/tasks.json
3030
!.vscode/launch.json
3131
!.vscode/extensions.json
32+
33+
*.tsbuildinfo

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default registerAs('pino', (): Partial<LoggerOptions> => {
8080
if (process.env.NODE_ENV !== "production") {
8181
// you don't need to use this transport in production, usually you would want to send logs as json object to the observability service
8282
targets.push({
83-
target: "@zemd/nestjs-pino-logger/pino-pretty-transport.js", //path.resolve(__dirname, './pino-pretty-transport.js'),
83+
target: "@zemd/nestjs-pino-logger/pino-pretty-transport.js",
8484
level: process.env.NODE_ENV === "development" ? "verbose" : "error",
8585
options: {
8686
colorize: false,

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "1.0.0",
44
"description": "Nestjs logger based on pino",
55
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"exports": {
8+
"./*": "./dist/*.js"
9+
},
610
"scripts": {
711
"build": "tsc",
812
"semantic-release": "semantic-release --debug"

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"extends": "@zemd/tsconfig/tsconfig-base.json",
55
"compilerOptions": {
66
"outDir": "./dist",
7-
"rootDir": ".",
7+
"rootDir": "./src",
88
"baseUrl": "src",
99
"moduleResolution": "Node",
1010
"module": "CommonJS",
1111
"target": "ES2019"
1212
},
1313
"include": ["src"]
14-
}
14+
}

0 commit comments

Comments
 (0)