open-index/open-npm huggingface dataset:
npm package: @gigya/api
Description: Gigya API TypeScript Client
Latest version: 1.0.0

# @gigya/api

TypeScript client for Gigya API

## Installation

```bash
npm install @gigya/api
# or
pnpm add @gigya/api
# or
yarn add @gigya/api
```

## Usage

```typescript
import { Gigya } from '@gigya/api'

const client = new Gigya({
  BASE: 'https://your-api-endpoint.com'
})

// Use the client...
```

## Development

This package supports both **tsc** (TypeScript Compiler) and **tsup** (bundler) for building.

### Building

```bash
# Using tsc (default - recommended for type preservation)
npm run build

# Or using tsc explicitly
npm run build:tsc

# Or using tsup (alternative - faster builds with bundling)
npm run build:tsup

# Clean build artifacts
npm run clean
```

### Publishing

Before publishing, make sure to:

1. Update the version in the root `package.json`
2. Test the build:

```bash
# Dry run to see what would be published
npm run publish:dry
```

3. Publish to npm:

```bash
# Publish as next tag (for beta/rc versions)
npm run publish:next

# Or publish as latest (for stable releases)
npm run publish:latest
```

The `prepublishOnly` hook will automatically clean and rebuild before publishing.

### Build Outputs

- **tsc**: Generates separate `.js` and `.d.ts` files with source maps
- **tsup**: Generates bundled ESM and CJS outputs with type declarations

Both methods produce production-ready code suitable for publishing to npm.

## Package Exports

This package supports both ESM and CommonJS:

```javascript
// ESM
import { Gigya } from '@gigya/api'

// CommonJS
const { Gigya } = require('@gigya/api')
```

## License

MIT