File tree 3 files changed +22
-3
lines changed
3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " @npm/types" ,
3
3
"version" : " 1.0.2" ,
4
4
"description" : " Typescript definitions for npm registry content" ,
5
- "types" : " ./src/index.d.ts" ,
6
- "main" : " " ,
5
+ "main" : " ./dist/commonjs/index.js" ,
6
+ "types" : " ./dist/commonjs/index.d.ts" ,
7
+ "exports" : {
8
+ "./package.json" : " ./package.json" ,
9
+ "." : {
10
+ "import" : {
11
+ "types" : " ./dist/esm/index.d.ts" ,
12
+ "default" : " ./dist/esm/index.js"
13
+ },
14
+ "require" : {
15
+ "types" : " ./dist/commonjs/index.d.ts" ,
16
+ "default" : " ./dist/commonjs/index.js"
17
+ }
18
+ }
19
+ },
7
20
"scripts" : {
8
21
"template-oss-apply" : " template-oss-apply --force" ,
9
22
"lintfix" : " npm run lint -- --fix" ,
48
61
"type" : " module" ,
49
62
"tap" : {
50
63
"typecheck" : true
64
+ },
65
+ "tshy" : {
66
+ "exports" : {
67
+ "./package.json" : " ./package.json" ,
68
+ "." : " ./src/index.ts"
69
+ }
51
70
}
52
71
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { join, dirname } from 'path'
3
3
import { fileURLToPath } from 'url'
4
4
import t from 'tap'
5
5
6
- import type * as npm from '../src/index.d. ts'
6
+ import type * as npm from '../src/index.ts'
7
7
8
8
t . test ( 'types' , async ( ) => {
9
9
const dir = dirname ( fileURLToPath ( import . meta. url ) )
You can’t perform that action at this time.
0 commit comments