Fix manifest usage

This commit is contained in:
Adria Navarro 2023-05-17 12:55:04 +02:00
parent 08babf719e
commit 60109ebcda
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ jobs:
node-version: 14.x
cache: "yarn"
- run: yarn
- run: yarn build --scope=@budibase/types --scope=@budibase/shared-core --scope=@budibase/string-templates --scope=@budibase/client
- run: yarn build --scope=@budibase/types --scope=@budibase/shared-core --scope=@budibase/string-templates
- run: yarn test --ignore=@budibase/pro
- uses: codecov/codecov-action@v3
with:

View File

@ -35,7 +35,7 @@ export const getComponentLibraryManifest = async (library: string) => {
const filename = "manifest.json"
if (env.isDev() || env.isTest()) {
const path = join(NODE_MODULES_PATH, "@budibase", "client", filename)
const path = join(TOP_LEVEL_PATH, "../client", filename)
// always load from new so that updates are refreshed
delete require.cache[require.resolve(path)]
return require(path)