datopian / flowershow

💐 Publish your obsidian digital garden or any markdown site easily and elegantly.
https://flowershow.app/
MIT License
757 stars 92 forks source link

Using mddb command of the local version of @flowershow/markdowndb package in the template results in import errors #488

Closed olayway closed 1 year ago

olayway commented 1 year ago

There is a bin file in @flowershow/markdowndb, which can be executed by running mddb command. (see package.json file of markdowndb package). When @flowershow/markdowndb is installed as a dependency, the files downloaded from the npm registry will have been compiled to .js, so that's great. However, when we run the template app in our monorepo, pnpm will have the @flowershow/markdowndb dependency linked to its local version, which has files in /src/lib written in TS. /src/bin/index.js file is a JS file that is supposed to be run with node, but it imports some stuff from the lib, so the import statements break.

VERY Temporary solution:

olayway commented 1 year ago

Closing as we've just migrated markdowndb package out of the monorepo: https://github.com/datopian/markdowndb, so the issue will no longer be relevant.