Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit 6071ae7

Browse files
committed
Replace dist by src for the source folder
1 parent 6091c7d commit 6071ae7

File tree

16 files changed

+17
-17
lines changed

16 files changed

+17
-17
lines changed

.mocharc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ spec: specs/**/*-test.js
22
reporter:
33
- 'mocha-sonarqube-reporter'
44
watch-files:
5-
- 'dist/**/*.js'
5+
- 'src/**/*.js'
66
- 'specs/**/*.js'

.sonarcloud.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sonar.sources=dist
1+
sonar.sources=src
22
sonar.tests=specs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ scanner(
4242
options: {
4343
'sonar.projectName': 'My App',
4444
'sonar.projectDescription': 'Description for "My App" project...',
45-
'sonar.sources': 'dist',
45+
'sonar.sources': 'src',
4646
'sonar.tests': 'specs'
4747
}
4848
},

ci-analysis.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Regular users will call 'require('sonarqube-scanner')' - but not here: eat your own dog food! :-)
2-
const scanner = require('./dist/index')
2+
const scanner = require('./src/index')
33

44
// We just run an analysis and push it to SonarCloud
55
// (No need to pass the server URL and the token, we're using the Travis
@@ -10,7 +10,7 @@ scanner(
1010
options: {
1111
'sonar.projectName': 'SonarScanner for NPM',
1212
'sonar.projectDescription': 'SonarQube/SonarCloud Scanner for the JavaScript world',
13-
'sonar.sources': 'dist',
13+
'sonar.sources': 'src',
1414
'sonar.tests': 'specs'
1515
}
1616
},

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"url": "https://github.com/bellingard/sonar-scanner-npm/issues"
1616
},
1717
"license": "LGPL-3.0",
18-
"main": "dist/index.js",
18+
"main": "src/index.js",
1919
"bin": {
20-
"sonar-scanner": "dist/bin/sonar-scanner"
20+
"sonar-scanner": "src/bin/sonar-scanner"
2121
},
2222
"engines": {
2323
"node": ">= 0.10"

specs/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var assert = require('assert')
2-
var index = require('../dist/index')
2+
var index = require('../src/index')
33

44
describe('fromParam', function() {
55
it('should provide the correct identity', function() {

specs/resources/fake_project_with_basic_package_file/coverage/lcov.info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TN:
2-
SF:E:\work\sonar-scanner-npm\dist\sonarqube-scanner-executable.js
2+
SF:E:\work\sonar-scanner-npm\src\sonarqube-scanner-executable.js
33
FN:22,prepareExecEnvironment
44
FN:56,getSonarQubeScannerExecutable
55
FN:103,(anonymous_2)
@@ -117,7 +117,7 @@ BRF:18
117117
BRH:2
118118
end_of_record
119119
TN:
120-
SF:E:\work\sonar-scanner-npm\dist\sonarqube-scanner-params.js
120+
SF:E:\work\sonar-scanner-npm\src\sonarqube-scanner-params.js
121121
FN:14,defineSonarQubeScannerParams
122122
FN:64,extractInfoFromPackageFile
123123
FNF:2

specs/resources/fake_project_with_jest_report_file/jest-coverage/lcov.info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TN:
2-
SF:E:\work\sonar-scanner-npm\dist\sonarqube-scanner-executable.js
2+
SF:E:\work\sonar-scanner-npm\src\sonarqube-scanner-executable.js
33
FN:22,prepareExecEnvironment
44
FN:56,getSonarQubeScannerExecutable
55
FN:103,(anonymous_2)
@@ -117,7 +117,7 @@ BRF:18
117117
BRH:2
118118
end_of_record
119119
TN:
120-
SF:E:\work\sonar-scanner-npm\dist\sonarqube-scanner-params.js
120+
SF:E:\work\sonar-scanner-npm\src\sonarqube-scanner-params.js
121121
FN:14,defineSonarQubeScannerParams
122122
FN:64,extractInfoFromPackageFile
123123
FNF:2

specs/resources/fake_project_with_nyc_report_file/nyc-coverage/lcov.info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TN:
2-
SF:E:\work\sonar-scanner-npm\dist\sonarqube-scanner-executable.js
2+
SF:E:\work\sonar-scanner-npm\src\sonarqube-scanner-executable.js
33
FN:22,prepareExecEnvironment
44
FN:56,getSonarQubeScannerExecutable
55
FN:103,(anonymous_2)
@@ -117,7 +117,7 @@ BRF:18
117117
BRH:2
118118
end_of_record
119119
TN:
120-
SF:E:\work\sonar-scanner-npm\dist\sonarqube-scanner-params.js
120+
SF:E:\work\sonar-scanner-npm\src\sonarqube-scanner-params.js
121121
FN:14,defineSonarQubeScannerParams
122122
FN:64,extractInfoFromPackageFile
123123
FNF:2

0 commit comments

Comments
 (0)