Skip to content

Commit 5bd6133

Browse files
committed
chore(client): reduce package size from 282 kB to 110 kB
Add files field to package.json to exclude src/, source maps, and other unnecessary files from the published package. Disable source map generation in tsconfig.json.
1 parent fbe22e0 commit 5bd6133

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/client/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@
2323
"api",
2424
"testing"
2525
],
26-
"author": "",
26+
"author": "Abhijith V",
2727
"license": "MIT",
28+
"files": [
29+
"dist/**/*.js",
30+
"dist/**/*.d.ts"
31+
],
2832
"homepage": "https://proxyhub.app",
2933
"repository": {
3034
"type": "git",

packages/client/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"rootDir": "./src",
1111
"outDir": "./dist",
1212
"declaration": true,
13-
"sourceMap": true,
13+
"sourceMap": false,
1414
"strict": true,
1515
"skipLibCheck": true,
1616
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)