Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support absolute dist paths and use absWorkingDir is present #110

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

idobh2
Copy link
Contributor

@idobh2 idobh2 commented Oct 3, 2023

This PR adds the support for 2 esbuild options:

  1. absolute outdir - if outdir is absolute, it should take it as is, instead of building a new path. The previous behavior simply concatenates the two absolute paths making them and invalid path.
  2. If absWorkingDir option is provided, it should take it instead of process.cwd() - so you can run the build script from an entirely separate location than the built module.

In addition, this PR fixes windows-style paths (with \ separator)

@wd-David
Copy link
Owner

wd-David commented Oct 4, 2023

Thank you for the PR @idobh2, will release a new version soon.

@wd-David wd-David merged commit 30f274b into wd-David:main Oct 4, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants