Skip to content

Commit 0be0b36

Browse files
authored
chore(scripts): add type symbols to api snapshot (#2004)
1 parent cad44fc commit 0be0b36

32 files changed

Lines changed: 1691 additions & 832 deletions

File tree

.changeset/fifty-buses-smell.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
"@smithy/eventstream-serde-universal": patch
3+
"@smithy/util-defaults-mode-browser": patch
4+
"@smithy/eventstream-serde-browser": patch
5+
"@smithy/util-defaults-mode-node": patch
6+
"@smithy/eventstream-serde-node": patch
7+
"@smithy/shared-ini-file-loader": patch
8+
"@smithy/middleware-endpoint": patch
9+
"@smithy/eventstream-codec": patch
10+
"@smithy/property-provider": patch
11+
"@smithy/middleware-retry": patch
12+
"@smithy/middleware-serde": patch
13+
"@smithy/util-buffer-from": patch
14+
"@smithy/config-resolver": patch
15+
"@smithy/util-endpoints": patch
16+
"@smithy/protocol-http": patch
17+
"@smithy/smithy-client": patch
18+
"@smithy/signature-v4": patch
19+
"@smithy/util-stream": patch
20+
"@smithy/util-waiter": patch
21+
"@smithy/util-retry": patch
22+
"@smithy/util-utf8": patch
23+
"@smithy/core": patch
24+
---
25+
26+
clean up exported API surface

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ jobs:
117117
run: |
118118
yarn
119119
yarn turbo telemetry disable
120-
- name: Build packages
121-
run: node ./scripts/retry -- yarn build
120+
- name: Build and validate API snapshot
121+
run: node ./scripts/retry -- make api-snapshot
122122
- name: Run unit tests
123123
run: node ./scripts/retry -- yarn test
124124
- name: Run integration tests

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build sync
1+
.PHONY: build sync api-snapshot
22

33
build:
44
./gradlew clean build publishToMavenLocal
@@ -55,7 +55,6 @@ test-types:
5555

5656
test-integration:
5757
node ./scripts/validation/no-generic-byte-arrays.js;
58-
node ./scripts/validation/api-snapshot-validation.js;
5958
node ./scripts/check-dependencies.js;
6059
node ./scripts/runtime-dep-version-check.js;
6160
make test-browser;
@@ -66,4 +65,9 @@ test-integration:
6665
turbo-clean:
6766
@read -p "Are you sure you want to delete your local cache? [y/N]: " ans && [ $${ans:-N} = y ]
6867
@echo "\nDeleted cache folders: \n--------"
69-
@find . -name '.turbo' -type d -prune -print -exec rm -rf '{}' + && echo '\n'
68+
@find . -name '.turbo' -type d -prune -print -exec rm -rf '{}' + && echo '\n'
69+
70+
api-snapshot:
71+
yarn build
72+
node scripts/validation/api-snapshot-validation.js --write
73+
git diff --exit-code api-snapshot/

0 commit comments

Comments
 (0)