Skip to content

Commit 2a4a783

Browse files
committed
Fix issue where Sandbox watcher would lose a specified port setting; fixes #1395
1 parent e973870 commit 2a4a783

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

changelog.md

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
---
44

5+
## [5.5.1] 2023-02-07
6+
7+
### Added
8+
9+
- Allow ctrl+d keypress to quit Sandbox
10+
11+
12+
### Fixed
13+
14+
- Fixed issue where Sandbox watcher would lose a specified port setting; fixes #1395
15+
- Fixed issue where caller to Arc's CLI interface would unnecessarily execute a callback upon quitting
16+
17+
---
18+
519
## [5.5.0] 2023-02-01
620

721
### Added

src/cli/_watcher.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ module.exports = function runWatcher (args, params) {
3636
return
3737
}
3838

39-
function restart ({ cwd, inventory, update }) {
39+
function restart () {
4040
// Always attempt to close the http server, but only reload if necessary
4141
let start = Date.now()
4242
sandbox.end(err => {
4343
if (err) update.error(err)
44-
sandbox.start({ cwd, inventory, restart: true, update }, err => {
44+
sandbox.start({ ...params, restart: true }, err => {
4545
if (err) update.error(err)
4646
else {
4747
let end = Date.now()
@@ -160,7 +160,7 @@ module.exports = function runWatcher (args, params) {
160160
params.inventory = inventory = result
161161
refreshInventory()
162162
update.status('Loaded latest Architect project manifest')
163-
restart({ cwd, inventory, update })
163+
restart()
164164
}
165165
})
166166
}, debounce)
@@ -185,7 +185,7 @@ module.exports = function runWatcher (args, params) {
185185
params.inventory = inventory = result
186186
refreshInventory()
187187
update.status('Loaded latest project preferences')
188-
restart({ cwd, inventory, update })
188+
restart()
189189
}
190190
})
191191
}, debounce)

0 commit comments

Comments
 (0)