Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,8 @@ jobs:
with:
node-version-file: ".node-version"

- name: install dependencies
run: npm ci

- name: lint
run: npm run lint

- name: prepare
run: npm run prepare

- name: test
run: npm test
- name: build project
run: make ci

- name: conditionally pack
if: ${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
Expand Down
22 changes: 18 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@
all: build

.PHONY: build
build: clean
build: clean install lint-fix prepare build-cli test

.PHONY: ci
ci: install lint prepare build-cli test

.PHONY: install
install:
ifeq ($(CI),true)
npm ci
else
npm install
endif

.PHONY: build-cli
build-cli:
./scripts/build-and-verify.sh
npm run lint
npm run prepare
npm run test

.PHONY: test
test:
Expand All @@ -17,6 +27,10 @@ test:
lint:
npm run lint

.PHONY: prepare
prepare:
npm run prepare

.PHONY: lint-fix
lint-fix:
npm run lint:fix
Expand Down
303 changes: 107 additions & 196 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,16 @@
},
"dependencies": {
"@octokit/rest": "^22.0.1",
"@types/dateformat": "5.0.3",
"ajv": "^8.17.1",
"cachedir": "^2.4.0",
"chalk": "5.6.2",
"execa": "^9.6.0",
"execa": "^9.6.1",
"find-up": "^8.0.0",
"js-yaml": "^4.1.1",
"keytar": "^7.9.0",
"node-fetch": "^3.3.2",
"p-limit": "^7.2.0",
"p-map": "^7.0.4",
"process": "0.11.10",
"read": "^5.0.1",
"semver": "^7.7.3",
"sprintf-js": "^1.1.3",
Expand All @@ -50,6 +48,7 @@
"@rollup/plugin-alias": "6.0.0",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-replace": "6.0.3",
"@types/dateformat": "5.0.3",
"@types/js-yaml": "4.0.9",
"@types/lodash-es": "4.17.12",
"@types/node": "24.10.9",
Expand All @@ -58,11 +57,10 @@
"@types/sprintf-js": "1.1.4",
"@types/yargs": "17.0.35",
"@vitest/coverage-v8": "4.0.17",
"@vitest/ui": "4.0.17",
"dateformat": "5.0.3",
"husky": "9.1.7",
"npm-check-updates": "19.3.1",
"rollup": "4.55.2",
"rollup": "4.56.0",
"rollup-plugin-typescript2": "0.36.0",
"semantic-release": "25.0.2",
"tsx": "4.21.0",
Expand Down
2 changes: 1 addition & 1 deletion src/github/service.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Buffer } from "node:buffer"
import { performance } from "node:perf_hooks"
import * as process from "node:process"
import { Octokit } from "@octokit/rest"
import type { EndpointOptions, OctokitResponse } from "@octokit/types"
import fetch from "node-fetch"
import pLimit, { type LimitFunction } from "p-limit"
import * as process from "process"
import type { CacheProvider } from "../cache"
import type { Config } from "../config"
import { GitHubTokenCliProvider, type GitHubTokenProvider } from "./token"
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const VERSION = version
export * as definition from "./definition"
export * as github from "./github"
export * as snyk from "./snyk"
export * as sonarCloud from "./sonarcloud"
export * from "./testing"
// Consider removing old exports later.
export {
Expand Down
3 changes: 0 additions & 3 deletions src/sonarcloud/index.ts

This file was deleted.

98 changes: 0 additions & 98 deletions src/sonarcloud/service.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/sonarcloud/token.ts

This file was deleted.