diff --git a/nx.json b/nx.json index a366192ab7..c07cfb80cb 100644 --- a/nx.json +++ b/nx.json @@ -20,33 +20,42 @@ "targetDefaults": { "build:lib": { "dependsOn": ["^build:lib"], - "outputs": ["./lib"] + "outputs": ["./lib", "./build"] }, "type-check": { "dependsOn": ["^build:lib"], - "outputs": [] + "outputs": [], + "inputs": [ + "default", + "{workspaceRoot}/tsconfig.json", + "{workspaceRoot}/tsconfig.aliases.json", + "{workspaceRoot}/tsconfig.lib.json" + ] }, "test:unit": { "dependsOn": ["^build:lib"], - "outputs": [] + "outputs": [], + "inputs": [ + "default", + "{workspaceRoot}/jest.config.base.js", + "{workspaceRoot}/jest.config.native.js" + ] }, "lint:js": { - "inputs": ["{projectRoot}/**/*.js", "{projectRoot}/**/*.ts", "{projectRoot}/**/*.tsx"] + "inputs": [ + "{projectRoot}/**/*.js", + "{projectRoot}/**/*.ts", + "{projectRoot}/**/*.tsx", + "{workspaceRoot}/.eslintrc.js" + ] }, "lint:styles": { "inputs": ["{projectRoot}/**/*.tsx"] } }, "implicitDependencies": { - "tsconfig.json": "*", - "tsconfig.aliases.json": "*", - "tsconfig.lib.json": "*", - "jest.config.base.js": "*", - "jest.config.native.js": "*", - ".eslintrc.js": "*", "package.json": "*", - "nx.json": "*", - "!yarn.lock": "*" + "nx.json": "*" }, "affected": { "defaultBase": "origin/develop" diff --git a/packages/suite-data/package.json b/packages/suite-data/package.json index 6aa562565a..db61416376 100644 --- a/packages/suite-data/package.json +++ b/packages/suite-data/package.json @@ -42,5 +42,17 @@ "typescript": "4.7.4", "webpack": "^5.73.0", "webpack-cli": "^4.10.0" + }, + "nx": { + "targets": { + "build:lib": { + "outputs": [ + "./tmp", + "../../suite-common/suite-types/src/messageSystem.ts", + "./files/browser-detection", + "./files/guide" + ] + } + } } }