diff options
Diffstat (limited to 'scripts/watch.js')
-rw-r--r-- | scripts/watch.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/watch.js b/scripts/watch.js index 3c3a8fd..eeee6e4 100644 --- a/scripts/watch.js +++ b/scripts/watch.js | |||
@@ -26,6 +26,9 @@ const serviceInjectModule = path.join( | |||
26 | '../packages/service-inject/dist/index.js', | 26 | '../packages/service-inject/dist/index.js', |
27 | ); | 27 | ); |
28 | 28 | ||
29 | /** @type {string} */ | ||
30 | const userDataDir = path.join(thisDir, '../userDataDir/development'); | ||
31 | |||
29 | /** @type {RegExp[]} */ | 32 | /** @type {RegExp[]} */ |
30 | const stderrIgnorePatterns = [ | 33 | const stderrIgnorePatterns = [ |
31 | // warning about devtools extension | 34 | // warning about devtools extension |
@@ -141,7 +144,7 @@ function setupMainPackageWatcher(viteDevServer) { | |||
141 | function spawnProcess() { | 144 | function spawnProcess() { |
142 | childProcess = spawn( | 145 | childProcess = spawn( |
143 | String(electronPath), | 146 | String(electronPath), |
144 | ['.', ...process.argv.slice(2)], | 147 | ['.', `--user-data-dir=${userDataDir}`, ...process.argv.slice(2)], |
145 | { | 148 | { |
146 | stdio: ['inherit', 'inherit', 'pipe'], | 149 | stdio: ['inherit', 'inherit', 'pipe'], |
147 | }, | 150 | }, |