yarn add @vtex/vtex-search-mapper
import { convertFromBiggyProductsToCatalogApiProducts, BiggySearchResult, BiggyProduct, CatalogApiProduct } from '@vtex/vtex-search-mapper'
// ...
const biggySearchResult: BiggySearchResult = await myBiggyClientGetSearchResults(params)
const biggyProducts: BiggyProduct[] = biggySearchResult.products
const newProducts: CatalogApiProduct[] = convertFromBiggyProductsToCatalogApiProducts(biggyProducts)
yarn
yarn test
yarn jest
On this project:
yarn link
To watch changes locally:
yarn watch
On the other project:
yarn link @vtex/vtex-search-mapper
Then any changes you make on this project will reflect on the project that uses it
To release new versions use semver pattern and follow the next commands to choose how to release this package on npm
yarn release
yarn release-minor
yarn release-patch