mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fix(monorepo/electron): local dependency issues when running electron-forge result
This commit is contained in:
		
							parent
							
								
									2a5766312d
								
							
						
					
					
						commit
						f73cabc952
					
				| @ -43,12 +43,6 @@ try { | |||||||
|         fs.copySync(dir, path.join(PUBLIC_DIR, path.basename(dir))); |         fs.copySync(dir, path.join(PUBLIC_DIR, path.basename(dir))); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /* |  | ||||||
|      * Extract and rebuild the bettersqlite node module. |  | ||||||
|      */ |  | ||||||
|     fs.moveSync(path.join(DEST_DIR, "node_modules/@triliumnext/server/node_modules/better-sqlite3"), path.join(DEST_DIR, "node_modules/better-sqlite3")); |  | ||||||
|     execSync("npm run postinstall", { cwd: DEST_DIR }); |  | ||||||
| 
 |  | ||||||
|     console.log("Copying complete!") |     console.log("Copying complete!") | ||||||
| 
 | 
 | ||||||
| } catch(err) { | } catch(err) { | ||||||
|  | |||||||
| @ -46,7 +46,7 @@ function copyNodeModules(packageJsonPath: string) { | |||||||
| 
 | 
 | ||||||
|     // Trigger an npm install to obtain the dependencies.
 |     // Trigger an npm install to obtain the dependencies.
 | ||||||
|     fs.writeFileSync(path.join(DEST_DIR, "package.json"), JSON.stringify(packageJson)); |     fs.writeFileSync(path.join(DEST_DIR, "package.json"), JSON.stringify(packageJson)); | ||||||
|     execSync(`npm install --omit=dev --omit=optional --omit=peer`, { |     execSync(`npm install --omit=dev`, { | ||||||
|         cwd: DEST_DIR, |         cwd: DEST_DIR, | ||||||
|         stdio: "inherit", |         stdio: "inherit", | ||||||
|     }); |     }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran