Skip to content

Commit 7b6250a

Browse files
committed
fix build settings
1 parent e5edaa2 commit 7b6250a

File tree

4 files changed

+292
-8
lines changed

4 files changed

+292
-8
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@
1717
"main": "dist/index.js",
1818
"module": "dist/index.mjs",
1919
"types": "dist/index.d.ts",
20+
"peerDependencies": {
21+
"jest-snapshot": ">=24"
22+
},
2023
"dependencies": {
2124
"@types/jest": "^24.0.22",
22-
"jest": "^24.9.0",
23-
"jest-snapshot": "^24.9.0"
25+
"jest": "^24.9.0"
2426
},
2527
"devDependencies": {
2628
"@rollup/plugin-node-resolve": "^7.0.0",
2729
"@types/node": "^13.1.6",
30+
"jest-snapshot": "^25.4.0",
2831
"prettier": "^1.19.1",
2932
"rollup": "^1.29.0",
3033
"rollup-plugin-node-builtins": "^2.1.2",

rollup.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import builtins from 'rollup-plugin-node-builtins';
22
import resolve from '@rollup/plugin-node-resolve';
33
import typescript from 'rollup-plugin-typescript2';
4+
import pkg from './package.json';
45

56
export default {
67
input: './src/index.ts',
78
output: [
89
{
910
format: 'cjs',
10-
file: './dist/index.js',
11+
file: pkg.main,
1112
},
1213
{
1314
format: 'esm',
14-
file: './dist/index.mjs',
15+
file: pkg.module,
1516
},
1617
],
1718
plugins: [

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"compilerOptions": {
33
"target": "es3",
4-
"module": "ESNext",
54
"strict": true,
65
"lib": [
76
"esnext"

0 commit comments

Comments
 (0)