Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
Fix issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored Oct 6, 2017
1 parent 6c94387 commit d25d304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async function(path?: string): Promise<string> {
await remove(join(path, SONAR_FILENAME))
// Add sonar keys
const sonar = pkg.sonar || {}
sonar.projectKey = sonar.projectKey || pkg.name
sonar.projectKey = (sonar.projectKey || pkg.name).replace(/@/g, '').replace(/\//g, ':')
sonar.projectName = sonar.projectName || pkg.description || sonar.projectKey
sonar.projectVersion = sonar.projectVersion || pkg.version
sonar.sources = sonar.sources || './src'
Expand Down

0 comments on commit d25d304

Please sign in to comment.