Skip to content

Commit 684b867

Browse files
fix(build): correct bundle path for common and es modules (#124)
1 parent 778d619 commit 684b867

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"module": "index.esm.js",
77
"commonJs": "index.cjs.js",
8-
"typings": "types/index.d.ts",
8+
"typings": "index.d.ts",
99
"sideEffects": false,
1010
"author": "Patrick Michalina <patrickmichalina@mac.com> (https://patrickmichalina.com)",
1111
"license": "MIT",
@@ -52,6 +52,9 @@
5252
"tslint-immutable": "^6.0.1",
5353
"typescript": "^3.7.5"
5454
},
55+
"peerDependencies": {
56+
"tslib": "^1.10.0"
57+
},
5558
"jest": {
5659
"testURL": "http://localhost",
5760
"collectCoverage": true,

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import pkg from './package.json'
33

44
export default [
55
{
6-
input: 'dist/lib/index.js',
6+
input: 'dist/index.js',
77
output: {
88
name: 'monads',
99
file: `dist/${pkg.main}`,

tsconfig.build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"module": "es2015",
55
"moduleResolution": "node",
66
"lib": ["es2015", "dom"],
7-
"outDir": "dist/lib",
7+
"outDir": "dist",
88
"isolatedModules": false,
99
"experimentalDecorators": true,
1010
"emitDecoratorMetadata": true,
@@ -22,7 +22,7 @@
2222
"strictFunctionTypes": true,
2323
"forceConsistentCasingInFileNames": true,
2424
"declaration": true,
25-
"declarationDir": "dist/types",
25+
"declarationDir": "dist",
2626
"declarationMap": true,
2727
"sourceMap": true
2828
},

0 commit comments

Comments
 (0)