Skip to content

Commit 7020fcc

Browse files
committed
fix(pkg): reduce package size by excluding src and other useless files
1 parent d6860b8 commit 7020fcc

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@hypercerts-org/sdk-core": patch
3+
"@hypercerts-org/sdk-react": patch
4+
"@hypercerts-org/lexicon": patch
5+
---
6+
7+
Configure npm publishing to exclude source code and development files. Packages now only include the compiled `dist/` folder, README, and necessary runtime files (lexicon schemas). This reduces package sizes and prevents unnecessary files from being published to npm.

packages/lexicon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"files": [
2121
"dist",
2222
"lexicons",
23-
"src"
23+
"README.md"
2424
],
2525
"keywords": [
2626
"hypercerts",

packages/sdk-core/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"access": "public",
1111
"registry": "https://registry.npmjs.org/"
1212
},
13+
"files": [
14+
"dist",
15+
"README.md"
16+
],
1317
"scripts": {
1418
"test": "vitest",
1519
"build": "rollup -c",

packages/sdk-react/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"access": "public",
1414
"registry": "https://registry.npmjs.org/"
1515
},
16+
"files": [
17+
"dist",
18+
"README.md"
19+
],
1620
"exports": {
1721
".": {
1822
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)