Skip to content

[BUG] Can't exec bin that start with . #116

@remiposo

Description

@remiposo

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After #105, bin that start with . are now considered invalid to prevent out of scope path traversals. As a result, bin like "bin": {"hoge": ".bin/hoge.js"} are now also considered invalid and removed. Was this an intentional change?

It seems that scripts like create-rust-webpack are no longer executable.
rustwasm/rust-webpack-template#190

❯ npm init rust-webpack
npm error could not determine executable to run

Expected Behavior

If this change was not intentional, I would like to continue executing scripts as before.

Steps To Reproduce

  1. Run npm init rust-webpack

Environment

  • npm: 10.8.2
  • Node: 22.6.0
  • OS: Sonoma 14.5
  • platform: M2 Mac mini

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions