Skip to content

Commit dbd7e77

Browse files
authored
feat: modernize exports (#1327)
Remove uneeded root index.ts in most packages. Update turbo dependencies. Introduce package.json exports.
1 parent 437c808 commit dbd7e77

File tree

360 files changed

+848
-367
lines changed

Some content is hidden

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

360 files changed

+848
-367
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: pnpm install --frozen-lockfile
6666

6767
- name: Run tests
68-
run: pnpm test -- --runInBand --ci --reporters=default --reporters=github-actions
68+
run: pnpm test
6969

7070
- name: Upload code coverage to codecov
7171
uses: codecov/codecov-action@v4

clients/amazon-warehousing-and-distribution-2024-05-09/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

clients/amazon-warehousing-and-distribution-2024-05-09/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
"main": "dist/cjs/index.js",
77
"module": "dist/es/index.js",
88
"types": "dist/types/index.d.ts",
9+
"exports": {
10+
"default": {
11+
"import": "./dist/es/index.js",
12+
"require": "./dist/cjs/index.js"
13+
},
14+
"types": "./dist/types/index.d.ts"
15+
},
916
"license": "MIT",
1017
"publishConfig": {
1118
"access": "public"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './client'
2+
export * from './api-model/api'
3+
export * from './api-model/models'

clients/amazon-warehousing-and-distribution-2024-05-09/tsconfig.es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"compilerOptions": {
44
"outDir": "dist/es"
55
},
6-
"include": ["index.ts", "src/**/*.ts"]
6+
"include": ["src/**/*.ts"]
77
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4+
"rootDir": "src",
45
"declarationDir": "dist/types",
56
"outDir": "dist/cjs"
67
},
7-
"include": ["index.ts", "src/**/*.ts"]
8+
"include": ["src/**/*.ts"]
89
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://typedoc.org/schema.json",
33
"includeVersion": true,
4-
"entryPoints": ["index.ts"],
4+
"entryPoints": ["src/index.ts"],
55
"internalModule": "Internal"
66
}

clients/aplus-content-api-2020-11-01/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

clients/aplus-content-api-2020-11-01/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
"main": "dist/cjs/index.js",
77
"module": "dist/es/index.js",
88
"types": "dist/types/index.d.ts",
9+
"exports": {
10+
"default": {
11+
"import": "./dist/es/index.js",
12+
"require": "./dist/cjs/index.js"
13+
},
14+
"types": "./dist/types/index.d.ts"
15+
},
916
"license": "MIT",
1017
"publishConfig": {
1118
"access": "public"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './client'
2+
export * from './api-model/api'
3+
export * from './api-model/models'

0 commit comments

Comments
 (0)