3f975913 by Gary Katsevman

make it export to both variable and module

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