Install dependencies, build the TypeScript output, and run tests:
pnpm install
pnpm build
pnpm testpnpm build and pnpm test generate src/generated/version.ts from package.json.version before compiling or running tests. Do not edit generated version files by hand.
Install from this repo for local testing:
pnpm install
pnpm build
npm install -g .
command -v fpc
fpc --versionInstall from a packed tarball:
npm pack
npm install -g ./feedmob-feedmob-pixel-cli-*.tgz
command -v fpcFor the local wrapper workflow:
pnpm install
pnpm build
pnpm test
make install-local
command -v fpcmake install-local installs a small wrapper at ~/.local/bin/fpc. npm global install links the package-managed fpc binary. Ensure the relevant bin directory is on your PATH.
Live calls are not part of the default test suite. When you have a token:
fpc doctor
fpc advertisers listUnit tests use local fixtures/mocks only:
pnpm testThe package is published to npm as @feedmob/feedmob-pixel-cli.
- Bump
package.json.version. - Run
pnpm testandnpm pack --dry-run. - Merge the release change to
main.
The Publish to npm GitHub Actions workflow runs on pushes to main, checks whether the current name@version already exists on npm, and publishes only unpublished versions.
npm Trusted Publisher should be configured for:
- Repository:
feed-mob/feedmob-pixel-cli - Workflow filename:
publish.yml