Skip to content

chore: clean up package and exports #1315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const noExtraneousOverrides = require('./scripts/packages').map(package => {
module.exports = {
plugins: ['functional', 'sonarjs', 'wdio', 'simple-import-sort', 'promise'],
extends: [
'algolia',
'algolia/jest',
'algolia/typescript',
'plugin:functional/recommended',
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"barrelsby": "2.2.0",
"bundlesize": "0.18.0",
"dotenv": "8.2.0",
"dotenv-extended": "2.7.1",
"eslint": "6.8.0",
"eslint-config-algolia": "15.0.0",
"eslint-config-prettier": "6.10.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-personalization/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export * from './GetPersonalizationStrategyResponse';
export * from './PersonalizationStrategy';
export * from './PersonalizationClient';
export * from './PersonalizationClientOptions';
export * from './PersonalizationStrategy';
export * from './SetPersonalizationStrategyResponse';
2 changes: 1 addition & 1 deletion packages/client-search/src/methods/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export * from './deleteApiKey';
export * from './deleteDictionaryEntries';
export * from './generateSecuredApiKey';
export * from './getApiKey';
export * from './getAppTask';
export * from './getDictionarySettings';
export * from './getLogs';
export * from './getSecuredApiKeyRemainingValidity';
export * from './getTopUserIDs';
export * from './getAppTask';
export * from './getUserID';
export * from './hasPendingMappings';
export * from './initIndex';
Expand Down
3 changes: 2 additions & 1 deletion packages/client-search/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export * from './FindAnswersResponse';
export * from './FindObjectOptions';
export * from './FindObjectResponse';
export * from './GetApiKeyResponse';
export * from './GetDictionarySettingsResponse';
export * from './GetLogsOptions';
export * from './GetLogsResponse';
export * from './GetObjectOptions';
export * from './GetObjectsOptions';
export * from './GetObjectsResponse';
export * from './GetDictionarySettingsResponse';
export * from './GetTopUserIDsResponse';
export * from './HasPendingMappingsOptions';
export * from './HasPendingMappingsResponse';
Expand All @@ -65,6 +65,7 @@ export * from './PartialUpdateObjectResponse';
export * from './PartialUpdateObjectsOptions';
export * from './RemoveUserIDResponse';
export * from './ReplaceAllObjectsOptions';
export * from './RequireAtLeastOne';
export * from './RestoreApiKeyResponse';
export * from './Rule';
export * from './SaveObjectResponse';
Expand Down
2 changes: 2 additions & 0 deletions packages/recommend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
* @file Automatically generated by barrelsby.
*/

export * from './createRecommendClient';
export * from './methods/index';
export * from './types/index';
2 changes: 1 addition & 1 deletion packages/recommend/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

export * from './BaseRecommendClient';
export * from './FrequentlyBoughtTogetherQuery';
export * from './RecommendationsQuery';
export * from './RecommendClientOptions';
export * from './RecommendModel';
export * from './RecommendOptions';
export * from './RecommendSearchOptions';
export * from './RecommendationsQuery';
export * from './RelatedProductsQuery';
export * from './WithRecommendMethods';
3 changes: 2 additions & 1 deletion scripts/generate-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const execa = require('execa');
const targets = fs.readdirSync('packages').filter(f => fs.statSync(`packages/${f}`).isDirectory());
const exclude = {
all: '__tests__',
algoliasearch: 'builds|presets',
algoliasearch: 'builds',
recommend: 'builds',
transporter: 'concerns',
};

Expand Down