Skip to content

Commit 582d3dd

Browse files
fix(cli): publish as sim package
1 parent 8027afc commit 582d3dd

7 files changed

Lines changed: 77 additions & 157 deletions

File tree

.github/workflows/publish-sim-cli.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
env:
122122
VERSION: ${{ steps.release.outputs.version }}
123123
run: |
124-
if bun pm view "@sim/cli@$VERSION" version > /dev/null 2>&1; then
124+
if bun pm view "sim@$VERSION" version > /dev/null 2>&1; then
125125
echo "exists=true" >> "$GITHUB_OUTPUT"
126126
else
127127
echo "exists=false" >> "$GITHUB_OUTPUT"
@@ -140,10 +140,10 @@ jobs:
140140
env:
141141
VERSION: ${{ steps.release.outputs.version }}
142142
NPM_TAG: ${{ steps.release.outputs.tag }}
143-
run: echo "Published @sim/cli@$VERSION with the '$NPM_TAG' tag."
143+
run: echo "Published sim@$VERSION with the '$NPM_TAG' tag."
144144

145145
- name: Summarize skipped release
146146
if: steps.version_check.outputs.exists == 'true'
147147
env:
148148
VERSION: ${{ steps.release.outputs.version }}
149-
run: echo "Skipped @sim/cli@$VERSION because that version is already published."
149+
run: echo "Skipped sim@$VERSION because that version is already published."

.github/workflows/test-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@ jobs:
264264
AWS_REGION: 'us-west-2'
265265
ENCRYPTION_KEY: '7cf672e460e430c1fba707575c2b0e2ad5a99dddf9b7b7e3b5646e630861db1c' # dummy key for CI only
266266
TURBO_CACHE_DIR: .turbo
267-
run: bunx turbo run build --filter=sim
267+
run: bunx turbo run build --filter=@sim/app

apps/sim/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "sim",
2+
"name": "@sim/app",
33
"version": "0.1.0",
44
"private": true,
55
"license": "Apache-2.0",

bun.lock

Lines changed: 66 additions & 146 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sim-cli/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
Talk to the [Sim](https://sim.ai) API from your terminal.
44

55
```bash
6-
npm install --global @sim/cli
6+
npm install --global sim
77
sim login
88
sim workflows list
99
```
1010

1111
Prerelease channels track the corresponding Sim environments:
1212

1313
```bash
14-
npm install --global @sim/cli@preview # staging
15-
npm install --global @sim/cli@dev # dev
14+
npm install --global sim@preview # staging
15+
npm install --global sim@dev # dev
1616
```
1717

1818
## Profiles

packages/sim-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@sim/cli",
3-
"version": "0.1.0",
2+
"name": "sim",
3+
"version": "2.0.0",
44
"description": "Sim CLI - talk to the Sim API from your terminal",
55
"type": "module",
66
"bin": {

packages/sim-cli/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Local copies of the shared helpers.
33
*
4-
* `@sim/utils` is a private workspace package, so a published `@sim/cli`
4+
* `@sim/utils` is a private workspace package, so the published `sim` package
55
* cannot depend on it — importing it would resolve in the monorepo and fail for
66
* anyone installing from npm.
77
*/

0 commit comments

Comments
 (0)