Skip to content

Commit 4804da8

Browse files
committed
chore: disable running postinstall & enable minimalAgeGate (Sofie-Automation#1563)
* chore: disable running postinstall * chore: add yarn minimal age gate * chore: run dependabot for meteor and packages dirs
1 parent 74b77cc commit 4804da8

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,27 @@ version: 2
22
updates:
33
# Enable version updates for npm
44
- package-ecosystem: "npm"
5-
# Look for `package.json` and `lock` files in the `root` directory
65
directory: "/"
7-
# Check the npm registry for updates every day (weekdays)
86
schedule:
97
interval: "daily"
108
# Only create security updates
119
open-pull-requests-limit: 0
12-
# Default reviewers
10+
reviewers:
11+
- "@Sofie-Automation/maintainers"
12+
- package-ecosystem: "npm"
13+
directory: "/meteor"
14+
schedule:
15+
interval: "daily"
16+
# Only create security updates
17+
open-pull-requests-limit: 0
18+
reviewers:
19+
- "@Sofie-Automation/maintainers"
20+
- package-ecosystem: "npm"
21+
directory: "/packages"
22+
schedule:
23+
interval: "daily"
24+
# Only create security updates
25+
open-pull-requests-limit: 0
1326
reviewers:
1427
- "@Sofie-Automation/maintainers"
1528

.yarnrc.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,17 @@ compressionLevel: mixed
33
enableGlobalCache: false
44

55
nodeLinker: node-modules
6+
7+
# Disable postinstall scripts. Any packages which need it can be enabled individually with dependenciesMeta in package.json
8+
enableScripts: false
9+
10+
# Enforce a minimal age for npm packages before they can be added/updated
11+
npmMinimalAgeGate: 7
12+
13+
# Packages to ignore the minimal age gate. These are packages we vet ourselves.
14+
npmPreapprovedPackages:
15+
- "@sofie-automation/*"
16+
- "@mos-connection/*"
17+
- "timeline-state-resolver"
18+
- "timeline-state-resolver-types"
19+
- "timeline-state-resolver-api"

packages/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,13 @@
7171
"packageManager": "[email protected]",
7272
"resolutions": {
7373
"[email protected]": "patch:timecode@npm%3A0.0.4#./.yarn/patches/timecode-npm-0.0.4-82bde9e6fe.patch"
74+
},
75+
"dependenciesMeta": {
76+
"esbuild": {
77+
"built": true
78+
},
79+
"nx": {
80+
"built": true
81+
}
7482
}
7583
}

packages/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23077,6 +23077,11 @@ asn1@evs-broadcast/node-asn1:
2307723077
ts-node: "npm:^10.9.2"
2307823078
typedoc: "npm:^0.27.6"
2307923079
typescript: "npm:~5.1.6"
23080+
dependenciesMeta:
23081+
esbuild:
23082+
built: true
23083+
nx:
23084+
built: true
2308023085
languageName: unknown
2308123086
linkType: soft
2308223087

0 commit comments

Comments
 (0)