From 0d23a1e39f439ca9d2e73cef85fb2f5afaf8d10d Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:28:59 +0800 Subject: [PATCH] update --- common/config/rush/pnpm-lock.yaml | 36 +++++++++++++------- sdk/consumption/arm-consumption/package.json | 29 +++++++++++++--- 2 files changed, 49 insertions(+), 16 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 78970280806a..538d0270e8ca 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -213,7 +213,7 @@ importers: version: file:projects/arm-connectedvmware.tgz '@rush-temp/arm-consumption': specifier: file:./projects/arm-consumption.tgz - version: file:projects/arm-consumption.tgz + version: file:projects/arm-consumption.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-containerinstance': specifier: file:./projects/arm-containerinstance.tgz version: file:projects/arm-containerinstance.tgz @@ -2755,7 +2755,7 @@ packages: version: 0.0.0 '@rush-temp/arm-consumption@file:projects/arm-consumption.tgz': - resolution: {integrity: sha512-rHj6mnz21Z4PoRZnazbDDICDKW/LCkn5V3N32yMoKc6FHq0zrdZgBLvDnUVBFk+rfeBI9by7Ijgv6M62a5uJLw==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-vGlGo4P6yqBrTBwd59WxwLuBJ6xzWQJwcjUBSmDW6wc7RvDlMBEGIXR2/KPQzpAOaoSU8aS0b6MsOhaf8BMdKQ==, tarball: file:projects/arm-consumption.tgz} version: 0.0.0 '@rush-temp/arm-containerinstance@file:projects/arm-containerinstance.tgz': @@ -11456,23 +11456,35 @@ snapshots: - '@swc/wasm' - supports-color - '@rush-temp/arm-consumption@file:projects/arm-consumption.tgz': + '@rush-temp/arm-consumption@file:projects/arm-consumption.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.68 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) + '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) dotenv: 16.4.7 - mocha: 11.0.2 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2) + playwright: 1.49.1 tslib: 2.8.1 typescript: 5.7.2 + vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2)) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - utf-8-validate + - vite + - webdriverio '@rush-temp/arm-containerinstance@file:projects/arm-containerinstance.tgz': dependencies: diff --git a/sdk/consumption/arm-consumption/package.json b/sdk/consumption/arm-consumption/package.json index 6418e4c47d70..9953cbefdba9 100644 --- a/sdk/consumption/arm-consumption/package.json +++ b/sdk/consumption/arm-consumption/package.json @@ -22,9 +22,9 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-consumption.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", @@ -116,5 +116,26 @@ "selfLink": false }, "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/index.js" + "react-native": "./dist/react-native/index.js", + "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" + } + } + } }