Skip to content

Commit fbbeb20

Browse files
committed
fix: correct main and types paths to enable direct imports
- Fix main: 'dist/lib/index.js' → 'dist/index.js' - Fix types: 'dist/lib/index.d.ts' → 'dist/index.d.ts' - Now users can import directly: import { Worker } from 'nestjs-worker' - No more need for 'nestjs-worker/dist' imports - Matches standard NestJS library patterns like nestjs-sqs
1 parent 692fa23 commit fbbeb20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "A powerful NestJS library for seamless worker_threads integration with decorators and dependency injection",
55
"author": "Bitwild <contact@bitwild.com>",
66
"license": "BSD-3-Clause",
7-
"main": "dist/lib/index.js",
8-
"types": "dist/lib/index.d.ts",
7+
"main": "dist/index.js",
8+
"types": "dist/index.d.ts",
99
"files": [
1010
"dist/**/*",
1111
"README.md",

0 commit comments

Comments
 (0)