Skip to content

Commit

Permalink
fix: issue with build pipeline emitting ts declarations (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmike authored Apr 21, 2023
1 parent de938c5 commit 4f2d7c3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-moles-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'array-fp-utils': patch
---

Fix issue with build pipeline emitting only ts declarations
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
"access": "public"
},
"sideEffects": false,
"types": "./dist/index.d.ts",
"main": "./dist/node/cjs/index.js",
"types": "./dist/types/index.d.ts",
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/node/esm/index.js",
"require": "./dist/node/cjs/index.js"
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"default": "./dist/browser/esm/index.js"
"default": "./dist/esm/index.js"
}
},
"files": [
Expand Down
25 changes: 14 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{
"compilerOptions": {
"emitDeclarationOnly": true,
"declaration": true,
"outDir": "./build",
"rootDir": "./lib",
"target": "esnext",
"lib": [
"esnext",
"dom"
],
"moduleResolution": "node",
"strict": true,
"declaration": false,
"removeComments": true,
"esModuleInterop": true,
"target": "ES2015",
"moduleResolution": "Node"
},
"include": [
"lib/**/*"
"./lib/**/*.ts"
],
"exclude": [
"lib/**/*.spec.ts",
"lib/**/*.test.ts"
]
}
"**/*.spec.ts",
"**/*.test.ts"
],
}

0 comments on commit 4f2d7c3

Please sign in to comment.