diff --git a/package.json b/package.json index 4a7b1ab01..19b0cd379 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "fineui", "version": "2.0.0", "description": "fineui", - "main": "typescript/index.ts", + "main": "dist/fineui.min.js", + "types": "dist/lib/index.d.ts", "dependencies": {}, "devDependencies": { "@babel/core": "7.4.5", @@ -76,7 +77,7 @@ "test": "karma start", "analyze": "grunt analyze", "dev": "npm-run-all --parallel grunt webpack:dev", - "prepublish": "node ./lib/prepublish/prepublish.js" + "prepublishOnly": "npm run build && node ./lib/prepublish/prepublish.js" }, "repository": { "type": "git",