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:
current published version of the markdowndb package: 0.1.1
set markdowndb version in the template to fixed 0.1.0 so that pnpm doesn't try to link to the local version.
There is a bin file in
@flowershow/markdowndb
, which can be executed by runningmddb
command. (seepackage.json
file ofmarkdowndb
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:
0.1.1
0.1.0
so that pnpm doesn't try to link to the local version.