3f975913 by Gary Katsevman

make it export to both variable and module

1 parent 0551eba5
......@@ -8,7 +8,7 @@
"scripts": {
"test": "grunt qunit",
"prepublish": "npm run peg",
"peg": "pegjs src/m3u8/m3u8.pegjs src/m3u8/m3u8-generated.js",
"peg": "pegjs -e 'var M3U8Parser = module.exports' src/m3u8/m3u8.pegjs src/m3u8/m3u8-generated.js",
"testpeg": "npm run peg && node test/pegtest.js"
},
"devDependencies": {
......@@ -19,7 +19,7 @@
"grunt-contrib-watch": "~0.4.0",
"grunt-contrib-clean": "~0.4.0",
"grunt": "~0.4.1",
"pegjs": "~0.7.0"
"pegjs": "git+https://github.com/dmajda/pegjs.git"
},
"dependencies": {
"video.js": "~4.2.2",
......