Skip to content

Commit

Permalink
[core-amqp] Move to ESM/vitest (#29303)
Browse files Browse the repository at this point in the history
### Packages impacted by this PR

- @azure/core-amqp

### Describe the problem that is addressed by this PR

Moves `@azure/core-amqp` to ESM via `tshy` and unit tests from `mocha`
to `vitest`.

---------

Co-authored-by: Jeff Fisher <jeffish@microsoft.com>
Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
  • Loading branch information
3 people authored May 6, 2024
1 parent 099b1d4 commit 99026aa
Show file tree
Hide file tree
Showing 48 changed files with 806 additions and 674 deletions.
80 changes: 76 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion sdk/core/core-amqp/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"plugins": ["@azure/azure-sdk"],
"extends": ["plugin:@azure/azure-sdk/azure-sdk-base"],
"rules": {
"@typescript-eslint/no-duplicate-enum-values": "warn"
"@typescript-eslint/no-duplicate-enum-values": "warn",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"@azure/azure-sdk/ts-package-json-module": "off",
"@azure/azure-sdk/ts-package-json-types": "off"
}
}
8 changes: 8 additions & 0 deletions sdk/core/core-amqp/.tshy/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "../src",
"module": "nodenext",
"moduleResolution": "nodenext"
}
}
14 changes: 14 additions & 0 deletions sdk/core/core-amqp/.tshy/commonjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.cts",
"../src/**/*.tsx"
],
"exclude": [
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build/commonjs"
}
}
12 changes: 12 additions & 0 deletions sdk/core/core-amqp/.tshy/esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build/esm"
}
}
11 changes: 4 additions & 7 deletions sdk/core/core-amqp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Release History

## 4.2.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
## 4.3.0 (Unreleased)

### Other Changes

- Moved to ESM core with builds for ESM, CommonJS, React-Native and Browser.
- Moved unit tests from mocha to vitest.

## 4.2.2 (2024-05-02)

### Bugs Fixed
Expand Down
4 changes: 2 additions & 2 deletions sdk/core/core-amqp/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "types/src/index.d.ts",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/latest/core-amqp.d.ts"
"publicTrimmedFilePath": "./dist/core-amqp.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand Down
73 changes: 0 additions & 73 deletions sdk/core/core-amqp/karma.conf.js

This file was deleted.

Loading

0 comments on commit 99026aa

Please sign in to comment.