Skip to content

Commit

Permalink
Merge pull request #114 from batoulapps/113-types-in-packagejson-poin…
Browse files Browse the repository at this point in the history
…ts-to-wrong-file

Fix incorrect types generation
  • Loading branch information
sgtsquiggs authored May 14, 2022
2 parents 575083e + f5613da commit ff91470
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build:esm": "cross-env BABEL_ENV=esmUnbundled babel src --extensions '.ts' --out-dir 'lib/esm' --source-maps",
"build:cjs": "cross-env BABEL_ENV=cjs babel src --extensions '.ts' --out-dir 'lib/cjs' --source-maps",
"build:bundles": "cross-env BABEL_ENV=esmBundled rollup -c",
"build:types": "tsc --emitDeclarationOnly",
"build:types": "tsc -b tsconfig.types.json",
"lint": "run-p -l lint:*",
"lint:eslint": "eslint --max-warnings=0 .",
"lint:tsc": "tsc --noEmit",
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "@tsconfig/node12/tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationDir": "lib/types/",
"strict": true
},
"include": ["src/**/*.ts", "test/**/*.ts"],
Expand Down
9 changes: 9 additions & 0 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationDir": "lib/types/",
"emitDeclarationOnly": true
},
"exclude": ["test/**/*.ts"]
}

0 comments on commit ff91470

Please sign in to comment.