Commit e198231
Migrate @azure-rest/batch to import subpath design (#38476)
## Description
Migrates the @azure-rest/batch package to the import subpath design
pattern using `#platform/*` wildcard imports.
### Changes
- Create `config/` directory with tsconfigs extending from
`eng/tsconfigs/`
- Update `warp.config.yml` to extend base and use local tsconfigs
- Remove `polyfillSuffix` in favor of `#platform/*` wildcard imports
- Update `package.json` imports field with browser/react-native mappings
- Update `eslint.config.mjs` with `projectService: false`
- Update `vitest.browser.config.ts` to use
`eng/vitestconfigs/browser.config.ts`
- Delete old root tsconfig files
### Benefits
- Enables proper type separation with no mixing of node/dom/RN types
- Warp now references tsconfigs under the `config/` folder
- Consistent with other migrated packages (identity, storage-common,
etc.)
### Verification
- ✅ Build passes: `pnpm turbo build --filter=@azure-rest/batch...`
- ✅ TypeScript validation passes: `tsc -b --noEmit`
- ✅ Lint passes: `npm run lint`
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c12db0c commit e198231
21 files changed
Lines changed: 58 additions & 69 deletions
File tree
- sdk/batch/batch-rest
- config
- test/browser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
0 commit comments