smartssr/ts/smartssr.paths.ts

9 lines
287 B
TypeScript
Raw Permalink Normal View History

2023-05-01 12:38:53 +00:00
import * as plugins from './smartssr.plugins.js';
2020-02-12 21:31:22 +00:00
2023-07-27 10:37:27 +00:00
export const packageDir = plugins.path.join(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
'../'
);
2020-02-12 21:31:22 +00:00
export const noGitDir = plugins.path.join(packageDir, './.nogit');
2020-03-01 13:41:20 +00:00
plugins.smartfile.fs.ensureDirSync(noGitDir);