Neither yarn add nor npm install properly builds a distributable module nor does the dist directory exist in the repo. Error thrown upon running a simple test app:
Error: Cannot find module '/Users/ada/projects/md-to-adf-test/node_modules/@kenchan0130/markdown-to-atlassian-wiki-markup/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:328:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:689:18)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1016:27)
at Function.Module._load (internal/modules/cjs/loader.js:898:27)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object.<anonymous> (/Users/ada/github/joe-doc/renderers/confluence/index.js:2:23)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:32) {
code: 'MODULE_NOT_FOUND',
path: '/Users/ada/project/md-to-adf/node_modules/@kenchan0130/markdown-to-atlassian-wiki-markup/package.json',
requestPath: '@kenchan0130/markdown-to-atlassian-wiki-markup'
Neither
yarn add
nornpm install
properly builds a distributable module nor does thedist
directory exist in the repo. Error thrown upon running a simple test app: