From 530e90859a35cd1320d1f9f53e10e5d729f77d0f Mon Sep 17 00:00:00 2001 From: Martin Petrovsky Date: Wed, 1 Jun 2022 12:12:51 +1000 Subject: [PATCH] fix(bugfix): [#82] - make npm run build:production produce dist/types.d.ts Moved tsconfig.types.json to src and fixed build script in package.json --- package.json | 4 ++-- tsconfig.base.json => src/tsconfig.base.json | 2 +- tsconfig.types.json => src/tsconfig.types.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename tsconfig.base.json => src/tsconfig.base.json (86%) rename tsconfig.types.json => src/tsconfig.types.json (90%) 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": [