Skip to content

Commit 4979de4

Browse files
chore: optimize package for npm publish
- Only publish compiled lib directory (reduces package size by ~90%) - Fix author field format to prevent broken npm profile link - Improve keywords and description for better SEO - Add .npmignore for additional safety - Fix broken author link in README This reduces published files from 200+ to ~178 files (only compiled code, type definitions, README, and LICENSE). Source code remains on GitHub.
1 parent 8adc3a9 commit 4979de4

3 files changed

Lines changed: 70 additions & 22 deletions

File tree

.npmignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Source files (only lib should be published)
2+
src/
3+
example/
4+
docs/
5+
6+
# Build artifacts
7+
lib/**/*.test.js
8+
lib/**/*.test.ts
9+
lib/**/*.spec.js
10+
lib/**/*.spec.ts
11+
12+
# Development files
13+
.git/
14+
.gitignore
15+
.github/
16+
.vscode/
17+
.idea/
18+
*.log
19+
*.swp
20+
*.swo
21+
*~
22+
23+
# Config files
24+
.eslintrc*
25+
eslint.config.*
26+
.prettierrc*
27+
.prettierignore
28+
babel.config.js
29+
tsconfig*.json
30+
.yarn/
31+
.yarnrc*
32+
33+
# Dependencies
34+
node_modules/
35+
36+
# OS files
37+
.DS_Store
38+
Thumbs.db
39+
40+
# Test files
41+
**/__tests__/
42+
**/__fixtures__/
43+
**/__mocks__/
44+
**/*.test.*
45+
**/*.spec.*
46+
47+
# CI/CD
48+
.github/

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# BugBubble - React Native In-App DevTools
1+
# @lokal-dev/react-native-bugbubble - React Native In-App DevTools
22

3-
An in-app debugging tool for React Native development. Monitor network requests, WebSocket events, console logs, and analytics events in real-time with a draggable UI
3+
**@lokal-dev/react-native-bugbubble** is a powerful in-app debugging tool for React Native applications. Monitor network requests, WebSocket events, console logs, and analytics events in real-time with a beautiful, draggable UI. Perfect for debugging React Native apps without external tools.
44

55
## Supported Log Types
66

@@ -294,7 +294,7 @@ Check out the [example](./example) directory for a comprehensive demo of all fea
294294

295295
## Author
296296

297-
- [Shivangi](shivangi.gupta@getlokalapp.com)
297+
- **Shivangi** - [shivangi.gupta@getlokalapp.com](mailto:shivangi.gupta@getlokalapp.com)
298298

299299
## License
300300

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@lokal-dev/react-native-bugbubble",
33
"version": "1.0.0",
4-
"description": "In-app debugging tool for React Native development. Monitor network requests, WebSocket events, console logs, and analytics in real-time with a beautiful UI. Zero configuration, error-safe, and TypeScript support.",
4+
"description": "React Native in-app debugging tool - Monitor network requests, WebSocket events, console logs, and analytics in real-time. Zero configuration, TypeScript support, draggable UI.",
55
"main": "./lib/module/index.js",
66
"types": "./lib/typescript/src/index.d.ts",
77
"exports": {
@@ -13,23 +13,9 @@
1313
"./package.json": "./package.json"
1414
},
1515
"files": [
16-
"src",
1716
"lib",
18-
"android",
19-
"ios",
20-
"cpp",
21-
"*.podspec",
22-
"react-native.config.js",
23-
"!ios/build",
24-
"!android/build",
25-
"!android/gradle",
26-
"!android/gradlew",
27-
"!android/gradlew.bat",
28-
"!android/local.properties",
29-
"!**/__tests__",
30-
"!**/__fixtures__",
31-
"!**/__mocks__",
32-
"!**/.*"
17+
"README.md",
18+
"LICENSE"
3319
],
3420
"scripts": {
3521
"example": "yarn workspace react-native-bugbubble-example",
@@ -40,23 +26,37 @@
4026
},
4127
"keywords": [
4228
"react-native",
29+
"react-native-debugger",
30+
"react-native-devtools",
31+
"bugbubble",
4332
"debugger",
4433
"devtools",
4534
"debugging",
35+
"network-monitor",
36+
"network-debugger",
37+
"websocket-debugger",
38+
"analytics-debugger",
39+
"console-debugger",
4640
"network",
4741
"websocket",
4842
"analytics",
4943
"console",
5044
"inspector",
5145
"monitoring",
46+
"in-app-debugger",
47+
"react-native-network",
5248
"ios",
53-
"android"
49+
"android",
50+
"typescript"
5451
],
5552
"repository": {
5653
"type": "git",
5754
"url": "git+https://github.com/lokal-app/react-native-bugbubble.git"
5855
},
59-
"author": "Shivangi <shivangi.gupta@getlokalapp.com>",
56+
"author": {
57+
"name": "Shivangi",
58+
"email": "shivangi.gupta@getlokalapp.com"
59+
},
6060
"license": "MIT",
6161
"bugs": {
6262
"url": "https://github.com/lokal-app/react-native-bugbubble/issues"

0 commit comments

Comments
 (0)