Skip to content

Commit cdfa015

Browse files
committed
fix: import package.json from two levels up
Reason: the outDir is two levels down. For example, "dist/es"
1 parent 42a2b1a commit cdfa015

File tree

711 files changed

+1404
-1404
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

711 files changed

+1404
-1404
lines changed

clients/client-accessanalyzer/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./AccessAnalyzerClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-accessanalyzer/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./AccessAnalyzerClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-accessanalyzer/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./AccessAnalyzerClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-acm-pca/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./ACMPCAClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-acm-pca/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./ACMPCAClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-acm-pca/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./ACMPCAClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-acm/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./ACMClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-acm/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./ACMClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-acm/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./ACMClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-alexa-for-business/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./AlexaForBusinessClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-alexa-for-business/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./AlexaForBusinessClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-alexa-for-business/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./AlexaForBusinessClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-amplify/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./AmplifyClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-amplify/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./AmplifyClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-amplify/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./AmplifyClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-api-gateway/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./APIGatewayClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-api-gateway/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./APIGatewayClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-api-gateway/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./APIGatewayClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-apigatewaymanagementapi/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./ApiGatewayManagementApiClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-apigatewaymanagementapi/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./ApiGatewayManagementApiClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-apigatewaymanagementapi/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./ApiGatewayManagementApiClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-apigatewayv2/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./ApiGatewayV2Client";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-apigatewayv2/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./ApiGatewayV2Client";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-apigatewayv2/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./ApiGatewayV2Client";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-app-mesh/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./AppMeshClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-app-mesh/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./AppMeshClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-app-mesh/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./AppMeshClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-appconfig/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./AppConfigClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-appconfig/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./AppConfigClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-appconfig/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./AppConfigClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-appflow/src/runtimeConfig.browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
88
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
99
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
1010

11-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
12-
import packageInfo from "./package.json";
11+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
12+
import packageInfo from "../../package.json";
1313

1414
import { ClientDefaults } from "./AppflowClient";
1515
import { ClientSharedValues } from "./runtimeConfig.shared";

clients/client-appflow/src/runtimeConfig.native.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
22
import { parseUrl } from "@aws-sdk/url-parser-node";
33

4-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
5-
import packageInfo from "./package.json";
4+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
5+
import packageInfo from "../../package.json";
66

77
import { ClientDefaults } from "./AppflowClient";
88
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

clients/client-appflow/src/runtimeConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
1010
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1111
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
1212

13-
// @ts-ignore package.json will exist in dist, hack to avoid 'package.json' is not under 'rootDir'
14-
import packageInfo from "./package.json";
13+
// @ts-ignore hack to avoid 'package.json' is not under 'rootDir', package.json will exist in dist
14+
import packageInfo from "../../package.json";
1515

1616
import { ClientDefaults } from "./AppflowClient";
1717
import { ClientSharedValues } from "./runtimeConfig.shared";

0 commit comments

Comments
 (0)