UNPKG

@bemedev/core

Version:

The core library of @bemedev

15 lines (12 loc) 437 B
'use strict'; /** * Convertit un chemin de fichier en clé dot notation comme dans .manifest.ts * Ex: 'features/arrays/castings/all.ts' -> 'features.arrays.castings.all' */ function pathToDotNotation(filePath) { return filePath .replace(/\.ts$/, '') // Enlever l'extension .ts .replace(/\//g, '.'); // Remplacer les / par des . } exports.pathToDotNotation = pathToDotNotation; //# sourceMappingURL=utils.cjs.map