mirror of
				https://github.com/ecomfe/vue-echarts.git
				synced 2025-11-01 01:18:17 +08:00 
			
		
		
		
	 654fdc98f9
			
		
	
	654fdc98f9
	
	
	
		
			
			* chore: up version and deps * chore: use pnpm CLI to get versions * add note for echarts 6 upgrade guide * remove docs script let cdn to redirect for us * Revert "remove docs script" This reverts commit 3bc237db9100864f2813249ac1693735a658e646. * update demo links
		
			
				
	
	
		
			21 lines
		
	
	
		
			590 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			590 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { execSync } from "node:child_process";
 | |
| import { resolve, dirname } from "node:path";
 | |
| import { fileURLToPath } from "node:url";
 | |
| 
 | |
| export function resolvePath(url: string, ...parts: string[]) {
 | |
|   return resolve(dirname(fileURLToPath(url)), ...parts);
 | |
| }
 | |
| 
 | |
| type PackageVersions = {
 | |
|   name: string;
 | |
|   version: string;
 | |
|   devDependencies: Record<string, { version: string }>;
 | |
| };
 | |
| 
 | |
| export function getPackageVersions(devDeps?: string[]): PackageVersions {
 | |
|   const stdOut = execSync(`pnpm ls ${devDeps?.join(" ") || ""} --json`, {
 | |
|     encoding: "utf-8",
 | |
|   });
 | |
|   return JSON.parse(stdOut)[0];
 | |
| }
 |