Skip to content

Commit

Permalink
fix: prevent ".directories.output option ignored in package.json"
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Oct 28, 2016
1 parent 48051cb commit e748369
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .idea/typescript-compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/errorMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const buildInAppSpecified = `'build' in the application package.json ('%s
Please move 'build' into the development package.json ('%s')
`

export const nameInBuildSpecified = `'name' in the 'build' is forbidden
export const nameInBuildSpecified = `'name' in the 'build' is forbidden.
Please move 'name' from 'build' into the application package.json ('%s')
`
4 changes: 4 additions & 0 deletions src/packager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ export class Packager implements BuildInfo {
throw new Error(util.format(errorMessages.nameInBuildSpecified, appPackageFile))
}

if (build.directories != null) {
throw new Error(`'directories' in the 'build' is not correct. Please move 'directories' from 'build' to root`)
}

if (build.osx != null) {
warn('"build.osx" is deprecated — please use "mac" instead of "osx"')
}
Expand Down

0 comments on commit e748369

Please sign in to comment.