PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
9
src/helpers.ts
Executable file
9
src/helpers.ts
Executable file
@@ -0,0 +1,9 @@
|
||||
import { resolve, join } from 'path';
|
||||
|
||||
// Ottieni la radice del progetto
|
||||
const ROOT = resolve(__dirname, '.');
|
||||
|
||||
// Funzione per unire la radice con altri argomenti passati
|
||||
export function root(...args: string[]): string {
|
||||
return join(ROOT, ...args);
|
||||
}
|
||||
Reference in New Issue
Block a user