File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ This is the changelog for [`headers`](https://github.com/mjackson/remix-the-web/
4
4
5
5
## v0.11.0 (2025-06-06)
6
6
7
+ - Add ` /src ` to npm package, so "go to definition" goes to the actual source
7
8
- Use one set of types for all built files, instead of separate types for ESM and CJS
8
9
- Build using esbuild directly instead of tsup
9
10
Original file line number Diff line number Diff line change 11
11
},
12
12
"homepage" : " https://github.com/mjackson/remix-the-web/tree/main/packages/headers#readme" ,
13
13
"files" : [
14
- " dist" ,
15
- " src" ,
16
14
" LICENSE" ,
17
- " README.md"
15
+ " README.md" ,
16
+ " dist" ,
17
+ " src"
18
18
],
19
19
"type" : " module" ,
20
- "main" : " ./dist/headers.cjs" ,
21
- "module" : " ./dist/headers.js" ,
22
20
"types" : " ./dist/headers.d.ts" ,
21
+ "module" : " ./dist/headers.js" ,
22
+ "main" : " ./dist/headers.cjs" ,
23
23
"exports" : {
24
24
"." : {
25
25
"types" : " ./dist/headers.d.ts" ,
34
34
"esbuild" : " ^0.20.0"
35
35
},
36
36
"scripts" : {
37
- "clean" : " rm -rf dist" ,
38
37
"build:types" : " tsc --project tsconfig.build.json" ,
39
- "build:esm" : " esbuild src/headers.ts --bundle --outfile=dist/headers.js --format=esm --platform=neutral --minify -- sourcemap" ,
40
- "build:cjs" : " esbuild src/headers.ts --bundle --outfile=dist/headers.cjs --format=cjs --platform=node --minify -- sourcemap" ,
38
+ "build:esm" : " esbuild src/headers.ts --bundle --outfile=dist/headers.js --format=esm --platform=neutral --sourcemap" ,
39
+ "build:cjs" : " esbuild src/headers.ts --bundle --outfile=dist/headers.cjs --format=cjs --platform=node --sourcemap" ,
41
40
"build" : " pnpm run clean && pnpm run build:types && pnpm run build:esm && pnpm run build:cjs" ,
41
+ "clean" : " rm -rf dist" ,
42
42
"test" : " node --experimental-strip-types --disable-warning=ExperimentalWarning --test ./src/**/*.test.ts" ,
43
43
"prepublishOnly" : " pnpm run build"
44
44
},
Original file line number Diff line number Diff line change 6
6
"declarationMap" : true ,
7
7
"outDir" : " ./dist"
8
8
},
9
- "include" : [" src" ]
10
- }
9
+ "include" : [" src" ],
10
+ "exclude" : [" src/**/*.test.ts" ]
11
+ }
You can’t perform that action at this time.
0 commit comments