Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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/batch/batch-rest/config/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
Comment thread
deyaaeldeen marked this conversation as resolved.
"include": ["../src", "../test", "../samples-dev", "../package.json"]
}
3 changes: 3 additions & 0 deletions sdk/batch/batch-rest/config/tsconfig.samples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/samples.json"
}
3 changes: 3 additions & 0 deletions sdk/batch/batch-rest/config/tsconfig.snippets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/snippets.json"
}
3 changes: 3 additions & 0 deletions sdk/batch/batch-rest/config/tsconfig.src.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/src.browser.json"
}
3 changes: 3 additions & 0 deletions sdk/batch/batch-rest/config/tsconfig.src.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/src.cjs.json"
}
3 changes: 3 additions & 0 deletions sdk/batch/batch-rest/config/tsconfig.src.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/src.esm.json"
}
3 changes: 3 additions & 0 deletions sdk/batch/batch-rest/config/tsconfig.src.react-native.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/src.react-native.json"
}
3 changes: 3 additions & 0 deletions sdk/batch/batch-rest/config/tsconfig.test.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/test.browser.json"
Comment thread
deyaaeldeen marked this conversation as resolved.
}
3 changes: 3 additions & 0 deletions sdk/batch/batch-rest/config/tsconfig.test.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/test.node.json"
}
6 changes: 6 additions & 0 deletions sdk/batch/batch-rest/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ export default azsdkEslint.config([
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn",
},
languageOptions: {
parserOptions: {
projectService: false,
project: "./config/tsconfig.lint.json",
},
},
},
]);
17 changes: 9 additions & 8 deletions sdk/batch/batch-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,19 @@
},
"scripts": {
"build": "npm run clean && dev-tool run build-package && npm run extract-api",
"build:samples": "tsc -p tsconfig.samples.json",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
"build:samples": "tsc -p config/tsconfig.samples.json",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"samples-dev/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
"clean": "rimraf --glob dist dist-browser dist-esm dist-test temp types *.tgz *.log",
"execute:samples": "echo skipped",
"extract-api": "rimraf review && dev-tool run extract-api",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"samples-dev/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
"generate:client": "echo skipped",
"lint": "eslint package.json src test",
"lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion]",
"lint": "eslint package.json src test samples-dev",
"lint:fix": "eslint package.json src test samples-dev --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 --browser",
"test": "tsc -b --noEmit && npm run test:node && npm run test:browser",
"test:browser": "dev-tool run test:vitest --browser",
"test:node": "dev-tool run test:vitest",
"test:node:esm": "dev-tool run test:vitest --esm",
"update-snippets": "dev-tool run update-snippets"
},
"exports": {
Expand Down Expand Up @@ -130,6 +129,8 @@
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/batch-rest/README.md",
"imports": {
"#platform/*": {
"browser": "./src/*-browser.mts",
"react-native": "./src/*-react-native.mts",
"default": "./src/*.ts"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { createBatchSharedKeyCredentialsPolicy } from "../../src/credentials/batchSharedKeyCredentials.js";
import { createBatchSharedKeyCredentialsPolicy } from "#platform/credentials/batchSharedKeyCredentials";
import { AzureNamedKeyCredential } from "@azure/core-auth";
import { describe, expect, it } from "vitest";

Expand Down
10 changes: 0 additions & 10 deletions sdk/batch/batch-rest/tsconfig.browser.config.json

This file was deleted.

20 changes: 8 additions & 12 deletions sdk/batch/batch-rest/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.cjs.json" },
{ "path": "./config/tsconfig.src.browser.json" },
{ "path": "./config/tsconfig.src.react-native.json" },
{ "path": "./config/tsconfig.test.node.json" },
{ "path": "./config/tsconfig.test.browser.json" },
{ "path": "./config/tsconfig.samples.json" },
{ "path": "./config/tsconfig.snippets.json" }
],
"files": []
}
8 changes: 0 additions & 8 deletions sdk/batch/batch-rest/tsconfig.samples.json

This file was deleted.

3 changes: 0 additions & 3 deletions sdk/batch/batch-rest/tsconfig.snippets.json

This file was deleted.

3 changes: 0 additions & 3 deletions sdk/batch/batch-rest/tsconfig.src.json

This file was deleted.

3 changes: 0 additions & 3 deletions sdk/batch/batch-rest/tsconfig.test.json

This file was deleted.

10 changes: 0 additions & 10 deletions sdk/batch/batch-rest/tsconfig.test.node.json

This file was deleted.

3 changes: 1 addition & 2 deletions sdk/batch/batch-rest/vitest.browser.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

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

import { defineConfig, mergeConfig } from "vitest/config";
import viteConfig from "../../../eng/vitestconfigs/browser.config.ts";

export default mergeConfig(
viteConfig,
Expand Down
14 changes: 5 additions & 9 deletions sdk/batch/batch-rest/warp.config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
# warp.config.yml — @azure-rest/batch build configuration

exports:
"./package.json": "./package.json"
".": "./src/index.ts"
extends: ../../../warp.base.config.yml

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

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

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

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