-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathcommandsMap.js
More file actions
102 lines (102 loc) · 2.56 KB
/
Copy pathcommandsMap.js
File metadata and controls
102 lines (102 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
export default {
npm: {
scenario: 'npm',
legend: 'npm',
color: '#cd3731',
name: 'npm',
args: [
'install',
'--no-fund',
'--no-audit',
'--ignore-scripts',
'--cache=cache',
'--registry=https://registry.npmjs.org/',
'--legacy-peer-deps',
// npm CLI fails on the benchmarks with this option. So, commenting out for now.
// '--install-strategy=linked',
]
},
pnpm11: {
scenario: 'pnpm11',
legend: 'pnpm',
color: '#fbae00',
name: 'pnpm',
args: [
'install',
'--ignore-scripts',
'--store-dir=cache/store',
'--cache-dir=cache/cache',
'--registry=https://registry.npmjs.org/',
'--no-strict-peer-dependencies',
'--config.auto-install-peers=false',
'--config.resolution-mode=highest',
]
},
pnpm12: {
scenario: 'pnpm12',
legend: 'pnpm 🦀',
mdLegend: '[pnpm 🦀](https://github.com/pnpm/pacquet)',
color: '#fbae00',
displayVersion: '12',
mascot: '🦀',
// The Rust engine keeps its store at $PNPM_HOME/store; scenarios that
// carry this flag get PNPM_HOME pointed inside the fixture's cache/ dir
// so the store is cleaned between scenarios like every other cache.
rustEngine: true,
name: 'pnpm',
args: [
'install',
'--ignore-scripts',
]
},
// The command is pnpm 12's, unchanged: what makes this column different from
// the pnpm 🦀 one is the `pnprServer` the fixture is configured with, which
// moves dependency resolution onto the registry.
pnpm_pnpr: {
scenario: 'pnpm_pnpr',
legend: 'pnpm + pnpr',
mdLegend: '[pnpm + pnpr](https://pnpm.io/pnpr/install-acceleration)',
color: '#2fa84f',
displayVersion: '12',
rustEngine: true,
name: 'pnpm',
args: [
'install',
'--ignore-scripts',
]
},
yarn: {
scenario: 'yarn',
legend: 'Yarn',
color: '#248ebd',
name: 'yarn',
args: [
'install'
]
},
yarn_pnp: {
scenario: 'yarn_pnp',
legend: 'Yarn PnP',
color: '#40a9ff',
name: 'yarn',
args: [
'install'
]
},
bun: {
scenario: 'bun',
legend: 'Bun',
color: '#e0709a',
name: 'bun',
args: [
'install',
'--ignore-scripts',
'--cache-dir=cache',
'--registry=https://registry.npmjs.org/',
// Bun turns on --frozen-lockfile whenever CI is set, which breaks every
// scenario that starts without a lockfile. Yarn is opted out of the same
// behaviour through `enableImmutableInstalls: false`.
'--no-frozen-lockfile',
]
}
}