Skip to content

Conversation

@dsherret
Copy link
Member

@dsherret dsherret commented Oct 23, 2025

// deno.json
{
  "allowScripts": true // allow all
}
{
  "allowScripts": [
    "npm:package"
  ]
}

Or:

{
  "allowScripts": {
    "allow": true,
    "deny": [
      "npm:package" // allow everything except this package
    ]
  }
}

Constraints are also supported in order to limit to specific version ranges:

{
  "allowScripts": [
    "npm:package@1", // broad constraint
    "npm:example@1.0.0" // exact version
  ]
}

@dsherret dsherret marked this pull request as ready for review October 27, 2025 17:42
Comment on lines +2082 to +2083
// it's too much of a hassle to support tags,
// so error if someone uses one
Copy link
Member

Choose a reason for hiding this comment

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

I agree

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

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