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

[Bug Report] farm_core toolkit pathFilter parsing results are inconsistent in different directories. #1258

Open
ErKeLost opened this issue Apr 28, 2024 · 0 comments

Comments

@ErKeLost
Copy link
Member

ErKeLost commented Apr 28, 2024

Steps to reproduce

The execution of the script in the root directory is inconsistent with that in the subdirectory

use pathFilter filter node_modules path

    // filter node_modules path
    let filter = PathFilter::new(&self.options.include, &self.options.exclude);
    if !filter.execute(&param.module_id.relative_path()){
      return Ok(None);
    }

directory

-- root
    -- playground
  • root scripts : cd playground && pnpm build

  • playground: pnpm build

What is expected?

Execute scripts in different directories

root :

image

playground:

image

What is actually happening?

same normal

System Info

macos

Any additional comments?

No response

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

No branches or pull requests

1 participant