Skip to content

Commit

Permalink
fix(bugfix): [#82] - make npm run build:production produce dist/types…
Browse files Browse the repository at this point in the history
….d.ts

Moved tsconfig.types.json to src and fixed build script in package.json
  • Loading branch information
Martin Petrovsky committed Jun 1, 2022
1 parent b01185c commit 530e908
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json → src/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"extends": "../tsconfig.json",
"compilerOptions": {
"noEmit": false,
"baseUrl": ".",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.types.json → src/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"removeComments": false,
"declaration": true,
"declarationMap": true,
"declarationDir": "./dist",
"declarationDir": "../dist",
"emitDeclarationOnly": true
},
"exclude": [
Expand Down

0 comments on commit 530e908

Please sign in to comment.