NestJS compiles to CommonJS, but the package only exported ESM.
Node throws ERR_PACKAGE_PATH_NOT_EXPORTED when CJS code requires
an ESM-only package. Added dual ESM/CJS build with proper exports
conditions.
- ESM output in dist/esm/, CJS output in dist/cjs/
- package.json exports now includes import, require, and default
- Bumped to 0.1.1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add versioning table to README and integration guide showing dist-tags,
version formats, and .npmrc registry configuration for the Gitea npm
registry.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Woodpecker cannot resolve depends_on for steps excluded by when
clauses. On develop, publish-release is skipped (main-only), making
it an unknown dependency. Changed to depend on build instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- publish-release (main): publishes package.json version as-is with
'latest' dist-tag, skips if version already published
- publish-dev (develop): publishes {version}-dev.{timestamp} with
'dev' dist-tag, every push gets a unique prerelease version
Install channels:
npm install @mosaicstack/telemetry-client # latest stable
npm install @mosaicstack/telemetry-client@dev # latest dev build
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Links the published npm package to the telemetry-client-js repository
in Gitea so it appears on the repo's Packages tab.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Woodpecker shares the workspace volume across steps. Only the install
step should run npm ci — parallel steps (lint, typecheck, test, etc.)
were each re-running npm ci concurrently, corrupting node_modules.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rewrite README with quick start, config table, prediction usage, API version note
- Add docs/integration-guide.md with Next.js and Node.js examples, env-specific
config, error handling patterns, batch behavior, and API version compatibility
- Add docs/api-reference.md with full reference for all exported classes, methods,
types, and enums
- Add .woodpecker.yml with quality gates (lint, typecheck, format, security audit,
test with coverage) and npm publish to Gitea registry
- Add AGENTS.md and update CLAUDE.md with project conventions
Fixes#1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>