Skip to content

Commit dfa7254

Browse files
authored
chore: clean up unused package and auto exports (#1315)
1 parent 9392aa4 commit dfa7254

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const noExtraneousOverrides = require('./scripts/packages').map(package => {
2222
module.exports = {
2323
plugins: ['functional', 'sonarjs', 'wdio', 'simple-import-sort', 'promise'],
2424
extends: [
25+
'algolia',
2526
'algolia/jest',
2627
'algolia/typescript',
2728
'plugin:functional/recommended',

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"barrelsby": "2.2.0",
5252
"bundlesize": "0.18.0",
5353
"dotenv": "8.2.0",
54-
"dotenv-extended": "2.7.1",
5554
"eslint": "6.8.0",
5655
"eslint-config-algolia": "15.0.0",
5756
"eslint-config-prettier": "6.10.0",

packages/client-personalization/src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
export * from './GetPersonalizationStrategyResponse';
6-
export * from './PersonalizationStrategy';
76
export * from './PersonalizationClient';
87
export * from './PersonalizationClientOptions';
8+
export * from './PersonalizationStrategy';
99
export * from './SetPersonalizationStrategyResponse';

packages/client-search/src/methods/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ export * from './deleteApiKey';
1515
export * from './deleteDictionaryEntries';
1616
export * from './generateSecuredApiKey';
1717
export * from './getApiKey';
18+
export * from './getAppTask';
1819
export * from './getDictionarySettings';
1920
export * from './getLogs';
2021
export * from './getSecuredApiKeyRemainingValidity';
2122
export * from './getTopUserIDs';
22-
export * from './getAppTask';
2323
export * from './getUserID';
2424
export * from './hasPendingMappings';
2525
export * from './initIndex';

packages/client-search/src/types/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ export * from './FindAnswersResponse';
3535
export * from './FindObjectOptions';
3636
export * from './FindObjectResponse';
3737
export * from './GetApiKeyResponse';
38+
export * from './GetDictionarySettingsResponse';
3839
export * from './GetLogsOptions';
3940
export * from './GetLogsResponse';
4041
export * from './GetObjectOptions';
4142
export * from './GetObjectsOptions';
4243
export * from './GetObjectsResponse';
43-
export * from './GetDictionarySettingsResponse';
4444
export * from './GetTopUserIDsResponse';
4545
export * from './HasPendingMappingsOptions';
4646
export * from './HasPendingMappingsResponse';
@@ -65,6 +65,7 @@ export * from './PartialUpdateObjectResponse';
6565
export * from './PartialUpdateObjectsOptions';
6666
export * from './RemoveUserIDResponse';
6767
export * from './ReplaceAllObjectsOptions';
68+
export * from './RequireAtLeastOne';
6869
export * from './RestoreApiKeyResponse';
6970
export * from './Rule';
7071
export * from './SaveObjectResponse';

packages/recommend/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
* @file Automatically generated by barrelsby.
33
*/
44

5+
export * from './createRecommendClient';
6+
export * from './methods/index';
57
export * from './types/index';

packages/recommend/src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
export * from './BaseRecommendClient';
66
export * from './FrequentlyBoughtTogetherQuery';
7-
export * from './RecommendationsQuery';
87
export * from './RecommendClientOptions';
98
export * from './RecommendModel';
109
export * from './RecommendOptions';
1110
export * from './RecommendSearchOptions';
11+
export * from './RecommendationsQuery';
1212
export * from './RelatedProductsQuery';
1313
export * from './WithRecommendMethods';

scripts/generate-exports.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const execa = require('execa');
55
const targets = fs.readdirSync('packages').filter(f => fs.statSync(`packages/${f}`).isDirectory());
66
const exclude = {
77
all: '__tests__',
8-
algoliasearch: 'builds|presets',
8+
algoliasearch: 'builds',
9+
recommend: 'builds',
910
transporter: 'concerns',
1011
};
1112

0 commit comments

Comments
 (0)