Skip to content

Commit

Permalink
fix(types): expose everything with import maps
Browse files Browse the repository at this point in the history
  • Loading branch information
driimus committed Aug 29, 2024
1 parent ab55b6a commit bc1a23d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/nasty-chefs-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@driimus/sqs-permanent-failure-dlq": patch
"@driimus/lambda-batch-processor": patch
---

fix(types): expose shared types through import maps
16 changes: 12 additions & 4 deletions packages/lambda-batch-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@
},
"publishConfig": {
"provenance": true,
"exports": "./dist/index.js",
"types": "./dist/index.d.ts"
"exports": {
".": {
"import": "./dist/index.js",
"types":"./dist/index.d.ts"
},
"./*": "./dist/*"
}
},
"repository": {
"type": "git",
Expand All @@ -29,7 +34,10 @@
"email": "[email protected]"
},
"type": "module",
"exports": "./src/index.ts",
"exports": {
".": "./src/index.ts",
"./*": "./src/*"
},
"files": [
"./dist"
],
Expand All @@ -51,6 +59,6 @@
}
},
"engines": {
"node": ">=16.15.0"
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/sqs-permanent-failure-dlq/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import type {
PermanentFailure,
PermanentFailureHandler,
} from '@driimus/lambda-batch-processor';
import type { ProcessableRecord } from '@driimus/lambda-batch-processor/types/index.js';
import type { SQSEvent, SQSRecord } from 'aws-lambda';

import type { ProcessableRecord } from '../../lambda-batch-processor/dist/types/index.js';
import { map, take } from './iteratorHelpers.js';

/**
Expand Down

0 comments on commit bc1a23d

Please sign in to comment.