diff --git a/.npmignore b/.npmignore index 344e7f65bc9..c55b19ffd15 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,12 @@ +* +!lib/**/* +!index.js +!index-fetch.js + +# The wasm files are stored as base64 strings in the corresponding .js files lib/llhttp/llhttp_simd.wasm lib/llhttp/llhttp.wasm + +!types/**/* +!index.d.ts +!docs/**/* diff --git a/package.json b/package.json index d03da7e116d..0c42aa0696f 100644 --- a/package.json +++ b/package.json @@ -61,15 +61,6 @@ ], "main": "index.js", "types": "index.d.ts", - "files": [ - "*.d.ts", - "index.js", - "index-fetch.js", - "loader.js", - "lib", - "types", - "docs" - ], "scripts": { "build:node": "npx esbuild@0.19.4 index-fetch.js --bundle --platform=node --outfile=undici-fetch.js --define:esbuildDetection=1 --keep-names && node scripts/strip-comments.js", "prebuild:wasm": "node build/wasm.js --prebuild",