Skip to content

Commit

Permalink
add top-level types field to package.json
Browse files Browse the repository at this point in the history
Fix: #494
  • Loading branch information
isaacs committed Feb 28, 2023
1 parent bedc98c commit 9a97c52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"main": "./dist/cjs/index-cjs.js",
"module": "./dist/mjs/index.js",
"types": "./dist/mjs/index.d.ts",
"exports": {
".": {
"import": {
Expand Down
2 changes: 1 addition & 1 deletion test/bash-comparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion test/broken-symlink.ts
Original file line number Diff line number Diff line change
@@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion test/follow.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import t from 'tap'
import { glob } from '../'
import glob from '../'

if (process.platform === 'win32') {
t.plan(0, 'skip on windows')
Expand Down

0 comments on commit 9a97c52

Please sign in to comment.