This commit is contained in:
Jiao Di (MSFT) 2024-07-01 16:22:03 +08:00
Родитель ef1472c9b5
Коммит b0c674bb90
10 изменённых файлов: 752 добавлений и 49 удалений

Просмотреть файл

@ -0,0 +1,12 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build/browser"
}
}

Просмотреть файл

@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "../src",
"target": "es2022",
"module": "nodenext",
"moduleResolution": "nodenext"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.cts",
"../src/**/*.tsx"
],
"exclude": [
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build/commonjs"
}
}

Просмотреть файл

@ -0,0 +1,12 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build/esm"
}
}

Просмотреть файл

@ -0,0 +1,12 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build/react-native"
}
}

Просмотреть файл

@ -12,29 +12,33 @@
"./package.json": "./package.json",
".": "./src/index.ts"
},
"dialects": ["esm", "commonjs"],
"esmDialects": ["browser", "react-native"],
"dialects": [
"esm",
"commonjs"
],
"esmDialects": [
"browser",
"react-native"
],
"selfLink": false
},
"type": "module",
"keywords": ["node", "azure", "cloud", "typescript", "browser", "isomorphic"],
"keywords": [
"node",
"azure",
"cloud",
"typescript",
"browser",
"isomorphic"
],
"author": "Microsoft Corporation",
"license": "MIT",
"files": ["dist", "README.md", "LICENSE", "review/*"],
"sdk-type": "client",
"repository": "github:Azure/azure-sdk-for-js",
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
"//metadata": {
"constantPaths": [
{
"path": "src/microsoftPlaywrightTesting.ts",
"prefix": "package-version"
}
]
},
"files": [
"dist",
"README.md",
"LICENSE",
"review/*"
],
"dependencies": {
"@azure-rest/core-client": "^2.1.0",
"@azure/core-auth": "^1.6.0",
@ -52,31 +56,39 @@
"rimraf": "^5.0.5",
"mkdirp": "^3.0.1",
"typescript": "~5.4.5",
"tshy": "^1.11.1",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
"tshy": "1.11.1"
},
"scripts": {
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api",
"extract-api": "rimraf review && mkdirp ./review && api-extractor run --local",
"pack": "npm pack 2>&1",
"lint": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts",
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts --fix --fix-type [problem,suggestion]",
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
"build:samples": "dev-tool samples publish --force",
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
"execute:samples": "dev-tool samples run samples-dev",
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"generate:client": "echo skipped",
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"build:test": "npm run clean && tshy && dev-tool run build-test",
"build": "npm run clean && tshy && mkdirp ./review && dev-tool run extract-api",
"test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node",
"test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
"unit-test:node": "dev-tool run test:vitest"
}
"lint": "eslint package.json api-extractor.json src --ext .ts",
"lint:fix": "eslint package.json api-extractor.json src --ext .ts --fix --fix-type [problem,suggestion]",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"",
"build": "npm run clean && tshy && npm run extract-api"
},
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts"
}

Просмотреть файл

