1.4.3 • Published 4 years ago
@ryall/namespacer v1.4.3
Namespacer
Generates namespaces from module paths in JS/TS.
! NOTE: This is mostly an internal package, so very little documentation is supplied !
Config example
module.exports = {
paths: ['src'],
patterns: ['**/*.ts', '!**/index*.ts', '!**/__@(tests|specs|mocks)__/**/*'],
output: {
barrel: '$.index.ts',
namespace: '$.ts',
},
generation: {
config: '$.config.json',
},
formatters: {
namespace: (directory) => `${directory}$`,
},
};