|
1 | 1 | ### meteor/meteor |
2 | 2 |
|
3 | | -[npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259) |
| 3 | +[npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259C28-L259C62) |
4 | 4 |
|
5 | 5 | <pre><code class="javascript"> if (isWindows()) { |
6 | 6 | //set for the current session and beyond |
|
9 | 9 | } |
10 | 10 | </code></pre> |
11 | 11 |
|
12 | | -*This shell command depends on an uncontrolled [absolute path](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39).* |
| 12 | +*This shell command depends on an uncontrolled [absolute path](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39C20-L39C61).* |
13 | 13 |
|
14 | 14 | #### Paths |
15 | 15 |
|
16 | 16 | <details> |
17 | 17 | <summary>Path with 11 steps</summary> |
18 | 18 |
|
19 | | -1. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39) |
| 19 | +1. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39C20-L39C61) |
20 | 20 | <pre><code class="javascript"> |
21 | 21 | const meteorLocalFolder = '.meteor'; |
22 | 22 | const meteorPath = <strong>path.resolve(rootPath, meteorLocalFolder)</strong>; |
23 | 23 |
|
24 | 24 | module.exports = { |
25 | 25 | </code></pre> |
26 | 26 |
|
27 | | -2. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39) |
| 27 | +2. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39C7-L39C61) |
28 | 28 | <pre><code class="javascript"> |
29 | 29 | const meteorLocalFolder = '.meteor'; |
30 | 30 | const <strong>meteorPath = path.resolve(rootPath, meteorLocalFolder)</strong>; |
31 | 31 |
|
32 | 32 | module.exports = { |
33 | 33 | </code></pre> |
34 | 34 |
|
35 | | -3. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L44) |
| 35 | +3. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L44C3-L44C13) |
36 | 36 | <pre><code class="javascript"> METEOR_LATEST_VERSION, |
37 | 37 | extractPath: rootPath, |
38 | 38 | <strong>meteorPath</strong>, |
39 | 39 | release: process.env.INSTALL_METEOR_VERSION || METEOR_LATEST_VERSION, |
40 | 40 | rootPath, |
41 | 41 | </code></pre> |
42 | 42 |
|
43 | | -4. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L12) |
| 43 | +4. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L12C3-L12C13) |
44 | 44 | <pre><code class="javascript">const os = require('os'); |
45 | 45 | const { |
46 | 46 | <strong>meteorPath</strong>, |
47 | 47 | release, |
48 | 48 | startedPath, |
49 | 49 | </code></pre> |
50 | 50 |
|
51 | | -5. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L11-L23) |
| 51 | +5. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L11C7-L23C27) |
52 | 52 | <pre><code class="javascript">const tmp = require('tmp'); |
53 | 53 | const os = require('os'); |
54 | 54 | const <strong>{</strong> |
|
68 | 68 | const { |
69 | 69 | </code></pre> |
70 | 70 |
|
71 | | -6. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259) |
| 71 | +6. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259C42-L259C52) |
72 | 72 | <pre><code class="javascript"> if (isWindows()) { |
73 | 73 | //set for the current session and beyond |
74 | 74 | child_process.execSync(`setx path "${<strong>meteorPath</strong>}/;%path%`); |
75 | 75 | return; |
76 | 76 | } |
77 | 77 | </code></pre> |
78 | 78 |
|
79 | | -7. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259) |
| 79 | +7. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259C42-L259C52) |
80 | 80 | <pre><code class="javascript"> if (isWindows()) { |
81 | 81 | //set for the current session and beyond |
82 | 82 | child_process.execSync(`setx path "${<strong>meteorPath</strong>}/;%path%`); |
83 | 83 | return; |
84 | 84 | } |
85 | 85 | </code></pre> |
86 | 86 |
|
87 | | -8. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259) |
| 87 | +8. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259C42-L259C52) |
88 | 88 | <pre><code class="javascript"> if (isWindows()) { |
89 | 89 | //set for the current session and beyond |
90 | 90 | child_process.execSync(`setx path "${<strong>meteorPath</strong>}/;%path%`); |
91 | 91 | return; |
92 | 92 | } |
93 | 93 | </code></pre> |
94 | 94 |
|
95 | | -9. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259) |
| 95 | +9. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259C42-L259C52) |
96 | 96 | <pre><code class="javascript"> if (isWindows()) { |
97 | 97 | //set for the current session and beyond |
98 | 98 | child_process.execSync(`setx path "${<strong>meteorPath</strong>}/;%path%`); |
99 | 99 | return; |
100 | 100 | } |
101 | 101 | </code></pre> |
102 | 102 |
|
103 | | -10. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259) |
| 103 | +10. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259C42-L259C52) |
104 | 104 | <pre><code class="javascript"> if (isWindows()) { |
105 | 105 | //set for the current session and beyond |
106 | 106 | child_process.execSync(`setx path "${<strong>meteorPath</strong>}/;%path%`); |
107 | 107 | return; |
108 | 108 | } |
109 | 109 | </code></pre> |
110 | 110 |
|
111 | | -11. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259) |
| 111 | +11. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259C28-L259C62) |
112 | 112 | <pre><code class="javascript"> if (isWindows()) { |
113 | 113 | //set for the current session and beyond |
114 | 114 | child_process.execSync(<strong>`setx path "${meteorPath}/;%path%`</strong>); |
|
121 | 121 | <details> |
122 | 122 | <summary>Path with 2 steps</summary> |
123 | 123 |
|
124 | | -1. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39) |
| 124 | +1. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39C20-L39C61) |
125 | 125 | <pre><code class="javascript"> |
126 | 126 | const meteorLocalFolder = '.meteor'; |
127 | 127 | const meteorPath = <strong>path.resolve(rootPath, meteorLocalFolder)</strong>; |
128 | 128 |
|
129 | 129 | module.exports = { |
130 | 130 | </code></pre> |
131 | 131 |
|
132 | | -2. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259) |
| 132 | +2. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259C28-L259C62) |
133 | 133 | <pre><code class="javascript"> if (isWindows()) { |
134 | 134 | //set for the current session and beyond |
135 | 135 | child_process.execSync(<strong>`setx path "${meteorPath}/;%path%`</strong>); |
|
0 commit comments