mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	chore(monorepo): adapt update nightly for client & server
This commit is contained in:
		| @@ -26,10 +26,7 @@ function processVersion(version) { | ||||
|     return version; | ||||
| } | ||||
|  | ||||
| function main() { | ||||
|     const scriptDir = dirname(fileURLToPath(import.meta.url)); | ||||
|     const packageJsonPath = join(scriptDir, "..", "package.json"); | ||||
|  | ||||
| function patchPackageJson(packageJsonPath) { | ||||
|     // Read the version from package.json and process it. | ||||
|     const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8")); | ||||
|     const currentVersion = packageJson.version; | ||||
| @@ -43,4 +40,16 @@ function main() { | ||||
|     fs.writeFileSync(packageJsonPath, formattedJson); | ||||
| } | ||||
|  | ||||
| function main() { | ||||
|     const scriptDir = dirname(fileURLToPath(import.meta.url)); | ||||
|      | ||||
|     const rootPackageJson = join(scriptDir, "..", "package.json"); | ||||
|     patchPackageJson(rootPackageJson); | ||||
|      | ||||
|     for (const app of ["server", "client"]) { | ||||
|         const appPackageJsonPath = join(scriptDir, "..", "apps", app, "package.json"); | ||||
|         patchPackageJson(appPackageJsonPath); | ||||
|     } | ||||
| } | ||||
|  | ||||
| main(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user