Files
KaTeX/package.json
Kevin Barabash e192be2177 Update package.json to point 'main' at dist/katex.js (#791)
Summary:
Now that we're using ES6 import statements in our source code
it makes it difficult for people to consume the katex package
as a node module unless they're using node.js version 8.x.

This diff points the node entry to dist/katex.js which
is the compiled version of katex.js.

Test Plan:
- publish
- create a new project node project and add the new npm katex package as a deep
- require katex in a test file and run it using node.js version 6.x
2017-08-15 00:15:34 +09:00

63 lines
1.4 KiB
JSON

{
"name": "katex",
"version": "0.8.2-pre",
"description": "Fast math typesetting for the web.",
"main": "dist/katex.js",
"repository": {
"type": "git",
"url": "git://github.com/Khan/KaTeX.git"
},
"files": [
"katex.js",
"cli.js",
"src/",
"dist/"
],
"license": "MIT",
"devDependencies": {
"babel-eslint": "^7.2.0",
"babel-jest": "^20.0.3",
"babel-plugin-transform-class-properties": "^6.23.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.18.0",
"babel-register": "^6.24.0",
"babelify": "^7.3.0",
"browserify": "^13.3.0",
"clean-css": "^3.4.23",
"eslint": "^3.13.0",
"express": "^4.14.0",
"glob": "^7.1.1",
"jest": "^20.0.4",
"jest-serializer-html": "^4.0.0",
"js-yaml": "^3.3.1",
"jspngopt": "^0.2.0",
"less": "~2.7.1",
"morgan": "^1.7.0",
"nomnom": "^1.8.1",
"object-assign": "^4.1.0",
"pako": "1.0.4",
"selenium-webdriver": "^2.48.2",
"sri-toolbox": "^0.2.0",
"uglify-js": "~2.7.5"
},
"bin": "cli.js",
"scripts": {
"test": "make lint test",
"prepublish": "make NIS= dist"
},
"dependencies": {
"match-at": "^0.1.0"
},
"jest": {
"snapshotSerializers": [
"jest-serializer-html"
],
"testMatch": [
"**/test/*-spec.js"
],
"transform": {
"^.+\\.js$": "babel-jest"
}
}
}