bd-geo-location 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +36 -0
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -246,6 +246,42 @@ npm run generate:react-native
246
246
  npm run generate:all
247
247
  ```
248
248
 
249
+ ### Cross-Platform Support
250
+
251
+ This package is designed to work seamlessly across all operating systems:
252
+
253
+ - ✅ **Windows** (PowerShell, CMD, Git Bash)
254
+ - ✅ **Linux** (All distributions)
255
+ - ✅ **macOS** (Intel & Apple Silicon)
256
+
257
+ All scripts use Node.js for maximum compatibility and work the same way on all platforms.
258
+
259
+ **Available Scripts:**
260
+
261
+ | Script | Description |
262
+ |--------|-------------|
263
+ | `npm run build` | Build the package |
264
+ | `npm run build:watch` | Build in watch mode |
265
+ | `npm run build:clean` | Clean build artifacts |
266
+ | `npm run data:validate` | Validate geo data integrity |
267
+ | `npm run data:test` | Test data functionality |
268
+ | `npm run generate:dart` | Generate Flutter/Dart models |
269
+ | `npm run generate:swift` | Generate iOS/macOS Swift models |
270
+ | `npm run generate:react-native` | Generate React Native components |
271
+ | `npm run generate:all` | Generate all platform code |
272
+ | `npm run test:platform` | Test cross-platform compatibility |
273
+
274
+ **Test Your Setup:**
275
+
276
+ ```bash
277
+ # Run comprehensive cross-platform tests
278
+ npm run test:platform
279
+ ```
280
+
281
+ This verifies all functionality works correctly on your platform.
282
+
283
+ **Note:** If you encounter any issues running scripts on Windows, make sure you have Node.js installed and run commands from a terminal (PowerShell, CMD, or Git Bash).
284
+
249
285
  [📖 Detailed Installation Guide](./docs/INSTALLATION.md)
250
286
 
251
287
  ## Data Hierarchy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bd-geo-location",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Bangladesh geographical location data - Divisions, Districts, Upazilas/Thanas, Unions, Pourosovas, and Villages",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -30,15 +30,17 @@
30
30
  "scripts": {
31
31
  "build": "tsup && npm run build:clean",
32
32
  "build:watch": "tsup --watch",
33
- "build:clean": "find dist -name '*.d.mts' -delete && find dist -name '*.map' -delete",
33
+ "build:clean": "node scripts/clean-dist.js",
34
34
  "dev": "tsup --watch",
35
35
  "prepublishOnly": "npm run build",
36
36
  "data:validate": "node scripts/validate-data.js",
37
37
  "data:test": "node scripts/test-data.js",
38
+ "analyze": "node scripts/analyze-bundle.js",
38
39
  "generate:dart": "node scripts/generate-dart-models.js",
39
40
  "generate:swift": "node scripts/generate-swift-models.js",
40
41
  "generate:react-native": "node scripts/generate-react-native-code.js",
41
42
  "generate:all": "npm run generate:dart && npm run generate:swift && npm run generate:react-native",
43
+ "test:platform": "node test-platform.js",
42
44
  "test": "echo \"Error: no test specified\" && exit 1"
43
45
  },
44
46
  "keywords": [