Skip to content

Commit dadd3ec

Browse files
authored
Merge pull request microsoft#1396 from iclanton/ianc/fix-rush-events
[rush] Change the working directory for event hooks to the rush.json directory.
2 parents 37277a9 + 78c5dfc commit dadd3ec

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

apps/rush-lib/src/logic/EventHooksManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class EventHooksManager {
3636
script,
3737
{
3838
rushConfiguration: this._rushConfiguration,
39-
workingDirectory: process.cwd(),
39+
workingDirectory: this._rushConfiguration.rushJsonFolder,
4040
initCwd: this._commonTempFolder,
4141
handleOutput: true,
4242
environmentPathOptions: {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Make event hooks run from the folder that contains the rush.json file.",
5+
"packageName": "@microsoft/rush",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "iclanton@users.noreply.github.com"
11+
}

0 commit comments

Comments
 (0)