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

fix(run): tsx bin path #9152

Merged
merged 1 commit into from Aug 30, 2022
Merged

fix(run): tsx bin path #9152

merged 1 commit into from Aug 30, 2022

Conversation

fz6m
Copy link
Member

@fz6m fz6m commented Aug 29, 2022

fix #9148

@vercel
Copy link

vercel bot commented Aug 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
umi ⬜️ Ignored (Inspect) Aug 29, 2022 at 10:40AM (UTC)

@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #9152 (cfb2db4) into master (821f78f) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #9152   +/-   ##
=======================================
  Coverage   30.53%   30.53%           
=======================================
  Files         403      403           
  Lines       11009    11009           
  Branches     2642     2642           
=======================================
  Hits         3362     3362           
  Misses       7160     7160           
  Partials      487      487           
Impacted Files Coverage Δ
packages/plugin-run/src/index.ts 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -49,9 +49,10 @@ export default (api: IApi) => {
};

export function getBinPath() {
const pkgPath = join(__dirname, '../node_modules/tsx/package.json');
// tsx does not export `package.json` subpath, use `resolve` instead of `require.resolve`
const pkgPath = resolve.sync('tsx/package.json', { basedir: __dirname });
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try resolve in privatenumber/tsx#91

@sorrycc sorrycc merged commit aaded67 into umijs:master Aug 30, 2022
ye-will pushed a commit to ye-will/umi that referenced this pull request Sep 8, 2022
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.

[Bug] plugin-run
2 participants