Skip to content

Commit

Permalink
feat(npm): force logic change
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Jun 25, 2024
1 parent 57ccfea commit 828a25e
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 155 deletions.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
"packages/*"
],
"devDependencies": {
"@nice-move/cli": "^0.11.11",
"@nice-move/eslint-config-base": "^0.11.7",
"@nice-move/prettier-config": "^0.11.3",
"best-shot": "^0.5.6",
"@nice-move/cli": "^0.11.13",
"@nice-move/eslint-config-base": "^0.11.10",
"@nice-move/prettier-config": "^0.12.4",
"best-shot": "^0.5.8",
"eslint": "^8.57.0",
"garou": "^0.7.4",
"prettier": "^3.2.5"
"garou": "^0.7.6",
"prettier": "^3.3.2",
"typescript": "^5.5.2"
},
"peerDependencies": {
"@bring-it/npm": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bring-it/npm",
"version": "0.5.4",
"version": "0.5.5",
"description": "Publish npm packages when needed",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"execa": "^8.0.1",
"ini": "^4.1.2",
"ini": "^4.1.3",
"is-url": "^1.2.4",
"semver": "^7.6.2",
"validate-npm-package-name": "^5.0.1"
Expand Down
3 changes: 2 additions & 1 deletion packages/npm/src/lib/scan.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function Fetch(url, options) {
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort('timeout'), 5000);

// eslint-disable-next-line n/no-unsupported-features/node-builtins
return fetch(url, {
...options,
signal: controller.signal,
Expand Down Expand Up @@ -125,7 +126,7 @@ export async function scan({ force }) {
const list1 = await getLastCommitFiles({ force });
const list2 = await publishReady(list1);
const list3 = force ? list2 : await versionChanged(list2);
const list4 = force ? list3 : await publishable(list3);
const list4 = await publishable(list3);
logger.info(
list4.length > 0 ? list4.length : 'No',
list4.length === 1 ? 'package' : 'packages',
Expand Down
Loading

0 comments on commit 828a25e

Please sign in to comment.