diff --git a/package.json b/package.json index 8a689b56..bdf903b7 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "main": "./dist/cjs/index-cjs.js", "module": "./dist/mjs/index.js", + "types": "./dist/mjs/index.d.ts", "exports": { ".": { "import": { diff --git a/test/bash-comparison.ts b/test/bash-comparison.ts index 8406dbbc..6dc97407 100644 --- a/test/bash-comparison.ts +++ b/test/bash-comparison.ts @@ -2,7 +2,7 @@ // show that it does the same thing by default as the shell. import { resolve } from 'path' import t from 'tap' -import { glob } from '../' +import glob from '../' import { bashResults } from './bash-results' const globs = Object.keys(bashResults) diff --git a/test/broken-symlink.ts b/test/broken-symlink.ts index b854829a..fc30f391 100644 --- a/test/broken-symlink.ts +++ b/test/broken-symlink.ts @@ -1,6 +1,6 @@ import { relative } from 'path' import t from 'tap' -import { glob } from '../' +import glob from '../' import { GlobOptionsWithFileTypesUnset } from '../src/glob.js' if (process.platform === 'win32') { diff --git a/test/follow.ts b/test/follow.ts index 101b3667..c917191c 100644 --- a/test/follow.ts +++ b/test/follow.ts @@ -1,5 +1,5 @@ import t from 'tap' -import { glob } from '../' +import glob from '../' if (process.platform === 'win32') { t.plan(0, 'skip on windows')