Use a .npmignore file instead of the files property of package.json A bug in lerna seems to use the generated dist/package.json instead of the root file when determining files to add, resulting in an empty directory. Related: https://stackoverflow.com/questions/54912262/lerna-publish-and-npm-pack-failing-to-package-all-the-files-in-dist-folder |
||
---|---|---|
.. | ||
__mocks__ | ||
src | ||
tests | ||
.gitignore | ||
.npmignore | ||
jest.config.ts | ||
LICENSE | ||
package.json | ||
plugins.ts | ||
README.md | ||
tsconfig.build.json | ||
tsconfig.json | ||
yarn.lock |
Budibase Core backend library
This library contains core functionality, like auth and security features which are shared between backend services.
Note about top level JS files
For the purposes of being able to do say require("@budibase/backend-core/permissions")
we need to
specify the exports at the top-level of the module.
For these files they should be limited to a single require
of the file that should
be exported and then a single module.exports = ...
to export the file in
commonJS.