diff --git a/package.json b/package.json index 67a8507..9bcacda 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "types": "dist/types.d.ts", "scripts": { "build:production": "NODE_ENV=production npm run build", - "build:types": "tsc -p tsconfig.types.json", - "build": "npm run clean && npm run lint && npm run build:types && webpack", + "build:types": "tsc -p src/tsconfig.types.json", + "build": "npm run clean && npm run lint && webpack && npm run build:types", "clean": "rm -rf dist/", "docs": "npm i && npx typedoc --excludePrivate ./src --out ./dist/docs", "lint": "eslint .", diff --git a/tsconfig.base.json b/src/tsconfig.base.json similarity index 86% rename from tsconfig.base.json rename to src/tsconfig.base.json index 42dc847..f9339d2 100644 --- a/tsconfig.base.json +++ b/src/tsconfig.base.json @@ -1,5 +1,5 @@ { - "extends": "./tsconfig.json", + "extends": "../tsconfig.json", "compilerOptions": { "noEmit": false, "baseUrl": ".", diff --git a/tsconfig.types.json b/src/tsconfig.types.json similarity index 90% rename from tsconfig.types.json rename to src/tsconfig.types.json index bc49aa8..9dd4ac5 100644 --- a/tsconfig.types.json +++ b/src/tsconfig.types.json @@ -8,7 +8,7 @@ "removeComments": false, "declaration": true, "declarationMap": true, - "declarationDir": "./dist", + "declarationDir": "../dist", "emitDeclarationOnly": true }, "exclude": [