Skip to content

Commit 6c960ed

Browse files
committed
Refine dry-run condition in npm-publish script for clarity
1 parent dbbefa8 commit 6c960ed

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

npm/README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ This directory contains the npm package structure for distributing the Kosli CLI
77
```
88
npm/
99
├── wrapper/ # @kosli/cli — the package users install
10-
│ ├── package.json # declares optionalDependencies for all platforms
1110
│ ├── bin/kosli # JS shim that detects the platform and runs the binary
12-
│ └── install.js # postinstall script that validates the binary
13-
├── cli-linux-x64/ # @kosli/cli-linux-x64
14-
│ ├── package.json # declares os/cpu fields for platform filtering
15-
│ └── bin/kosli # the native binary — see below
16-
├── cli-linux-arm64/ # @kosli/cli-linux-arm64
17-
│ ├── package.json # declares os/cpu fields for platform filtering
18-
│ └── bin/kosli # the native binary — see below
19-
├── cli-linux-arm/ # @kosli/cli-linux-arm
20-
│ ├── package.json # declares os/cpu fields for platform filtering
21-
│ └── bin/kosli # the native binary — see below
22-
├── cli-darwin-x64/ # @kosli/cli-darwin-x64
23-
│ ├── package.json # declares os/cpu fields for platform filtering
24-
│ └── bin/kosli # the native binary — see below
11+
│ ├── install.js # postinstall script that validates the binary
12+
│ └── package.json # declares optionalDependencies for all platforms
2513
├── cli-darwin-arm64/ # @kosli/cli-darwin-arm64
26-
│ ├── package.json # declares os/cpu fields for platform filtering
27-
│ └── bin/kosli # the native binary — see below
28-
├── cli-win32-x64/ # @kosli/cli-win32-x64
29-
│ ├── package.json # declares os/cpu fields for platform filtering
30-
│ └── bin/kosli[.exe] # the native binary — see below
31-
└── cli-win32-arm64/ # @kosli/cli-win32-arm64
32-
├── package.json # declares os/cpu fields for platform filtering
33-
└── bin/kosli[.exe] # the native binary — see below
14+
│ ├── bin/kosli # the native binary — see below
15+
│ └── package.json # declares os/cpu fields for platform filtering
16+
├── cli-darwin-x64/ # @kosli/cli-darwin-x64
17+
│ ├── bin/kosli # the native binary — see below
18+
│ └── package.json # declares os/cpu fields for platform filtering
19+
├── cli-linux-arm/ # @kosli/cli-linux-arm
20+
│ ├── bin/kosli # the native binary — see below
21+
│ └── package.json # declares os/cpu fields for platform filtering
22+
├── cli-linux-arm64/ # @kosli/cli-linux-arm64
23+
│ ├── bin/kosli # the native binary — see below
24+
│ └── package.json # declares os/cpu fields for platform filtering
25+
├── cli-linux-x64/ # @kosli/cli-linux-x64
26+
│ ├── bin/kosli # the native binary — see below
27+
│ └── package.json # declares os/cpu fields for platform filtering
28+
├── cli-win32-arm64/ # @kosli/cli-win32-arm64
29+
│ ├── bin/kosli.exe # the native binary — see below
30+
│ └── package.json # declares os/cpu fields for platform filtering
31+
└── cli-win32-x64/ # @kosli/cli-win32-x64
32+
├── bin/kosli.exe # the native binary — see below
33+
└── package.json # declares os/cpu fields for platform filtering
3434
```
3535

3636
## How it works

scripts/npm-publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fi
99

1010
# When called from goreleaser, $2 is "--dry-run" if snapshot build
1111
DRY_RUN=false
12-
if [ "$2" = "true" ] || [ "$2" = "--dry-run" ]; then
12+
if [ "$2" = "--dry-run" ]; then
1313
echo "Running in DRY-RUN mode. Packages will be created but not published."
1414
DRY_RUN=true
1515
fi

0 commit comments

Comments
 (0)