Merge pull request #326 from AlexGalays/master

Add package.json/module
pull/351/head
Simon Friis Vindum 8 years ago committed by GitHub
commit 24b867d155

1
.gitignore vendored

@ -61,3 +61,4 @@ node_modules
/vnode.js.map /vnode.js.map
/modules /modules
/helpers /helpers
/es

@ -3,6 +3,7 @@
"version": "0.7.0", "version": "0.7.0",
"description": "A virtual DOM library with focus on simplicity, modularity, powerful features and performance.", "description": "A virtual DOM library with focus on simplicity, modularity, powerful features and performance.",
"main": "snabbdom.js", "main": "snabbdom.js",
"module": "es/snabbdom.js",
"typings": "snabbdom.d.ts", "typings": "snabbdom.d.ts",
"directories": { "directories": {
"example": "examples", "example": "examples",
@ -26,7 +27,9 @@
"scripts": { "scripts": {
"pretest": "npm run compile", "pretest": "npm run compile",
"test": "testem", "test": "testem",
"compile": "tsc", "compile": "npm run compile-es && npm run compile-commonjs",
"compile-es": "tsc --outDir es --module es6 --moduleResolution node",
"compile-commonjs": "tsc --outDir ./",
"prepublish": "npm run compile", "prepublish": "npm run compile",
"release-major": "xyz --repo git@github.com:paldepind/snabbdom.git --increment major", "release-major": "xyz --repo git@github.com:paldepind/snabbdom.git --increment major",
"release-minor": "xyz --repo git@github.com:paldepind/snabbdom.git --increment minor", "release-minor": "xyz --repo git@github.com:paldepind/snabbdom.git --increment minor",

@ -1,8 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "commonjs",
"target": "ES5", "target": "ES5",
"outDir": "./",
"noImplicitAny": true, "noImplicitAny": true,
"sourceMap": true, "sourceMap": true,
"strictNullChecks": true, "strictNullChecks": true,

Loading…
Cancel
Save