diff --git a/index.ts b/index.ts index ceb0bd1..07fce3e 100644 --- a/index.ts +++ b/index.ts @@ -1,3 +1,3 @@ -export { default as pSignal } from './src/pSignal' -export { default as AbortError } from './src/AbortError' -export { default as isAbortError } from './src/isAbortError' +export { default as pSignal } from './src/pSignal.js' +export { default as AbortError } from './src/AbortError.js' +export { default as isAbortError } from './src/isAbortError.js' diff --git a/src/pSignal.ts b/src/pSignal.ts index 2eeba5e..e05b803 100644 --- a/src/pSignal.ts +++ b/src/pSignal.ts @@ -1,4 +1,4 @@ -import AbortError from './AbortError' +import AbortError from './AbortError.js' export default async function pSignal( signal: AbortSignal | undefined,