Skip to content

Commit b32066c

Browse files
authored
fix sms samples breaking livetest pipeline (Azure#15467)
* fix broken samples * remove unused env var * formatting
1 parent f77c218 commit b32066c

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

sdk/communication/communication-sms/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build:autorest": "autorest ./swagger/README.md --typescript --v3 --package-version=1.0.1 && rushx format",
1616
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
1717
"build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
18-
"build:samples": "echo Obsolete.",
18+
"build:samples": "dev-tool samples publish --force",
1919
"build:test": "tsc -p . && rollup -c rollup.test.config.js 2>&1",
2020
"build": "tsc -p . && rollup -c 2>&1 && api-extractor run --local",
2121
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",

sdk/communication/communication-sms/samples-dev/usingAadAuth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export async function main() {
1919

2020
// You will need to set this environment variable or edit the following values
2121
const endpoint =
22-
process.env.COMMUNICATION_ENDPOINT ||
2322
parseConnectionString(process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING!).endpoint ||
2423
"https://<resource-name>.communication.azure.com";
2524

sdk/communication/communication-sms/samples/v1/javascript/usingAadAuth.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ async function main() {
1919

2020
// You will need to set this environment variable or edit the following values
2121
const endpoint =
22-
process.env.COMMUNICATION_ENDPOINT ||
2322
parseConnectionString(process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING).endpoint ||
2423
"https://<resource-name>.communication.azure.com";
2524

sdk/communication/communication-sms/samples/v1/typescript/src/usingAadAuth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export async function main() {
1919

2020
// You will need to set this environment variable or edit the following values
2121
const endpoint =
22-
process.env.COMMUNICATION_ENDPOINT ||
2322
parseConnectionString(process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING!).endpoint ||
2423
"https://<resource-name>.communication.azure.com";
2524

0 commit comments

Comments
 (0)