From 96255a1387a1b5c174516a474986fcc0e8b55d7c Mon Sep 17 00:00:00 2001 From: Matt Luedke Date: Mon, 10 Jun 2019 10:28:10 -0400 Subject: [PATCH] fix: Revert JS dist file path to dist/js (#31) In commit 31a305d, we moved this repo to the `@silvermine` org and updated the `name` field in package.json. The Gruntfile uses the name of the package as the name of the JS output file. Therefore, when the package name field changed, so did the JS file output name and path. We no longer depend on the name field in package.json for the name of the JS output file. --- Gruntfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 2e9eb68..da680dc 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -28,12 +28,13 @@ module.exports = function(grunt) { dist: { base: path.join(__dirname, 'dist'), + jsFileName: 'silvermine-videojs-quality-selector', }, }; config.dist.js = { - bundle: path.join(config.dist.base, 'js', '<%= pkg.name %>.js'), - minified: path.join(config.dist.base, 'js', '<%= pkg.name %>.min.js'), + bundle: path.join(config.dist.base, 'js', '<%= config.dist.jsFileName %>.js'), + minified: path.join(config.dist.base, 'js', '<%= config.dist.jsFileName %>.min.js'), }; config.dist.css = {