@witchcraft/nuxt-electron 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -226,7 +226,7 @@ const module = defineNuxtModule({
|
|
|
226
226
|
const electronCliArgs = [
|
|
227
227
|
".",
|
|
228
228
|
...process.env.NODE_ENV !== "production" && devUserDataDir ? [
|
|
229
|
-
"--user-data-dir",
|
|
229
|
+
"--dev-user-data-dir",
|
|
230
230
|
devUserDataDir
|
|
231
231
|
] : [],
|
|
232
232
|
...options.extraCliArgs ?? []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function useDevDataDir() {
|
|
2
2
|
if (import.meta.dev) {
|
|
3
|
-
const index = process.argv.findIndex((arg) => arg.startsWith("--dev-user-data-dir"))
|
|
3
|
+
const index = process.argv.findIndex((arg) => arg.startsWith("--dev-user-data-dir"));
|
|
4
4
|
if (index === -1) return void 0;
|
|
5
5
|
return process.argv[index + 1];
|
|
6
6
|
}
|
package/package.json
CHANGED
package/src/module.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function useDevDataDir(): string | undefined {
|
|
2
2
|
if (import.meta.dev) {
|
|
3
|
-
const index = process.argv.findIndex(arg => arg.startsWith("--dev-user-data-dir"))
|
|
3
|
+
const index = process.argv.findIndex(arg => arg.startsWith("--dev-user-data-dir"))
|
|
4
4
|
if (index === -1) return undefined
|
|
5
5
|
return process.argv[index + 1]
|
|
6
6
|
}
|