diff --git a/package.json b/package.json index aa449f6f..434729d0 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "dist/human.node.js", "module": "dist/human.esm.js", "browser": "dist/human.esm.js", - "types": "dist/human.d.ts", + "types": "types/human.d.ts", "author": "Vladimir Mandic ", "bugs": { "url": "https://github.com/vladmandic/human/issues" @@ -23,7 +23,7 @@ "scripts": { "start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation demo/node.js", "dev": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught server/serve.js", - "build": "rimraf dist/* typedoc/* && node --trace-warnings --unhandled-rejections=strict --trace-uncaught server/build.js", + "build": "rimraf dist/* typedoc/* types/* && node --trace-warnings --unhandled-rejections=strict --trace-uncaught server/build.js", "lint": "eslint src server demo", "test": "npm run lint && npm run start" }, diff --git a/tsconfig.json b/tsconfig.json index 94d483b1..27ace3e0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "moduleResolution": "node", "lib": ["es2018", "dom"], "typeRoots": ["node_modules/@types"], - "out": "dist/human.d.ts", + "outDir": "types", "declaration": true, "emitDeclarationOnly": true, "emitDecoratorMetadata": true,