@vritti/api-sdk 0.1.6 → 0.1.8
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.
- package/README.md +22 -6
- package/dist/index.cjs +620 -492
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +422 -244
- package/dist/index.d.ts +422 -244
- package/dist/index.js +581 -456
- package/dist/index.js.map +1 -1
- package/package.json +14 -15
package/README.md
CHANGED
|
@@ -769,22 +769,38 @@ interface DatabaseModuleOptions {
|
|
|
769
769
|
### Setup
|
|
770
770
|
|
|
771
771
|
```bash
|
|
772
|
-
git clone https://github.com/vritti-
|
|
772
|
+
git clone https://github.com/vritti-ai-platforms/api-sdk.git
|
|
773
773
|
cd api-sdk
|
|
774
774
|
yarn install
|
|
775
775
|
```
|
|
776
776
|
|
|
777
777
|
### Available Scripts
|
|
778
778
|
|
|
779
|
-
- `yarn dev` - Run in watch mode
|
|
780
|
-
- `yarn build` - Build for production
|
|
781
|
-
- `yarn type-check` - TypeScript type checking
|
|
779
|
+
- `yarn dev` - Run in watch mode (includes type checking before start)
|
|
780
|
+
- `yarn build` - Build for production (includes type checking)
|
|
781
|
+
- `yarn type-check` - TypeScript type checking only
|
|
782
782
|
- `yarn test` - Run tests
|
|
783
783
|
- `yarn test:watch` - Run tests in watch mode
|
|
784
784
|
- `yarn lint` - Lint source files
|
|
785
785
|
- `yarn format` - Format code with Prettier
|
|
786
786
|
- `yarn clean` - Remove build artifacts
|
|
787
787
|
|
|
788
|
+
**Note on Type Checking:**
|
|
789
|
+
- The `build` and `dev` scripts now include automatic type checking via `tsc --noEmit`
|
|
790
|
+
- This ensures type errors are caught early in development
|
|
791
|
+
- The `type-check` script is still available for standalone type checking
|
|
792
|
+
- This follows the monorepo convention used in quantum-ui, web-nexus, and auth-microfrontend
|
|
793
|
+
|
|
794
|
+
### Build Process
|
|
795
|
+
|
|
796
|
+
The build process includes the following steps:
|
|
797
|
+
|
|
798
|
+
1. **Type Checking**: `tsc --noEmit` validates TypeScript types without emitting files
|
|
799
|
+
2. **Bundling**: `tsup` bundles the code using the configuration in `tsup.config.ts`
|
|
800
|
+
3. **Declaration Files**: Generated automatically by tsup with source maps
|
|
801
|
+
|
|
802
|
+
If type checking fails, the build will not proceed. This ensures published packages are type-safe.
|
|
803
|
+
|
|
788
804
|
### Project Structure
|
|
789
805
|
|
|
790
806
|
```
|
|
@@ -966,10 +982,10 @@ Contributions are welcome! Please follow these steps:
|
|
|
966
982
|
|
|
967
983
|
## License
|
|
968
984
|
|
|
969
|
-
MIT © [Shashank Raju](https://github.com/vritti-
|
|
985
|
+
MIT © [Shashank Raju](https://github.com/vritti-ai-platforms)
|
|
970
986
|
|
|
971
987
|
## Author
|
|
972
988
|
|
|
973
989
|
**Shashank Raju**
|
|
974
990
|
- Email: shashank@vrittiai.com
|
|
975
|
-
- GitHub: [@vritti-
|
|
991
|
+
- GitHub: [@vritti-ai-platforms](https://github.com/vritti-ai-platforms)
|