Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdk/core/core-http-compat/config/tsconfig.src.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.browser.json",
"include": ["../src/index.ts"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.react-native.json",
"include": ["../src/index.ts"]
}
10 changes: 10 additions & 0 deletions sdk/core/core-http-compat/config/tsconfig.test.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../../eng/tsconfigs/test.browser.json",
"compilerOptions": {
"paths": {
"@azure/core-http-compat": ["../src/index.ts"],
"@azure/core-http-compat/*": ["../src/*"],
"$internal/*": ["../src/*"]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../../eng/tsconfigs/test.react-native.json",
"compilerOptions": {
"paths": {
"@azure/core-http-compat": ["../src/index.ts"],
"@azure/core-http-compat/*": ["../src/*"],
"$internal/*": ["../src/*"]
}
}
}
14 changes: 14 additions & 0 deletions sdk/core/core-http-compat/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default [
...azsdkEslint.config([]),
{
files: ["src/**/*.ts", "src/**/*.mts", "test/**/*.ts"],
languageOptions: {
parserOptions: {
projectService: false,
project: "./config/tsconfig.lint.json",
},
},
},
];
8 changes: 4 additions & 4 deletions sdk/core/core-http-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"engines": {
"node": ">=20.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-http-compat/README.md",
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-compat/",
Comment thread
deyaaeldeen marked this conversation as resolved.
Outdated
"sideEffects": false,
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
"scripts": {
Expand All @@ -66,9 +66,9 @@
"lint": "eslint package.json src test",
"lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion]",
"pack": "pnpm pack 2>&1",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser",
"test:node": "dev-tool run build-test --no-browser-test && dev-tool run test:vitest --no-test-proxy",
"test": "tsc -b --noEmit && npm run test:node && npm run test:browser",
"test:browser": "dev-tool run test:vitest --no-test-proxy --browser",
"test:node": "dev-tool run test:vitest --no-test-proxy",
"update-snippets": "dev-tool run update-snippets"
},
"dependencies": {
Expand Down
10 changes: 0 additions & 10 deletions sdk/core/core-http-compat/tsconfig.browser.config.json

This file was deleted.

20 changes: 8 additions & 12 deletions sdk/core/core-http-compat/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"references": [
{
"path": "./tsconfig.src.json"
},
{
"path": "./tsconfig.samples.json"
},
{
"path": "./tsconfig.test.json"
},
{
"path": "./tsconfig.snippets.json"
}
{ "path": "./config/tsconfig.src.esm.json" },
{ "path": "./config/tsconfig.src.browser.json" },
{ "path": "./config/tsconfig.src.react-native.json" },
{ "path": "./config/tsconfig.src.cjs.json" },
{ "path": "./config/tsconfig.test.node.json" },
{ "path": "./config/tsconfig.test.browser.json" },
{ "path": "./config/tsconfig.test.react-native.json" },
{ "path": "./config/tsconfig.snippets.json" }
],
"files": []
}
8 changes: 0 additions & 8 deletions sdk/core/core-http-compat/tsconfig.samples.json

This file was deleted.

3 changes: 0 additions & 3 deletions sdk/core/core-http-compat/tsconfig.snippets.json

This file was deleted.

3 changes: 0 additions & 3 deletions sdk/core/core-http-compat/tsconfig.src.json

This file was deleted.

14 changes: 0 additions & 14 deletions sdk/core/core-http-compat/tsconfig.test.json

This file was deleted.

10 changes: 0 additions & 10 deletions sdk/core/core-http-compat/tsconfig.test.node.json

This file was deleted.

4 changes: 1 addition & 3 deletions sdk/core/core-http-compat/vitest.browser.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import viteConfig from "../../../vitest.browser.base.config.ts";

export default viteConfig;
export { default } from "../../../eng/vitestconfigs/browser.config.ts";
16 changes: 16 additions & 0 deletions sdk/core/core-http-compat/warp.config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
extends: ../../../warp.base.config.yml

targets:
- name: browser
tsconfig: "./config/tsconfig.src.browser.json"

- name: react-native
tsconfig: "./config/tsconfig.src.react-native.json"

- name: esm
condition: import
tsconfig: "./config/tsconfig.src.esm.json"

- name: commonjs
condition: require
tsconfig: "./config/tsconfig.src.cjs.json"
moduleType: commonjs