Skip to content

Commit

Permalink
Merge pull request #119 from koliveira15/bugfix/missing-license-scan-dep
Browse files Browse the repository at this point in the history
bugfix: make sonarqube dependency less strict & include license in the build
  • Loading branch information
koliveira15 authored Nov 12, 2024
2 parents 991ee6b + d2d771a commit 22f9963
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Kevin Oliveira
Copyright (c) 2024 Kevin Oliveira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"sharedGlobals": ["{workspaceRoot}/.github/workflows/ci.yml"],
"production": [
"default",
"{workspaceRoot}/LICENSE",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/nx-sonarqube/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@koliveira15/nx-sonarqube",
"license": "MIT",
"description": "A Nx plugin that scans projects using SonarQube / SonarCloud.",
"repository": {
"type": "git",
Expand All @@ -13,7 +14,7 @@
"peerDependencies": {
"@nx/devkit": ">= 16 < 20",
"@phenomnomnominal/tsquery": "5.0.1",
"sonarqube-scanner": "3.1.0",
"sonarqube-scanner": ">= 3.1.0 < 4",
"nx": ">= 16 < 20",
"tslib": ">= 2.3.0 < 3"
}
Expand Down
1 change: 1 addition & 0 deletions packages/nx-sonarqube/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"tsConfig": "packages/nx-sonarqube/tsconfig.lib.json",
"assets": [
"packages/nx-sonarqube/*.md",
"LICENSE",
{
"input": "./packages/nx-sonarqube/src",
"glob": "**/!(*.ts)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {
readJsonFile,
} from '@nx/devkit';
import * as sonarQubeScanner from 'sonarqube-scanner';
import * as childProcess from 'child_process';
import * as fs from 'fs';
import { getScannerOptions } from './utils/utils';

let projectGraph: ProjectGraph;
let context: ExecutorContext;
Expand Down
1 change: 0 additions & 1 deletion packages/nx-sonarqube/src/executors/scan/executor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
readJsonFile,
} from '@nx/devkit';
import * as sonarQubeScanner from 'sonarqube-scanner';
import * as childProcess from 'child_process';
import * as fs from 'fs';
import { getScannerOptions } from './utils/utils';

Expand Down

0 comments on commit 22f9963

Please sign in to comment.