mirror of
https://github.com/videojs/video.js.git
synced 2025-02-04 11:43:27 +02:00
fixing undefined package reference in cdn-links task
This commit is contained in:
parent
2a1f9f357f
commit
bbad7207a2
@ -1,7 +1,7 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.registerTask('cdn-links', 'Update the version of CDN links in docs', function(){
|
||||
var doc = grunt.file.read('docs/guides/setup.md');
|
||||
var version = pkg.version;
|
||||
var version = require('../package.json').version;
|
||||
|
||||
// remove the patch version to point to the latest patch
|
||||
version = version.replace(/(\d+\.\d+)\.\d+/, '$1');
|
||||
|
Loading…
x
Reference in New Issue
Block a user