Skip to content

Commit

Permalink
chore: repair nx configuration (#3680)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekashida authored Aug 24, 2023
1 parent 9b379c9 commit db843aa
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 21 deletions.
5 changes: 3 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "nx/presets/npm.json",
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
Expand All @@ -9,6 +8,7 @@
}
}
},
"extends": "nx/presets/npm.json",
"targetDefaults": {
"build": {
"dependsOn": ["^build"]
Expand All @@ -31,5 +31,6 @@
"namedInputs": {
"sharedGlobals": ["{workspaceRoot}/scripts/rollup/rollup.config.js"],
"default": ["{projectRoot}/**/*", "sharedGlobals"]
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json"
}
2 changes: 1 addition & 1 deletion packages/@lwc/aria-reflection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/babel-plugin-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/engine-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/engine-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/engine-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/module-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/perf-benchmarks-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/perf-benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
],
"//": "The build output depends on these env variables. See: https://nx.dev/concepts/how-caching-works#runtime-hash-inputs",
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/rollup-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/style-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/synthetic-shadow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/template-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/wire-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"targets": {
"build": {
"outputs": [
"./dist"
"{projectRoot}/dist"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/tasks/check-and-rewrite-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ for (const dir of directories) {
build: {
// It's important to use the `./` here, otherwise NX does not restore the dist files
// See https://github.com/salesforce/lwc/issues/3511
outputs: ['./dist'],
outputs: ['{projectRoot}/dist'],
},
},
},
Expand Down

0 comments on commit db843aa

Please sign in to comment.