prismicio / prismic-cli

Prismic command line tool
40 stars 13 forks source link

`prismic sm --setup` throw error for missing `nuxt.config.js` even though `nuxt.config.ts` exists. #130

Open eveningforgery opened 3 years ago

eveningforgery commented 3 years ago

nuxt-bridge now supports and recommends typescript for their config file but prismic cli doesn't detect it.

prismic sm --existing-repo --setup
? Name your prismic repository:  https://repo-name.prismic.io
? Which framework to use nuxt
    Error: /Users/usr/Documents/Github/project/nuxt.config.js doesn't exist
lihbr commented 3 years ago

Hey @eveningforgery, thanks for bringing that to our attention!

We expect things to break with the new Nuxt bridge, but if that's only that we should be able to handle it 👌

@MarcMcIntosh can you handle that?

MarcMcIntosh commented 3 years ago

@eveningforgery @lihbr I'll see about getting this added to my todo list :) Hopefully it's just a case of searching for extra file and running the same function to modify the config. Do we have a demo project to test this on?