timlrx / contentlayer2

Contentlayer turns your content into data - making it super easy to import MD(X) and CMS content in your app
https://contentlayer.dev
MIT License
153 stars 11 forks source link

update package name #2

Closed timlrx closed 5 months ago

timlrx commented 7 months ago

Attempt at publishing a new package:

All the tests seems to work, with snapshot updated and the examples work fine. To change the package name in the future, search and replace the following phrases:

Other issues:

Published contentlayer-temp and next-contentlayer-temp v0.4.3 and tested that they work using next-contentlayer-example without issues on both yarn and npm.

rikvermeulen commented 7 months ago

Hey, I tried your newest version of next-contextlayer-temp packages only upon building my application it crashes because it searches for 'contentlayer/package.json' file in the check-constraints.js . There is a func called checkContentlayerVersionsMatch that checks the package.json, only it tries to check the file from original package. These two lines need to be updated to 'contentlayer-temp' and 'next-contentlayer-temp'

const contentlayerVersion = getPackageVersion('contentlayer');
const nextContentlayerVersion = getPackageVersion('next-contentlayer');
timlrx commented 7 months ago

@rikvermeulen thanks, good catch - I only tried it out in dev 😄. Updated those lines and it works for next build as well! Released as v0.4.4

timlrx commented 5 months ago

Changed package name from contentlayer-temp to contentlayer2