diff --git a/package.json b/package.json index aa2d92e50..4250c500c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "6.2.0", "description": "TypeScript loader for webpack", "main": "index.js", - "types": "dist/types/index.d.ts", + "types": "dist", "scripts": { "build": "tsc --version && tsc --project \"./src\"", "lint": "tslint --project \"./src\"", diff --git a/src/tsconfig.json b/src/tsconfig.json index 179937634..6ef63bdc5 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -10,7 +10,8 @@ "moduleResolution": "node", "declaration": true, "outDir": "../dist", - "declarationDir": "../dist/types", + "declarationDir": "../dist", + "declarationMap": true, "sourceMap": true } }