From 95a471d055a493f59107461dea26c7a64cb57118 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 20 Feb 2017 08:41:03 +0000 Subject: [PATCH] fix entry points --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2a01749..72d59f5 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,14 @@ "name": "tstatic", "version": "0.0.1", "description": "The only static-file server you'll ever need!", - "main": "node ./dist/index.js", + "main": "./dist/server.js", "bin": { - "tstatic": "node ./dist/index.js" + "tstatic": "./dist/index.js" }, "scripts": { "start": "node ./dist/index.js", "postinstall": "typings install", + "prepublish": "npm run build", "build": "tsc", "test": "npm run build && npm run mocha && nsp check", "mocha": "mocha --compilers ts:ts-node/register --require scripts/test-helper.js tests/**.test.ts",