diff --git a/index.js b/index.js index 0770ed3..27e8e3e 100644 --- a/index.js +++ b/index.js @@ -1171,10 +1171,10 @@ function toSlug(value) { .replace(/[^\u0000-\u007F]/g, '') // Replace dash and underscore with a space. .replace(/[-_]/g, ' ') - // Replace multiple spaces - .replace(/\s+/g, '-') // Trim. .trim() + // Replace multiple spaces + .replace(/\s+/g, '-') ) } @@ -25840,13 +25840,14 @@ var __webpack_exports__ = {}; var fs = __nccwpck_require__(5747) +var path = __nccwpck_require__(5622) var yaml = __nccwpck_require__(1917) var beep = __nccwpck_require__(6278) var custom = __nccwpck_require__(4758) var renderers = __nccwpck_require__(4081) beep({ - tasks: yaml.load(String(fs.readFileSync('tasks.yml'))), + tasks: yaml.load(String(fs.readFileSync(__nccwpck_require__.ab + "tasks.yml"))), plugins: [custom], renderers }) diff --git a/lib/boop/util/label-matches.js b/lib/boop/util/label-matches.js index efd3715..28144ad 100644 --- a/lib/boop/util/label-matches.js +++ b/lib/boop/util/label-matches.js @@ -18,9 +18,9 @@ function toSlug(value) { .replace(/[^\u0000-\u007F]/g, '') // Replace dash and underscore with a space. .replace(/[-_]/g, ' ') - // Replace multiple spaces - .replace(/\s+/g, '-') // Trim. .trim() + // Replace multiple spaces + .replace(/\s+/g, '-') ) } diff --git a/main.js b/main.js index 4c9e9c7..f9630b8 100644 --- a/main.js +++ b/main.js @@ -1,13 +1,14 @@ 'use strict' var fs = require('fs') +var path = require('path') var yaml = require('js-yaml') var beep = require('./lib/beep') var custom = require('./lib/custom') var renderers = require('./lib/renderers') beep({ - tasks: yaml.load(String(fs.readFileSync('tasks.yml'))), + tasks: yaml.load(String(fs.readFileSync(path.join(__dirname, 'tasks.yml')))), plugins: [custom], renderers }) diff --git a/package.json b/package.json index 35ad881..90d41f9 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,10 @@ "unicorn/prefer-number-properties": "off", "unicorn/prefer-set-has": "off", "unicorn/prefer-type-error": "off" - } + }, + "ignores": [ + "index.js" + ] }, "remarkConfig": { "plugins": [