提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
284 B

  1. import { dirname, resolve } from 'node:path';
  2. import { fileURLToPath } from 'node:url';
  3. const DIR_DIST = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
  4. const DIR_CLIENT = resolve(DIR_DIST, "../dist/client");
  5. export { DIR_CLIENT, DIR_DIST };