Skip to content

Commit

Permalink
Refactor and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sineverba committed Feb 23, 2023
1 parent ec85056 commit c455176
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ npm-debug.log
.nyc_output
.scannerwork/
data/
lib/
lib/
dist/
3 changes: 1 addition & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ blocks:
commands:
- checkout
- cache restore
- npm run coverage
jobs:
- name: Coverage
commands:
- export COVERALLS_REPO_TOKEN=$COVERALLS_NPM_PKG_SHORTFIELD
- npm run cover
- cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js
- name: Sonarcloud
commands:
- npm run cover
- >-
docker run
--rm
Expand Down
7 changes: 4 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
sonar.projectKey=npm-pkg-shortfield
sonar.projectVersion=1.2.0
sonar.organization=sineverba
sonar.sources=./index.js
sonar.exclusions=test/**
sonar.tests=test
sonar.sources=src
sonar.exclusions=**/node_modules/**,src/__tests__/**
sonar.tests=src/__tests__
sonar.test.exclusions=src/__tests__/**/*
sonar.javascript.lcov.reportPaths=coverage/lcov.info
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"target": "es5",
"module": "commonjs",
"declaration": true,
"outDir": "./lib",
"outDir": "./dist",
"strict": true
},
"include": ["src"],
Expand Down

0 comments on commit c455176

Please sign in to comment.