@ -0,0 +1,504 @@
## API Report File for "@azure-rest/microsoft-playwright-testing"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { Client } from '@azure-rest/core-client';
import { ClientOptions } from '@azure-rest/core-client';
import { ErrorResponse } from '@azure-rest/core-client';
import { HttpResponse } from '@azure-rest/core-client';
import { Paged } from '@azure/core-paging';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PathUncheckedResponse } from '@azure-rest/core-client';
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
import { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
import { RequestParameters } from '@azure-rest/core-client';
import { StreamableMethod } from '@azure-rest/core-client';
import { TokenCredential } from '@azure/core-auth';
// @public
export interface AccessToken {
expiryAt: Date | string;
name: string;
}
// @public
export interface AccessTokenOutput {
readonly createdAt: string;
expiryAt: string;
readonly id: string;
readonly jwtToken?: string;
name: string;
readonly state: AccessTokenStateOutput;
}
// @public (undocumented)
export interface AccessTokensCreate {
delete(options?: AccessTokensDeleteParameters): StreamableMethod<AccessTokensDelete204Response | AccessTokensDeleteDefaultResponse>;
get(options?: AccessTokensGetParameters): StreamableMethod<AccessTokensGet200Response | AccessTokensGetDefaultResponse>;
put(options: AccessTokensCreateParameters): StreamableMethod<AccessTokensCreate200Response | AccessTokensCreate201Response | AccessTokensCreateDefaultResponse>;
}
// @public (undocumented)
export interface AccessTokensCreate200Headers {
"x-ms-client-request-id"?: string;
}
// @public
export interface AccessTokensCreate200Response extends HttpResponse {
// (undocumented)
body: AccessTokenOutput;
// (undocumented)
headers: RawHttpHeaders & AccessTokensCreate200Headers;
// (undocumented)
status: "200";
}
// @public (undocumented)
export interface AccessTokensCreate201Headers {
"x-ms-client-request-id"?: string;
}
// @public
export interface AccessTokensCreate201Response extends HttpResponse {
// (undocumented)
body: AccessTokenOutput;
// (undocumented)
headers: RawHttpHeaders & AccessTokensCreate201Headers;
// (undocumented)
status: "201";
}
// @public (undocumented)
export interface AccessTokensCreateBodyParam {
body: AccessToken;
}
// @public (undocumented)
export interface AccessTokensCreateDefaultHeaders {
"x-ms-error-code"?: string;
}
// @public (undocumented)
export interface AccessTokensCreateDefaultResponse extends HttpResponse {
// (undocumented)
body: ErrorResponse;
// (undocumented)
headers: RawHttpHeaders & AccessTokensCreateDefaultHeaders;
// (undocumented)
status: string;
}
// @public (undocumented)
export interface AccessTokensCreateHeaderParam {
// (undocumented)
headers?: RawHttpHeadersInput & AccessTokensCreateHeaders;
}
// @public (undocumented)
export interface AccessTokensCreateHeaders {
"x-ms-client-request-id"?: string;
}
// @public (undocumented)
export type AccessTokensCreateParameters = AccessTokensCreateHeaderParam & AccessTokensCreateBodyParam & RequestParameters;
// @public (undocumented)
export interface AccessTokensDelete204Headers {
"x-ms-client-request-id"?: string;
}
// @public
export interface AccessTokensDelete204Response extends HttpResponse {
// (undocumented)
headers: RawHttpHeaders & AccessTokensDelete204Headers;
// (undocumented)
status: "204";
}
// @public (undocumented)
export interface AccessTokensDeleteDefaultHeaders {
"x-ms-error-code"?: string;
}
// @public (undocumented)
export interface AccessTokensDeleteDefaultResponse extends HttpResponse {
// (undocumented)
body: ErrorResponse;
// (undocumented)
headers: RawHttpHeaders & AccessTokensDeleteDefaultHeaders;
// (undocumented)
status: string;
}
// @public (undocumented)
export interface AccessTokensDeleteHeaderParam {
// (undocumented)
headers?: RawHttpHeadersInput & AccessTokensDeleteHeaders;
}
// @public (undocumented)
export interface AccessTokensDeleteHeaders {
"x-ms-client-request-id"?: string;
}
// @public (undocumented)
export type AccessTokensDeleteParameters = AccessTokensDeleteHeaderParam & RequestParameters;
// @public (undocumented)
export interface AccessTokensGet200Headers {
"x-ms-client-request-id"?: string;
}
// @public
export interface AccessTokensGet200Response extends HttpResponse {
// (undocumented)
body: AccessTokenOutput;
// (undocumented)
headers: RawHttpHeaders & AccessTokensGet200Headers;
// (undocumented)
status: "200";
}
// @public (undocumented)
export interface AccessTokensGetDefaultHeaders {
"x-ms-error-code"?: string;
}
// @public (undocumented)
export interface AccessTokensGetDefaultResponse extends HttpResponse {
// (undocumented)
body: ErrorResponse;
// (undocumented)
headers: RawHttpHeaders & AccessTokensGetDefaultHeaders;
// (undocumented)
status: string;
}
// @public (undocumented)
export interface AccessTokensGetHeaderParam {
// (undocumented)
headers?: RawHttpHeadersInput & AccessTokensGetHeaders;
}
// @public (undocumented)
export interface AccessTokensGetHeaders {
"x-ms-client-request-id"?: string;
}
// @public (undocumented)
export type AccessTokensGetParameters = AccessTokensGetHeaderParam & RequestParameters;
// @public (undocumented)
export interface AccessTokensList {
get(options?: AccessTokensListParameters): StreamableMethod<AccessTokensList200Response | AccessTokensListDefaultResponse>;
}
// @public (undocumented)
export interface AccessTokensList200Headers {
"x-ms-client-request-id"?: string;
}
// @public
export interface AccessTokensList200Response extends HttpResponse {
// (undocumented)
body: PagedAccessTokenOutput;
// (undocumented)
headers: RawHttpHeaders & AccessTokensList200Headers;
// (undocumented)
status: "200";
}
// @public (undocumented)
export interface AccessTokensListDefaultHeaders {
"x-ms-error-code"?: string;
}
// @public (undocumented)
export interface AccessTokensListDefaultResponse extends HttpResponse {
// (undocumented)
body: ErrorResponse;
// (undocumented)
headers: RawHttpHeaders & AccessTokensListDefaultHeaders;
// (undocumented)
status: string;
}
// @public (undocumented)
export interface AccessTokensListHeaderParam {
// (undocumented)
headers?: RawHttpHeadersInput & AccessTokensListHeaders;
}
// @public (undocumented)
export interface AccessTokensListHeaders {
"x-ms-client-request-id"?: string;
}
// @public (undocumented)
export type AccessTokensListParameters = AccessTokensListHeaderParam & RequestParameters;
// @public
export type AccessTokenState = string;
// @public
export type AccessTokenStateOutput = string;
// @public (undocumented)
export interface AccessTokensValidate {
post(options?: AccessTokensValidateParameters): StreamableMethod<AccessTokensValidate200Response | AccessTokensValidateDefaultResponse>;
}
// @public (undocumented)
export interface AccessTokensValidate200Headers {
"x-ms-client-request-id"?: string;
}
// @public
export interface AccessTokensValidate200Response extends HttpResponse {
// (undocumented)
headers: RawHttpHeaders & AccessTokensValidate200Headers;
// (undocumented)
status: "200";
}
// @public (undocumented)
export interface AccessTokensValidateDefaultHeaders {
"x-ms-error-code"?: string;
}
// @public (undocumented)
export interface AccessTokensValidateDefaultResponse extends HttpResponse {
// (undocumented)
body: ErrorResponse;
// (undocumented)
headers: RawHttpHeaders & AccessTokensValidateDefaultHeaders;
// (undocumented)
status: string;
}
// @public (undocumented)
export interface AccessTokensValidateHeaderParam {
// (undocumented)
headers?: RawHttpHeadersInput & AccessTokensValidateHeaders;
}
// @public (undocumented)
export interface AccessTokensValidateHeaders {
"x-ms-client-request-id"?: string;
}
// @public (undocumented)
export type AccessTokensValidateParameters = AccessTokensValidateHeaderParam & RequestParameters;
// @public
export interface AccountOutput {
readonly id: string;
readonly location: string;
readonly name: string;
readonly regionalAffinity?: EnablementStatusOutput;
readonly reporting?: EnablementStatusOutput;
readonly resourceId: string;
readonly scalableExecution?: EnablementStatusOutput;
readonly state: AccountStateOutput;
readonly subscriptionId: string;
readonly subscriptionState: SubscriptionStateOutput;
readonly tenantId: string;
}
// @public (undocumented)
export interface AccountsGet {
get(options?: AccountsGetParameters): StreamableMethod<AccountsGet200Response | AccountsGetDefaultResponse>;
}
// @public (undocumented)
export interface AccountsGet200Headers {
"x-ms-client-request-id"?: string;
}
// @public
export interface AccountsGet200Response extends HttpResponse {
// (undocumented)
body: AccountOutput;
// (undocumented)
headers: RawHttpHeaders & AccountsGet200Headers;
// (undocumented)
status: "200";
}
// @public (undocumented)
export interface AccountsGetBrowsers {
get(options?: AccountsGetBrowsersParameters): StreamableMethod<AccountsGetBrowsers302Response | AccountsGetBrowsersDefaultResponse>;
}
// @public (undocumented)
export interface AccountsGetBrowsers302Headers {
"x-ms-client-request-id"?: string;
location: string;
}
// @public
export interface AccountsGetBrowsers302Response extends HttpResponse {
// (undocumented)
headers: RawHttpHeaders & AccountsGetBrowsers302Headers;
// (undocumented)
status: "302";
}
// @public (undocumented)
export interface AccountsGetBrowsersDefaultHeaders {
"x-ms-error-code"?: string;
}
// @public (undocumented)
export interface AccountsGetBrowsersDefaultResponse extends HttpResponse {
// (undocumented)
body: ErrorResponse;
// (undocumented)
headers: RawHttpHeaders & AccountsGetBrowsersDefaultHeaders;
// (undocumented)
status: string;
}
// @public (undocumented)
export interface AccountsGetBrowsersHeaderParam {
// (undocumented)
headers?: RawHttpHeadersInput & AccountsGetBrowsersHeaders;
}
// @public (undocumented)
export interface AccountsGetBrowsersHeaders {
"x-ms-client-request-id"?: string;
}
// @public (undocumented)
export type AccountsGetBrowsersParameters = AccountsGetBrowsersQueryParam & AccountsGetBrowsersHeaderParam & RequestParameters;
// @public (undocumented)
export interface AccountsGetBrowsersQueryParam {
// (undocumented)
queryParameters?: AccountsGetBrowsersQueryParamProperties;
}
// @public (undocumented)
export interface AccountsGetBrowsersQueryParamProperties {
os?: Os;
runId?: string;
}
// @public (undocumented)
export interface AccountsGetDefaultHeaders {
"x-ms-error-code"?: string;
}
// @public (undocumented)
export interface AccountsGetDefaultResponse extends HttpResponse {
// (undocumented)
body: ErrorResponse;
// (undocumented)
headers: RawHttpHeaders & AccountsGetDefaultHeaders;
// (undocumented)
status: string;
}
// @public (undocumented)
export interface AccountsGetHeaderParam {
// (undocumented)
headers?: RawHttpHeadersInput & AccountsGetHeaders;
}
// @public (undocumented)
export interface AccountsGetHeaders {
"x-ms-client-request-id"?: string;
}
// @public (undocumented)
export type AccountsGetParameters = AccountsGetHeaderParam & RequestParameters;
// @public
export type AccountStateOutput = string;
// @public
function createClient(endpointParam: string, credentials: TokenCredential, { apiVersion, ...options }?: MicrosoftPlaywrightTestingClientOptions): MicrosoftPlaywrightTestingClient;
export default createClient;
// @public
export type EnablementStatusOutput = string;
// @public
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
// @public
export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
page: TPage;
nextPageLink?: string;
}>;
// @public (undocumented)
export function isUnexpected(response: AccessTokensCreate200Response | AccessTokensCreate201Response | AccessTokensCreateDefaultResponse): response is AccessTokensCreateDefaultResponse;
// @public (undocumented)
export function isUnexpected(response: AccessTokensGet200Response | AccessTokensGetDefaultResponse): response is AccessTokensGetDefaultResponse;
// @public (undocumented)
export function isUnexpected(response: AccessTokensDelete204Response | AccessTokensDeleteDefaultResponse): response is AccessTokensDeleteDefaultResponse;
// @public (undocumented)
export function isUnexpected(response: AccessTokensList200Response | AccessTokensListDefaultResponse): response is AccessTokensListDefaultResponse;
// @public (undocumented)
export function isUnexpected(response: AccessTokensValidate200Response | AccessTokensValidateDefaultResponse): response is AccessTokensValidateDefaultResponse;
// @public (undocumented)
export function isUnexpected(response: AccountsGet200Response | AccountsGetDefaultResponse): response is AccountsGetDefaultResponse;
// @public (undocumented)
export function isUnexpected(response: AccountsGetBrowsers302Response | AccountsGetBrowsersDefaultResponse): response is AccountsGetBrowsersDefaultResponse;
// @public (undocumented)
export type MicrosoftPlaywrightTestingClient = Client & {
path: Routes;
};
// @public
export interface MicrosoftPlaywrightTestingClientOptions extends ClientOptions {
apiVersion?: string;
}
// @public
export type Os = string;
// @public
export type PagedAccessTokenOutput = Paged<AccessTokenOutput>;
// @public
export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
// @public
export type PaginateReturn<TResult> = TResult extends {
body: {
value?: infer TPage;
};
} ? GetArrayType<TPage> : Array<unknown>;
// @public
export interface PagingOptions<TResponse> {
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
}
// @public (undocumented)
export interface Routes {
(path: "/accounts/{accountId}/access-tokens/{accessTokenId}", accountId: string, accessTokenId: string): AccessTokensCreate;
(path: "/accounts/{accountId}/access-tokens", accountId: string): AccessTokensList;
(path: "/accounts/{accountId}/access-tokens/validate", accountId: string): AccessTokensValidate;
(path: "/accounts/{accountId}", accountId: string): AccountsGet;
(path: "/accounts/{accountId}/browsers", accountId: string): AccountsGetBrowsers;
}
// @public
export type SubscriptionStateOutput = string;
// (No @packageDocumentation comment for this package)
```

Просмотреть файл

@ -0,0 +1,118 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import nodeResolve from "@rollup/plugin-node-resolve";
import cjs from "@rollup/plugin-commonjs";
import sourcemaps from "rollup-plugin-sourcemaps";
import multiEntry from "@rollup/plugin-multi-entry";
import json from "@rollup/plugin-json";
import nodeBuiltins from "builtin-modules";
// #region Warning Handler
/**
* A function that can determine whether a rollup warning should be ignored. If
* the function returns `true`, then the warning will not be displayed.
*/
function ignoreNiseSinonEval(warning) {
return (
warning.code === "EVAL" &&
warning.id &&
(warning.id.includes("node_modules/nise") ||
warning.id.includes("node_modules/sinon")) === true
);
}
function ignoreChaiCircularDependency(warning) {
return (
warning.code === "CIRCULAR_DEPENDENCY" &&
warning.importer &&
warning.importer.includes("node_modules/chai") === true
);
}
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
/**
* Construct a warning handler for the shared rollup configuration
* that ignores certain warnings that are not relevant to testing.
*/
function makeOnWarnForTesting() {
return (warning, warn) => {
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
if (warningInhibitors.every((inhib) => !inhib(warning))) {
warn(warning);
}
};
}
// #endregion
function makeBrowserTestConfig() {
const config = {
input: {
include: ["dist-esm/test/**/*.spec.js"],
exclude: ["dist-esm/test/**/node/**"],
},
output: {
file: `dist-test/index.browser.js`,
format: "umd",
sourcemap: true,
},
preserveSymlinks: false,
plugins: [
multiEntry({ exports: false }),
nodeResolve({
mainFields: ["module", "browser"],
}),
cjs(),
json(),
sourcemaps(),
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
],
onwarn: makeOnWarnForTesting(),
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
// rollup started respecting the "sideEffects" field in package.json. Since
// our package.json sets "sideEffects=false", this also applies to test
// code, which causes all tests to be removed by tree-shaking.
treeshake: false,
};
return config;
}
const defaultConfigurationOptions = {
disableBrowserBundle: false,
};
export function makeConfig(pkg, options) {
options = {
...defaultConfigurationOptions,
...(options || {}),
};
const baseConfig = {
// Use the package's module field if it has one
input: pkg["module"] || "dist-esm/src/index.js",
external: [
...nodeBuiltins,
...Object.keys(pkg.dependencies),
...Object.keys(pkg.devDependencies),
],
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
preserveSymlinks: false,
plugins: [sourcemaps(), nodeResolve()],
};
const config = [baseConfig];
if (!options.disableBrowserBundle) {
config.push(makeBrowserTestConfig());
}
return config;
}
export default makeConfig(require("./package.json"));

Просмотреть файл

@ -1,14 +1,23 @@
{
"extends": "../../../tsconfig.package",
"compilerOptions": {
"target": "ES2017",
"module": "NodeNext",
"lib": [],
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"sourceMap": true,
"importHelpers": true,
"strict": true,
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "NodeNext",
"rootDir": "."
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"include": [
"./src/**/*.ts",
"./src/**/*.mts",
"./src/**/*.cts",
"test/**/*.ts"
]
"include": ["./src/**/*.ts"]
}

Просмотреть файл

@ -5,6 +5,7 @@ options:
title: Microsoft Playwright Testing
description: Microsoft Playwright Testing Client
generateMetadata: true
azureSdkForJs: false
generateTest: false
"emitter-output-dir": "{project-root}/generated/typespec-ts"
packageDetails: