@witchcraft/nuxt-electron 0.0.5 → 0.0.6
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
|
@@ -2,7 +2,7 @@ export function useDevDataDir() {
|
|
|
2
2
|
if (import.meta.dev) {
|
|
3
3
|
const index = process.argv.findIndex((arg) => arg.startsWith("--dev-user-data-dir")) + 1;
|
|
4
4
|
if (index === -1) return void 0;
|
|
5
|
-
return process.argv[index
|
|
5
|
+
return process.argv[index];
|
|
6
6
|
}
|
|
7
7
|
return void 0;
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ export function useDevDataDir(): string | undefined {
|
|
|
2
2
|
if (import.meta.dev) {
|
|
3
3
|
const index = process.argv.findIndex(arg => arg.startsWith("--dev-user-data-dir")) + 1
|
|
4
4
|
if (index === -1) return undefined
|
|
5
|
-
return process.argv[index
|
|
5
|
+
return process.argv[index]
|
|
6
6
|
}
|
|
7
7
|
return undefined
|
|
8
8
|
}
|