diff --git a/src/config.js b/src/config.js index 45f737ec..8787f39e 100644 --- a/src/config.js +++ b/src/config.js @@ -68,11 +68,11 @@ function configure(repo) { // then fun stuff const cfgs = [ [ - path.join(__dirname, '..', 'config', 'prettier.config.js'), + path.join(__dirname, '../config/prettier.config.js'), path.join(repo, '.prettierrc.js'), ], [ - path.join(__dirname, '..', 'config', 'browserslist.config.rc'), + path.join(__dirname, '../config/browserslist.config.rc'), path.join(repo, '.browserslistrc'), ], ].map(cfg => copy(cfg[0], cfg[1])) diff --git a/src/prettier.js b/src/prettier.js index c2d259a7..417a7003 100644 --- a/src/prettier.js +++ b/src/prettier.js @@ -6,12 +6,8 @@ const log = require('@dhis2/cli-helpers-engine').reporter const { readFile, writeFile } = require('./files.js') // Prettier setup -const prettierConfig = path.join( - __dirname, - '..', - 'config', - 'prettier.config.js' -) +const prettierConfig = path.join(__dirname, '../config/prettier.config.js') + log.debug('Prettier configuration file', prettierConfig) exports.check_fmt = function check_prettier(files) {