-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): adds ESM outputs, separate types into lib/types dir (#425)
- Loading branch information
Showing
16 changed files
with
14,145 additions
and
23,062 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": [ | ||
["@babel/preset-env", { "targets": { "node": "current" } }], | ||
"@babel/preset-typescript", | ||
"@babel/preset-react" | ||
], | ||
"plugins": ["@babel/plugin-proposal-class-properties"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"preset": "ts-jest", | ||
"testEnvironment": "jsdom", | ||
"roots": ["<rootDir>/src/"], | ||
"transform": { | ||
"^.+\\.jsx?$": "babel-jest", | ||
"\\.(ts|tsx)$": "ts-jest" | ||
}, | ||
"transformIgnorePatterns": ["node_modules/(?!(d3-.+))"], | ||
"moduleNameMapper": { | ||
".*\\.(css|less|styl|scss|sass)$": "<rootDir>/jest/mocks/cssModule.js", | ||
"(.*)\\.js$": "$1" | ||
}, | ||
"setupFilesAfterEnv": ["<rootDir>/jest/setup.ts"], | ||
"collectCoverageFrom": [ | ||
"src/**/*.{js,jsx,ts,tsx}", | ||
"!src/index.js", | ||
"!src/**/*.test.{js,jsx,ts,tsx}" | ||
], | ||
"coverageThreshold": { | ||
"global": { | ||
"statements": 90, | ||
"branches": 84, | ||
"functions": 90, | ||
"lines": 90 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import raf from './polyfills/raf' | ||
import raf from './polyfills/raf'; | ||
import { configure } from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
|
||
// @ts-ignore | ||
configure({ adapter: new Adapter() }); | ||
configure({ adapter: new Adapter() }); |
Oops, something went wrong.