mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00

* chore: eslint flat config * chore: format * update according to review * chore: remove prettier config and format * fix: move handler to script to bypass eslint * chore: config eslint for lang=js block * docs: add surrounding empty lines for code block * chore: also minify css in csp build * chore: publint
14 lines
372 B
JavaScript
14 lines
372 B
JavaScript
import { readFileSync } from "node:fs";
|
|
import { resolve, dirname } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
export function resolvePath(url, ...parts) {
|
|
return resolve(dirname(fileURLToPath(url)), ...parts);
|
|
}
|
|
|
|
export function getPackageMeta() {
|
|
return JSON.parse(
|
|
readFileSync(resolvePath(import.meta.url, "../package.json"), "utf8"),
|
|
);
|
|
}
|