Skip to content

Commit

Permalink
[dev-tool] fix samples typescript source to include sub directory (#3…
Browse files Browse the repository at this point in the history
…0024)

Sample source structure used to be flat but later nested directories are
supported as well. This PR fix the glob pattern to also include sub
directories.

- also re-publish samples for @Azure/service-bus

I didn't update all the other samples as there are no complaints. They
can get new update in their next publish.
  • Loading branch information
jeremymeng authored Jun 14, 2024
1 parent 1b5e3a2 commit e798d47
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion common/tools/dev-tool/src/util/samples/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const DEFAULT_TYPESCRIPT_CONFIG = {
outDir: "dist",
rootDir: "src",
},
include: ["src/**.ts"],
include: ["src/**/*.ts"],
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"rootDir": "src"
},
"include": [
"src/**.ts"
"src/**/*.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"rootDir": "src"
},
"include": [
"src/**.ts"
"src/**/*.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"rootDir": "src"
},
"include": [
"src/**.ts"
"src/**/*.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"rootDir": "src"
},
"include": [
"src/**.ts"
"src/**/*.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"rootDir": "src"
},
"include": [
"src/**.ts"
"src/**/*.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
*/

const { ServiceBusClient, delay, isServiceBusError } = require("@azure/service-bus");
const dotenv = require("dotenv");
const { AbortController } = require("@azure/abort-controller");

dotenv.config();
require("dotenv").config();

const serviceBusConnectionString =
process.env.SERVICEBUS_CONNECTION_STRING || "<connection string>";
Expand Down
5 changes: 2 additions & 3 deletions sdk/servicebus/service-bus/samples/v7/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"dotenv": "latest",
"ws": "^8.0.0",
"https-proxy-agent": "^7.0.0",
"@azure/identity": "^4.2.1",
"@azure/core-auth": "^1.3.0",
"@azure/abort-controller": "^2.1.2"
"@azure/identity": "^4.0.1",
"@azure/core-auth": "^1.3.0"
}
}
5 changes: 2 additions & 3 deletions sdk/servicebus/service-bus/samples/v7/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
"dotenv": "latest",
"ws": "^8.0.0",
"https-proxy-agent": "^7.0.0",
"@azure/identity": "^4.2.1",
"@azure/core-auth": "^1.3.0",
"@azure/abort-controller": "^2.1.2"
"@azure/identity": "^4.0.1",
"@azure/core-auth": "^1.3.0"
},
"devDependencies": {
"@types/ws": "^7.2.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"rootDir": "src"
},
"include": [
"src/**.ts"
"src/**/*.ts"
]
}

0 comments on commit e798d47

Please sign in to comment.