Skip to content

Commit

Permalink
fix: use two-param version for pkg to identify assets
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Feb 7, 2019
1 parent 1d0506d commit 284ce0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down
8 changes: 2 additions & 6 deletions src/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 284ce0b

Please sign in to comment.