diff --git a/.changeset/flat-moles-begin.md b/.changeset/flat-moles-begin.md new file mode 100644 index 0000000..2df7900 --- /dev/null +++ b/.changeset/flat-moles-begin.md @@ -0,0 +1,5 @@ +--- +'array-fp-utils': patch +--- + +Fix issue with build pipeline emitting only ts declarations diff --git a/package.json b/package.json index b96748e..2286ebd 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/tsconfig.json b/tsconfig.json index a6f640a..3cbf7ab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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" - ] -} \ No newline at end of file + "**/*.spec.ts", + "**/*.test.ts" + ], +}