Skip to content

Commit 2afaf5f

Browse files
refactor: remove npm workspaces, make each SDK standalone
- Remove root package.json and node_modules - Each SDK is now fully independent with its own dependencies - Contributors can clone and cd into their SDK of choice - Updated CI to use working-directory instead of workspace commands - Added typescript as dev dependency to js-sdk - Updated .gitignore for Java and Ruby artifacts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a46b191 commit 2afaf5f

5 files changed

Lines changed: 44 additions & 8956 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 30 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,31 @@ jobs:
1010
test-js:
1111
name: Test JavaScript SDK
1212
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: packages/js-sdk
1316
steps:
1417
- uses: actions/checkout@v4
1518

1619
- uses: actions/setup-node@v4
1720
with:
1821
node-version: 22
19-
cache: 'npm'
2022

2123
- name: Install dependencies
22-
run: npm ci
24+
run: npm install
2325

2426
- name: Build
25-
run: npm run build -w packages/js-sdk
27+
run: npm run build
2628

2729
- name: Run tests
28-
run: npm test -w packages/js-sdk
30+
run: npm test
2931

3032
test-py:
3133
name: Test Python SDK
3234
runs-on: ubuntu-latest
35+
defaults:
36+
run:
37+
working-directory: packages/py-sdk
3338
strategy:
3439
matrix:
3540
python-version: ['3.9', '3.10', '3.11', '3.12']
@@ -40,21 +45,19 @@ jobs:
4045
uses: actions/setup-python@v5
4146
with:
4247
python-version: ${{ matrix.python-version }}
43-
cache: 'pip'
4448

4549
- name: Install dependencies
46-
run: |
47-
cd packages/py-sdk
48-
pip install -e ".[dev]"
50+
run: pip install -e ".[dev]"
4951

5052
- name: Run tests
51-
run: |
52-
cd packages/py-sdk
53-
pytest -v
53+
run: pytest -v
5454

5555
test-go:
5656
name: Test Go SDK
5757
runs-on: ubuntu-latest
58+
defaults:
59+
run:
60+
working-directory: packages/go-sdk
5861
strategy:
5962
matrix:
6063
go-version: ['1.21', '1.22']
@@ -67,18 +70,17 @@ jobs:
6770
go-version: ${{ matrix.go-version }}
6871

6972
- name: Download dependencies
70-
run: |
71-
cd packages/go-sdk
72-
go mod download
73+
run: go mod download
7374

7475
- name: Run tests
75-
run: |
76-
cd packages/go-sdk
77-
go test -v ./...
76+
run: go test -v ./...
7877

7978
test-dotnet:
8079
name: Test .NET SDK
8180
runs-on: ubuntu-latest
81+
defaults:
82+
run:
83+
working-directory: packages/dotnet-sdk
8284
strategy:
8385
matrix:
8486
dotnet-version: ['6.0', '7.0', '8.0']
@@ -91,23 +93,20 @@ jobs:
9193
dotnet-version: ${{ matrix.dotnet-version }}
9294

9395
- name: Restore dependencies
94-
run: |
95-
cd packages/dotnet-sdk
96-
dotnet restore
96+
run: dotnet restore
9797

9898
- name: Build
99-
run: |
100-
cd packages/dotnet-sdk
101-
dotnet build --no-restore
99+
run: dotnet build --no-restore
102100

103101
- name: Run tests
104-
run: |
105-
cd packages/dotnet-sdk
106-
dotnet test --no-build --verbosity normal
102+
run: dotnet test --no-build --verbosity normal
107103

108104
test-java:
109105
name: Test Java SDK
110106
runs-on: ubuntu-latest
107+
defaults:
108+
run:
109+
working-directory: packages/java-sdk
111110
strategy:
112111
matrix:
113112
java-version: ['11', '17', '21']
@@ -122,13 +121,14 @@ jobs:
122121
cache: 'maven'
123122

124123
- name: Run tests
125-
run: |
126-
cd packages/java-sdk
127-
mvn test -B
124+
run: mvn test -B
128125

129126
test-ruby:
130127
name: Test Ruby SDK
131128
runs-on: ubuntu-latest
129+
defaults:
130+
run:
131+
working-directory: packages/ruby-sdk
132132
strategy:
133133
matrix:
134134
ruby-version: ['3.1', '3.2', '3.3']
@@ -143,23 +143,4 @@ jobs:
143143
working-directory: packages/ruby-sdk
144144

145145
- name: Run tests
146-
run: |
147-
cd packages/ruby-sdk
148-
bundle exec rspec
149-
150-
lint:
151-
name: Lint
152-
runs-on: ubuntu-latest
153-
steps:
154-
- uses: actions/checkout@v4
155-
156-
- uses: actions/setup-node@v4
157-
with:
158-
node-version: 22
159-
cache: 'npm'
160-
161-
- name: Install dependencies
162-
run: npm ci
163-
164-
- name: Build JS SDK
165-
run: npm run build -w packages/js-sdk
146+
run: bundle exec rspec

‎.gitignore‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Dependencies
22
node_modules/
33
.pnpm-store/
4+
package-lock.json
45

56
# Build outputs
67
dist/
@@ -50,3 +51,13 @@ obj/
5051
*.user
5152
*.suo
5253
TestResults/
54+
55+
# Java
56+
target/
57+
*.class
58+
*.jar
59+
60+
# Ruby
61+
*.gem
62+
Gemfile.lock
63+
.bundle/

0 commit comments

Comments
 (0)