Skip to content

Commit 922e3f0

Browse files
authored
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 934b8ff commit 922e3f0

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
@@ -77,5 +77,13 @@
7777
"@hyperjump/json-pointer@^0.9.4": "patch:@hyperjump/json-pointer@npm%3A0.9.8#./.yarn/patches/@hyperjump-json-pointer-npm-0.9.8-edc0d22296.patch",
7878
"@hyperjump/json-pointer@^0.9.2": "patch:@hyperjump/json-pointer@npm%3A0.9.8#./.yarn/patches/@hyperjump-json-pointer-npm-0.9.8-edc0d22296.patch",
7979
"@hyperjump/pact@^0.2.3": "patch:@hyperjump/pact@npm%3A0.2.5#./.yarn/patches/@hyperjump-pact-npm-0.2.5-a816d03fba.patch"
80+
},
81+
"dependenciesMeta": {
82+
"esbuild": {
83+
"built": true
84+
},
85+
"nx": {
86+
"built": true
87+
}
8088
}
8189
}

packages/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23283,6 +23283,11 @@ asn1@evs-broadcast/node-asn1:
2328323283
ts-node: "npm:^10.9.2"
2328423284
typedoc: "npm:^0.27.6"
2328523285
typescript: "npm:~5.7.3"
23286+
dependenciesMeta:
23287+
esbuild:
23288+
built: true
23289+
nx:
23290+
built: true
2328623291
languageName: unknown
2328723292
linkType: soft
2328823293

0 commit comments

Comments
 (0)