Skip to content

Commit

Permalink
fix: fix nps init with config yml (#182)
Browse files Browse the repository at this point in the history
* fix: fix nps init with config yml

* Fix test
  • Loading branch information
Hypercubed authored and Kent C. Dodds committed Jun 23, 2018
1 parent ddca423 commit 5fc101d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin-utils/initialize/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test('initialize YML normally', () => {
jest.mock('fs', () => ({writeFileSync: mockWriteFileSync}))
const initialize = require('../').default

initialize('yaml')
initialize('yml')

const [
[packageJsonDestinationResult, packageJsonStringResult],
Expand Down
2 changes: 1 addition & 1 deletion src/bin-utils/initialize/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function initialize(configType = 'js') {
packageJson.scripts = getCoreScripts(packageJson.scripts)
writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2))

if (configType === 'yaml') {
if (configType === 'yml') {
return dumpYAMLConfig(packageJsonPath, scripts)
}

Expand Down

0 comments on commit 5fc101d

Please sign in to comment.