diff --git a/package.json b/package.json index 47676b9d16..9f349c570e 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "lerna": "^6.6.2", "madge": "^6.0.0", "minimist": "^1.2.8", + "nx": "^16.2.1", "prettier": "^2.3.1", "prettier-plugin-svelte": "^2.3.0", "rimraf": "^3.0.2", diff --git a/packages/shared-core/package.json b/packages/shared-core/package.json index 0bc643f551..730c0376d0 100644 --- a/packages/shared-core/package.json +++ b/packages/shared-core/package.json @@ -26,5 +26,19 @@ "concurrently": "^7.6.0", "rimraf": "3.0.2", "typescript": "4.7.3" + }, + "nx": { + "targets": { + "build": { + "dependsOn": [ + { + "projects": [ + "@budibase/types" + ], + "target": "build" + } + ] + } + } } } diff --git a/yarn.lock b/yarn.lock index d96d70458b..f380b71bcf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19023,7 +19023,7 @@ nx@15.9.2, "nx@>=15.5.2 < 16": "@nrwl/nx-win32-arm64-msvc" "15.9.2" "@nrwl/nx-win32-x64-msvc" "15.9.2" -nx@16.2.1: +nx@16.2.1, nx@^16.2.1: version "16.2.1" resolved "https://registry.yarnpkg.com/nx/-/nx-16.2.1.tgz#8571a4663c79dc9d60c98599b19146b58c59b473" integrity sha512-O+yGcYIQtYKYagbIuOQFk1P8ki5PHn0BZjdZpsa4K8UZ4pCaRWzlwWwwUL91FUJe6tdhic5710DwAAakbGKP7Q==