Skip to content

Commit b246a84

Browse files
committed
chore: misc prep for release with ES modules, yargs, and nexe builds
1 parent 979fa2b commit b246a84

File tree

15 files changed

+4119
-7060
lines changed

15 files changed

+4119
-7060
lines changed

.github/workflows/cd.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Node.js
2929
uses: actions/setup-node@v3
3030
with:
31-
node-version: 24.4.1
31+
node-version: 24.8.0
3232

3333
- name: Install Dependencies
3434
run: npm ci
@@ -83,7 +83,7 @@ jobs:
8383
- name: Setup Node.js
8484
uses: actions/setup-node@v3
8585
with:
86-
node-version: 24.4.1
86+
node-version: 24.8.0
8787

8888
- run: npm ci
8989
- run: npm run build
@@ -172,7 +172,7 @@ jobs:
172172
- name: Setup Node.js
173173
uses: actions/setup-node@v3
174174
with:
175-
node-version: 24.4.1
175+
node-version: 24.8.0
176176

177177
- run: npm ci
178178

@@ -187,7 +187,7 @@ jobs:
187187
body_path: ${{ github.workspace }}/RELEASE_NOTES.txt
188188
tag_name: ${{ needs.release.outputs.cli-tag }}
189189
prerelease: false
190-
files: 'packages/cli/dist_bin/**/*.@(tar.gz|zip)'
190+
files: 'packages/cli/dist_bin/**/*.@(tgz|zip)'
191191

192192
homebrew-formula:
193193
needs: [release, github-release]

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fetch-depth: 0
1313
- uses: actions/setup-node@v3
1414
with:
15-
node-version: 24.4.1
15+
node-version: 24.8.0
1616
- run: npm ci
1717
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
1818

@@ -23,7 +23,7 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
# add/remove versions as we move support forward
26-
node-version: [24]
26+
node-version: [24.8.0]
2727
os: [ubuntu-latest, macos-latest, windows-latest]
2828

2929
steps:

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Change Log
22

3+
## 2.0.0
4+
5+
* All commands now have examples in their help (`smartthings <command> --help`).
6+
* args that require enum-like types are now case-insensitive. e.g. You can now list zigbee devices
7+
with `smartthings devices --type zigbee`.
8+
* The config file location is now determined by [envPaths](https://www.npmjs.com/package/env-paths) library
9+
rather than oclif. A reasonable attempt has been made at finding the old config and copying it for
10+
the user so normally no change is needed other than making changes in the new file if necessary.
11+
The `config` command now displays the name of the configuration file.
12+
* Commands that take a capability specification on the command line now get the version from a flag
13+
rather than an argument. e.g. `smartthings capabilities myteam.myCapability --capability-version 1`
14+
instead of `smartthings capabilities myteam.myCapability 1`. Note that the version is always one,
15+
so this flag is not necessary at this time.
16+
* Under-the-hood changes to make the CLI more maintainable.
17+
318
## 1.10.5
419

520
### Patch Changes

README.md

Lines changed: 170 additions & 5721 deletions
Large diffs are not rendered by default.

doc/configuration.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
## Overview
44

5-
The default CLI configuration can be overridden by creating a YAML file called `config.yaml` in the
6-
following location:
5+
The default CLI configuration can be overridden by creating a YAML file called `config.yaml`. The
6+
location of this file varies by operating system. The easiest way to find it is to run `smartthings config`
7+
on your machine and the full filename will be listed.
78

8-
* `$HOME/.config/@smartthings/cli` on MacOS or Linux
9+
* `$HOME$/Library/Preferences/@smartthings/cli` on MacOS
10+
* `$HOME/.config/@smartthings/cli` on Linux
911
* `%LOCALAPPDATA%\@smartthings\cli` on Windows
1012

1113
## Profiles

0 commit comments

Comments
 (0)