Skip to content

Commit

Permalink
Fix types and tree-shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Apr 26, 2021
1 parent 5561de6 commit 2303f3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-datocms",
"version": "1.6.2",
"types": "dist/index.d.ts",
"types": "dist/types/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"sideEffects": false,
Expand All @@ -16,8 +16,6 @@
"author": "Stefano Verna <s.verna@datocms.com>",
"homepage": "https://github.com/datocms/react-datocms",
"devDependencies": {
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@types/enzyme": "^3.10.8",
"@types/enzyme-to-json": "^1.5.4",
"@types/jest": "^26.0.22",
Expand All @@ -35,13 +33,11 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"rollup": "^2.45.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^26.5.5",
"typescript": "^4.2.4"
},
"scripts": {
"build": "rimraf dist && rollup -c rollup.config.ts",
"build": "rimraf dist && tsc && tsc --project ./tsconfig.esnext.json",
"watch": "rimraf dist && tsc --watch",
"prepare": "npm run test && npm run build",
"test": "jest --coverage",
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.esnext.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"module": "esnext",
"outDir": "./dist/esm",
"declarationDir": "./dist/esm",
"noEmitHelpers": true,
"importHelpers": true,
"isolatedModules": true,
},
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"declaration": true,
"declarationDir": "./dist/cjs",
"declarationDir": "./dist/types",
"module": "commonjs",
"noImplicitAny": true,
"lib": ["es2017", "es7", "es6", "dom"],
Expand Down

0 comments on commit 2303f3f

Please sign in to comment.