diff --git a/sdk/keyvault/keyvault-admin/package.json b/sdk/keyvault/keyvault-admin/package.json index 2586e4c88eed..8e45e6620ce5 100644 --- a/sdk/keyvault/keyvault-admin/package.json +++ b/sdk/keyvault/keyvault-admin/package.json @@ -24,7 +24,7 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "main": "./dist/index.js", - "module": "dist-esm/keyvault-admin/src/index.js", + "module": "dist-esm/index.js", "types": "./types/keyvault-admin.d.ts", "engine": { "node": ">=8.0.0" @@ -36,7 +36,7 @@ "types/keyvault-admin.d.ts", "dist/", "dist-browser/", - "dist-esm/keyvault-admin/src", + "dist-esm/", "README.md", "LICENSE" ], diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index 0ec881a68bf6..e576c7411b59 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "main": "./dist/index.js", - "module": "dist-esm/keyvault-certificates/src/index.js", + "module": "dist-esm/src/index.js", "types": "./types/keyvault-certificates.d.ts", "engines": { "node": ">=8.0.0" @@ -29,7 +29,7 @@ "types/keyvault-certificates.d.ts", "dist/", "dist-browser/", - "dist-esm/keyvault-certificates/src", + "dist-esm/src", "README.md", "LICENSE" ], @@ -47,7 +47,7 @@ "build": "npm run extract-api && npm run build:es6 && npm run build:nodebrowser", "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist-esm dist-test typings *.tgz *.log samples/typescript/dist", - "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/keyvault-certificates/dist-samples/typescript/src/", + "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/src/", "extract-api": "tsc -p . && api-extractor run --local", "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "karma start --single-run", diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index c38b3e15de5d..0cad326473e2 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "main": "./dist/index.js", - "module": "dist-esm/keyvault-keys/src/index.js", + "module": "dist-esm/src/index.js", "types": "./types/keyvault-keys.d.ts", "engines": { "node": ">=8.0.0" @@ -29,7 +29,7 @@ "types/keyvault-keys.d.ts", "dist/", "dist-browser/", - "dist-esm/keyvault-keys/src", + "dist-esm/src", "README.md", "LICENSE" ], @@ -47,7 +47,7 @@ "build": "npm run extract-api && npm run build:es6 && npm run build:nodebrowser", "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm dist-test types *.tgz *.log dist-browser statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", - "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/keyvault-keys/dist-samples/typescript/src/", + "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/src/", "extract-api": "tsc -p . && api-extractor run --local", "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "karma start --single-run", diff --git a/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts index 736f5ba1b513..3b533a5d12a9 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts @@ -27,9 +27,9 @@ describe("Keys client's user agent (only in Node, because of fs)", () => { version = fileContents.version; } catch { // The integration-test script has this test file in a considerably different place, - // Along the lines of: dist-esm/keyvault-keys/test/internal/userAgent.spec.ts + // Along the lines of: dist-esm/test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }) ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index e44ec4d410b6..2a02f99de14f 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "main": "./dist/index.js", - "module": "dist-esm/keyvault-secrets/src/index.js", + "module": "dist-esm/index.js", "types": "./types/keyvault-secrets.d.ts", "engine": { "node": ">=8.0.0" @@ -32,7 +32,7 @@ "types/keyvault-secrets.d.ts", "dist/", "dist-browser/", - "dist-esm/keyvault-secrets/src", + "dist-esm/", "README.md", "LICENSE" ], @@ -50,7 +50,7 @@ "build": "npm run extract-api && npm run build:es6 && npm run build:nodebrowser", "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm dist-test types *.tgz *.log dist-browser statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", - "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/keyvault-secrets/dist-samples/typescript/src/", + "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/src/", "extract-api": "tsc -p . && api-extractor run --local", "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "karma start --single-run",