diff --git a/templates/React InstantSearch Native/.template.js b/templates/React InstantSearch Native/.template.js index c0decc17e..376d8e696 100644 --- a/templates/React InstantSearch Native/.template.js +++ b/templates/React InstantSearch Native/.template.js @@ -1,3 +1,4 @@ +const chalk = require('chalk'); const install = require('../../packages/tasks/node/install'); const teardown = require('../../packages/tasks/node/teardown'); @@ -5,8 +6,27 @@ module.exports = { libraryName: 'react-instantsearch-native', templateName: 'react-instantsearch-native', appName: 'react-instantsearch-native-app', - keywords: ['algolia', 'instantSearch', 'react', 'react-native', 'react-instantsearch-native'], + keywords: [ + 'algolia', + 'instantSearch', + 'react', + 'react-native', + 'react-instantsearch-native', + ], tasks: { + setup(config) { + if (!config.silent && config.attributesForFaceting) { + console.log(); + console.log( + `⚠️ The ${chalk.cyan( + 'attributesForFaceting' + )} option is not supported in this template.` + ); + console.log(); + } + + return Promise.resolve(); + }, install, teardown, },