Skip to content

Commit 3e3eb5b

Browse files
committed
improve: exports directory
1 parent 98a47bc commit 3e3eb5b

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
"README.md"
2727
],
2828
"exports": {
29-
".": {
30-
"import": {
31-
"default": "./build/index.js"
32-
}
33-
}
29+
".": "./build/exports/index.js"
3430
},
3531
"scripts": {
3632
"bootstrap": "tsx scripts/bootstrap.ts",

src/index.test.ts renamed to src/exports/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from 'vitest'
2-
import { foo } from '../tests/helpers.js'
2+
import { foo } from '../../tests/helpers.js'
33
import * as Lib from './index.js'
44

55
test(`imports using paths config works relative`, () => {

src/exports/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '../lib/utils.js'

src/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)