File tree Expand file tree Collapse file tree 5 files changed +56
-73
lines changed Expand file tree Collapse file tree 5 files changed +56
-73
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ export default defineNuxtConfig({
50
50
build : {
51
51
lib : {
52
52
entry : "electron/main.ts" ,
53
- formats : [ "es " ] ,
53
+ formats : [ "cjs " ] ,
54
54
} ,
55
+ outDir : "dist-electron" ,
55
56
} ,
56
57
} ,
57
58
} ,
@@ -61,8 +62,9 @@ export default defineNuxtConfig({
61
62
build : {
62
63
lib : {
63
64
entry : "electron/preload.ts" ,
64
- formats : [ "es " ] ,
65
+ formats : [ "cjs " ] ,
65
66
} ,
67
+ outDir : "dist-electron" ,
66
68
} ,
67
69
} ,
68
70
onstart ( options ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
- "type" : " module" ,
4
3
"packageManager" :
" [email protected] " ,
5
4
"main" : " dist-electron/main.js" ,
6
5
"scripts" : {
31
30
"@vueuse/nuxt" : " ^10.5.0" ,
32
31
"autoprefixer" : " ^10.4.16" ,
33
32
"consola" : " ^3.2.3" ,
34
- "electron" : " 28.0.0-alpha.6" ,
35
33
"electron-builder" : " ^24.6.4" ,
36
34
"eslint" : " ^8.52.0" ,
37
35
"eslint-plugin-nuxt" : " ^4.0.0" ,
58
56
"@nuxtjs/tailwindcss" : " ^6.8.1" ,
59
57
"@tailwindcss/forms" : " ^0.5.6" ,
60
58
"@types/unist" : " ^3.0.1" ,
59
+ "electron" : " ^27.0.2" ,
61
60
"html-to-image" : " ^1.11.11" ,
62
61
"pinia" : " ^2.1.7" ,
63
62
"rehype-highlight" : " ^7.0.0" ,
You can’t perform that action at this time.
0 commit comments