Skip to content

Commit

Permalink
fix(workspace-tools): Resolved issue with entry path passed into api-…
Browse files Browse the repository at this point in the history
…extractor
  • Loading branch information
sullivanpj committed Nov 29, 2023
1 parent 52f435a commit b2614e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions patches/tsup@8.0.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ index 36191e8e511f9cc413d70403ac86c989890f8d65..3f62789299ce916f0cdbc8009a8673c2
interface NormalizedExperimentalDtsConfig {
entry: {
diff --git a/dist/index.js b/dist/index.js
index 2c8ba016932710c259e84a7a070271eb4f73da5b..22e4d99e9e3c9d8e3c544f8f533985f75e5ffc61 100644
index 2c8ba016932710c259e84a7a070271eb4f73da5b..981ec4c7a15fe1c2d26b471c02f55382b334be80 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1590,19 +1590,61 @@ var getOutputExtensionMap = (options, format, pkgType) => {
Expand Down Expand Up @@ -371,9 +371,9 @@ index 2c8ba016932710c259e84a7a070271eb4f73da5b..22e4d99e9e3c9d8e3c544f8f533985f7
+
let configObject = {
- mainEntryPointFilePath: inputFilePath,
+ mainEntryPointFilePath: `<projectFolder>/${_path2.default.join(
+ relativeProjectFolder,
+ inputFilePath.replace(options.workspaceRoot, "")).replaceAll("\\", "/")}`,
+ mainEntryPointFilePath: inputFilePath.includes(options.workspaceRoot)
+ ? inputFilePath
+ : _path2.default.join(options.workspaceRoot, inputFilePath),
apiReport: {
- enabled: false,
- // `reportFileName` is not been used. It's just to fit the requirement of API Extractor.
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2614e5

Please sign in to comment.