You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
430 B

  1. const path = require('path');
  2. const fs = require('fs');
  3. const root = path.resolve(__dirname, '..', '..');
  4. const librdkafkaPath = path.resolve(root, 'deps', 'librdkafka');
  5. // Ensure librdkafka is in the deps directory - this makes sure we don't accidentally
  6. // publish on a non recursive clone :)
  7. if (!fs.existsSync(librdkafkaPath)) {
  8. console.error(`Could not find librdkafka at path ${librdkafkaPath}`);
  9. process.exit(1);
  10. }