diff --git a/.eslintignore b/.eslintignore index 0871961de1b7..48fa766a507d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,6 +3,7 @@ bin/ flow-typed/** packages/*/build/** +packages/*/dist/** packages/jest-diff/src/cleanupSemantic.ts website/.docusaurus website/blog diff --git a/.gitignore b/.gitignore index 12c5fbd4402a..7dfb5101b363 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ /node_modules /packages/*/build/ +/packages/*/dist/ /packages/*/coverage/ /packages/*/node_modules/ @@ -40,6 +41,7 @@ junit.xml package-lock.json *.tsbuildinfo +api-extractor.json # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored but nested for e2e directories **/.yarn/* diff --git a/.npmignore b/.npmignore deleted file mode 100644 index d4d07d3d730e..000000000000 --- a/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -**/__mocks__/** -**/__tests__/** -src -tsconfig.json -tsconfig.tsbuildinfo \ No newline at end of file diff --git a/packages/babel-jest/.npmignore b/packages/babel-jest/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/babel-jest/.npmignore +++ b/packages/babel-jest/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/babel-plugin-jest-hoist/.npmignore b/packages/babel-plugin-jest-hoist/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/babel-plugin-jest-hoist/.npmignore +++ b/packages/babel-plugin-jest-hoist/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/babel-preset-jest/.npmignore b/packages/babel-preset-jest/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/babel-preset-jest/.npmignore +++ b/packages/babel-preset-jest/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/diff-sequences/.npmignore b/packages/diff-sequences/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/diff-sequences/.npmignore +++ b/packages/diff-sequences/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/expect/.npmignore b/packages/expect/.npmignore index 83740ab0bc5a..80bf61eb922c 100644 --- a/packages/expect/.npmignore +++ b/packages/expect/.npmignore @@ -4,3 +4,4 @@ __typetests__ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-changed-files/.npmignore b/packages/jest-changed-files/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-changed-files/.npmignore +++ b/packages/jest-changed-files/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-circus/.npmignore b/packages/jest-circus/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-circus/.npmignore +++ b/packages/jest-circus/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-cli/.npmignore b/packages/jest-cli/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-cli/.npmignore +++ b/packages/jest-cli/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-config/.npmignore b/packages/jest-config/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-config/.npmignore +++ b/packages/jest-config/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-console/.npmignore b/packages/jest-console/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-console/.npmignore +++ b/packages/jest-console/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-core/.npmignore b/packages/jest-core/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-core/.npmignore +++ b/packages/jest-core/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-diff/.npmignore b/packages/jest-diff/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-diff/.npmignore +++ b/packages/jest-diff/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-docblock/.npmignore b/packages/jest-docblock/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-docblock/.npmignore +++ b/packages/jest-docblock/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-each/.npmignore b/packages/jest-each/.npmignore index 3685848b64f2..e39ea04d059f 100644 --- a/packages/jest-each/.npmignore +++ b/packages/jest-each/.npmignore @@ -4,3 +4,4 @@ src assets tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-environment-jsdom/.npmignore b/packages/jest-environment-jsdom/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-environment-jsdom/.npmignore +++ b/packages/jest-environment-jsdom/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-environment-node/.npmignore b/packages/jest-environment-node/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-environment-node/.npmignore +++ b/packages/jest-environment-node/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-environment/.npmignore b/packages/jest-environment/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-environment/.npmignore +++ b/packages/jest-environment/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-fake-timers/.npmignore b/packages/jest-fake-timers/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-fake-timers/.npmignore +++ b/packages/jest-fake-timers/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-get-type/.npmignore b/packages/jest-get-type/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-get-type/.npmignore +++ b/packages/jest-get-type/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-globals/.npmignore b/packages/jest-globals/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-globals/.npmignore +++ b/packages/jest-globals/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-haste-map/.npmignore b/packages/jest-haste-map/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-haste-map/.npmignore +++ b/packages/jest-haste-map/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-jasmine2/.npmignore b/packages/jest-jasmine2/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-jasmine2/.npmignore +++ b/packages/jest-jasmine2/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-leak-detector/.npmignore b/packages/jest-leak-detector/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-leak-detector/.npmignore +++ b/packages/jest-leak-detector/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-matcher-utils/.npmignore b/packages/jest-matcher-utils/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-matcher-utils/.npmignore +++ b/packages/jest-matcher-utils/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-message-util/.npmignore b/packages/jest-message-util/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-message-util/.npmignore +++ b/packages/jest-message-util/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-mock/.npmignore b/packages/jest-mock/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-mock/.npmignore +++ b/packages/jest-mock/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-phabricator/.npmignore b/packages/jest-phabricator/.npmignore index aa4d010f4035..7f7d90bc4416 100644 --- a/packages/jest-phabricator/.npmignore +++ b/packages/jest-phabricator/.npmignore @@ -4,3 +4,4 @@ example src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-regex-util/.npmignore b/packages/jest-regex-util/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-regex-util/.npmignore +++ b/packages/jest-regex-util/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-repl/.npmignore b/packages/jest-repl/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-repl/.npmignore +++ b/packages/jest-repl/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-reporters/.npmignore b/packages/jest-reporters/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-reporters/.npmignore +++ b/packages/jest-reporters/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-resolve-dependencies/.npmignore b/packages/jest-resolve-dependencies/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-resolve-dependencies/.npmignore +++ b/packages/jest-resolve-dependencies/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-resolve/.npmignore b/packages/jest-resolve/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-resolve/.npmignore +++ b/packages/jest-resolve/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-runner/.npmignore b/packages/jest-runner/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-runner/.npmignore +++ b/packages/jest-runner/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-runtime/.npmignore b/packages/jest-runtime/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-runtime/.npmignore +++ b/packages/jest-runtime/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-serializer/.npmignore b/packages/jest-serializer/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-serializer/.npmignore +++ b/packages/jest-serializer/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-snapshot/.npmignore b/packages/jest-snapshot/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-snapshot/.npmignore +++ b/packages/jest-snapshot/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-source-map/.npmignore b/packages/jest-source-map/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-source-map/.npmignore +++ b/packages/jest-source-map/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-test-result/.npmignore b/packages/jest-test-result/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-test-result/.npmignore +++ b/packages/jest-test-result/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-test-sequencer/.npmignore b/packages/jest-test-sequencer/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-test-sequencer/.npmignore +++ b/packages/jest-test-sequencer/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-transform/.npmignore b/packages/jest-transform/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-transform/.npmignore +++ b/packages/jest-transform/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-types/.npmignore b/packages/jest-types/.npmignore index 83740ab0bc5a..80bf61eb922c 100644 --- a/packages/jest-types/.npmignore +++ b/packages/jest-types/.npmignore @@ -4,3 +4,4 @@ __typetests__ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-util/.npmignore b/packages/jest-util/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-util/.npmignore +++ b/packages/jest-util/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-validate/.npmignore b/packages/jest-validate/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-validate/.npmignore +++ b/packages/jest-validate/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-watcher/.npmignore b/packages/jest-watcher/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest-watcher/.npmignore +++ b/packages/jest-watcher/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest-worker/.npmignore b/packages/jest-worker/.npmignore index 4904e404bea3..c7af63914cb0 100644 --- a/packages/jest-worker/.npmignore +++ b/packages/jest-worker/.npmignore @@ -4,3 +4,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/jest/.npmignore b/packages/jest/.npmignore index 3ee5d55b0b89..70febcbacbcb 100644 --- a/packages/jest/.npmignore +++ b/packages/jest/.npmignore @@ -3,3 +3,4 @@ src tsconfig.json tsconfig.tsbuildinfo +api-extractor.json diff --git a/packages/pretty-format/.npmignore b/packages/pretty-format/.npmignore index b11975bef5ac..c70bb3e9d8bd 100644 --- a/packages/pretty-format/.npmignore +++ b/packages/pretty-format/.npmignore @@ -4,3 +4,4 @@ src perf tsconfig.json tsconfig.tsbuildinfo +api-extractor.json