Skip to content
This repository was archived by the owner on Aug 18, 2024. It is now read-only.

Commit fed9277

Browse files
committed
feat: opt-in list of packages at top level
Closes #1
1 parent db9efc5 commit fed9277

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
In `package.json`:
44
```
55
"allowScripts": {
6-
"install": {
7-
"fsevents": "*",
8-
"node-sass": "*"
9-
}
6+
"fsevents": "*",
7+
"node-sass": "*"
108
}
119
```
1210

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ exports.run = (cmd = 'install') => {
5656
const tree = Npm.logicalTree(pkg, shrinkwrap);
5757
const queue = internals.queue(tree);
5858

59-
const allowed = (pkg.allowScripts || {})[cmd] || {};
59+
const allowed = pkg.allowScripts || {};
6060

6161
queue
6262
.map((path) => {

0 commit comments

Comments
 (0)