-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package configuration for ESM compatibility
- Update package.json with explicit ESM exports - Modify tsconfig.json to use NodeNext module resolution - Update import/export paths in source files to use .js extensions - Bump version to 0.1.5
- Loading branch information
Showing
10 changed files
with
35 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,16 @@ | |
"name": "mysql-queue", | ||
"description": "A lite job queue for Node.js", | ||
"author": "lilac <[email protected]>", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"README.md", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export { LiteQueue } from "./queue"; | ||
export { connect, migrateDB } from "./db"; | ||
export type { QueueOptions, RunnerOptions, RunnerFuncs } from "./options"; | ||
export { Runner } from "./runner"; | ||
export { LiteQueue } from "./queue.js"; | ||
export { connect, migrateDB } from "./db/index.js"; | ||
export type { QueueOptions, RunnerOptions, RunnerFuncs } from "./options.js"; | ||
export { Runner } from "./runner.js"; | ||
|
||
export type { DequeuedJob, DequeuedJobError } from "./types"; | ||
export type { DequeuedJob, DequeuedJobError } from "./types.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
{ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "@tsconfig/node21/tsconfig.json", | ||
"include": ["src"], | ||
"exclude": ["node_modules", "build", "dist"], | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"moduleResolution": "node", | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"outDir": "./dist", | ||
"incremental": true, | ||
"isolatedModules": true, | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
}, | ||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" | ||
}, | ||
} | ||
} | ||
|