Skip to content

Commit

Permalink
chore(nx): update targetDefaults to match lage.config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Mar 2, 2023
1 parent 24cd2f5 commit 5260e31
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"]
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"bundle-size'": {
"dependsOn": ["build"]
},
"test": {
"dependsOn": ["build"],
Expand All @@ -46,9 +50,17 @@
"sharedGlobals": [],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/**/*.md",
"!{projectRoot}/.eslintrc.(json|js)",
"!{projectRoot}/**/?(*.)+(spec|test|cy).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s"
"!{projectRoot}/tsconfig.cy.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/cypress.config.[jt]s",
"!{projectRoot}/bundle-size/**",
"!{projectRoot}/e2e/**",
"!{projectRoot}/.storybook/**",
"!{projectRoot}/**/*.stories.tsx?"
]
}
}

0 comments on commit 5260e31

Please sign in to comment.