Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ $ nx semantic-release app-c --repositoryUrl "https://github.com/goestav/nx-seman

| Token | Expands into |
| ---------------- | --------------------------------------------------------------------------------------------- |
| ${PROJECT_DIR} | Resolves to the current project direcory (ex. `/Users/theunderscorer/nx-monorepo/apps/app-a`) |
| ${PROJECT_DIR} | Resolves to the current project direcory (ex. `apps/app-a`) |
| ${PROJECT_NAME} | Resolves to the current project name (ex. `app-a`) |
| ${WORKSPACE_DIR} | Resolves to the current workspace direcory (ex. `/Users/theunderscorer/nx-monorepo`) |

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from "path";
import {
ExecutorContext,
parseTargetString,
Expand Down Expand Up @@ -139,7 +140,7 @@ export function resolveOptions(

return applyTokensToSemanticReleaseOptions(mergedOptions, {
projectName: context.projectName as string,
projectDir: getDefaultProjectRoot(context),
projectDir: path.relative(context.cwd, getDefaultProjectRoot(context)),
workspaceDir: workspaceRoot,
});
}
Expand Down