Closed scalvert closed 1 year ago
Fixes publishing to correctly exclude package contents.
Before fix:
After fix:
❯ npm pack (base) npm notice npm notice 📦 docusaurus-plugin-search-local@0.10.0 npm notice === Tarball Contents === npm notice 6.7kB CHANGELOG.md npm notice 1.1kB LICENSE npm notice 11.2kB README.md npm notice 589B dist/client/theme/ErrorBoundary.d.ts npm notice 540B dist/client/theme/ErrorBoundary.js npm notice 260B dist/client/theme/hooks/useSearchQuery.d.ts npm notice 1.4kB dist/client/theme/hooks/useSearchQuery.js npm notice 129B dist/client/theme/LoadingRing/LoadingRing.d.ts npm notice 440B dist/client/theme/LoadingRing/LoadingRing.js npm notice 859B dist/client/theme/LoadingRing/LoadingRing.module.css npm notice 63B dist/client/theme/SearchBar/index.d.ts npm notice 63B dist/client/theme/SearchBar/index.js npm notice 189B dist/client/theme/SearchBar/SearchBar.d.ts npm notice 2.9kB dist/client/theme/SearchBar/SearchBar.js npm notice 2.1kB dist/client/theme/SearchBar/SearchButton.css npm notice 491B dist/client/theme/SearchBar/SearchButton.d.ts npm notice 2.5kB dist/client/theme/SearchBar/SearchButton.js npm notice 500B dist/client/theme/SearchModal/icons.d.ts npm notice 2.9kB dist/client/theme/SearchModal/icons.js npm notice 69B dist/client/theme/SearchModal/index.d.ts npm notice 69B dist/client/theme/SearchModal/index.js npm notice 5.0kB dist/client/theme/SearchModal/index.module.css npm notice 166B dist/client/theme/SearchModal/SearchModal.d.ts npm notice 10.4kB dist/client/theme/SearchModal/SearchModal.js npm notice 489B dist/client/theme/SearchModal/SearchResult.d.ts npm notice 4.8kB dist/client/theme/SearchModal/SearchResult.js npm notice 546B dist/client/theme/SearchModal/SearchResultList.d.ts npm notice 755B dist/client/theme/SearchModal/SearchResultList.js npm notice 251B dist/client/theme/SearchModal/SearchResultsSection.d.ts npm notice 999B dist/client/theme/SearchModal/SearchResultsSection.js npm notice 66B dist/client/theme/SearchPage/index.d.ts npm notice 66B dist/client/theme/SearchPage/index.js npm notice 85B dist/client/theme/SearchPage/SearchPage.d.ts npm notice 5.6kB dist/client/theme/SearchPage/SearchPage.js npm notice 605B dist/client/theme/SearchPage/SearchPage.module.css npm notice 196B dist/client/utils/escapeHtml.d.ts npm notice 354B dist/client/utils/escapeHtml.js npm notice 235B dist/client/utils/fetchIndexes.d.ts npm notice 963B dist/client/utils/fetchIndexes.js npm notice 87B dist/client/utils/getExternalURI.d.ts npm notice 1.6kB dist/client/utils/getExternalURI.js npm notice 168B dist/client/utils/getStemmedPositions.d.ts npm notice 465B dist/client/utils/getStemmedPositions.js npm notice 390B dist/client/utils/highlight.d.ts npm notice 1.1kB dist/client/utils/highlight.js npm notice 410B dist/client/utils/highlightStemmed.d.ts npm notice 3.4kB dist/client/utils/highlightStemmed.js npm notice 66B dist/client/utils/looseTokenize.d.ts npm notice 545B dist/client/utils/looseTokenize.js npm notice 147B dist/client/utils/processTreeStatusOfSearchResults.d.ts npm notice 439B dist/client/utils/processTreeStatusOfSearchResults.js npm notice 163B dist/client/utils/SearchAnalyticsFactory.d.ts npm notice 1.3kB dist/client/utils/SearchAnalyticsFactory.js npm notice 389B dist/client/utils/SearchSourceFactory.d.ts npm notice 2.4kB dist/client/utils/SearchSourceFactory.js npm notice 99B dist/client/utils/simpleTemplate.d.ts npm notice 276B dist/client/utils/simpleTemplate.js npm notice 404B dist/client/utils/smartQueries.d.ts npm notice 3.5kB dist/client/utils/smartQueries.js npm notice 416B dist/client/utils/smartTerms.d.ts npm notice 739B dist/client/utils/smartTerms.js npm notice 132B dist/client/utils/sortSearchResults.d.ts npm notice 971B dist/client/utils/sortSearchResults.js npm notice 233B dist/client/utils/tokenize.d.ts npm notice 312B dist/client/utils/tokenize.js npm notice 278B dist/server/index.d.ts npm notice 1.8kB dist/server/index.js npm notice 459B dist/server/options.d.ts npm notice 4.7kB dist/server/options.js npm notice 165B dist/server/utils/buildIndex.d.ts npm notice 727B dist/server/utils/buildIndex.js npm notice 70B dist/server/utils/cutWordByUnderscore.d.ts npm notice 368B dist/server/utils/cutWordByUnderscore.js npm notice 198B dist/server/utils/debug.d.ts npm notice 443B dist/server/utils/debug.js npm notice 147B dist/server/utils/getCondensedText.d.ts npm notice 1.4kB dist/server/utils/getCondensedText.js npm notice 212B dist/server/utils/getGlobalPluginData.d.ts npm notice 728B dist/server/utils/getGlobalPluginData.js npm notice 124B dist/server/utils/getIndexHash.d.ts npm notice 2.3kB dist/server/utils/getIndexHash.js npm notice 209B dist/server/utils/getPluginConfig.d.ts npm notice 1.5kB dist/server/utils/getPluginConfig.js npm notice 152B dist/server/utils/parse.d.ts npm notice 819B dist/server/utils/parse.js npm notice 152B dist/server/utils/parseDocument.d.ts npm notice 2.3kB dist/server/utils/parseDocument.js npm notice 161B dist/server/utils/parsePage.d.ts npm notice 926B dist/server/utils/parsePage.js npm notice 215B dist/server/utils/postBuildFactory.d.ts npm notice 1.6kB dist/server/utils/postBuildFactory.js npm notice 356B dist/server/utils/processDocInfos.d.ts npm notice 2.6kB dist/server/utils/processDocInfos.js npm notice 183B dist/server/utils/scanDocuments.d.ts npm notice 2.3kB dist/server/utils/scanDocuments.js npm notice 189B dist/server/utils/tokenizer.d.ts npm notice 1.8kB dist/server/utils/tokenizer.js npm notice 3.2kB dist/types.d.ts npm notice 77B dist/types.js npm notice 4.7kB package.json npm notice 630B src/client/theme/ErrorBoundary.tsx npm notice 1.3kB src/client/theme/hooks/useSearchQuery.ts npm notice 859B src/client/theme/LoadingRing/LoadingRing.module.css npm notice 387B src/client/theme/LoadingRing/LoadingRing.tsx npm notice 448B src/client/theme/SearchBar/__mocks__/icons.ts npm notice 64B src/client/theme/SearchBar/index.ts npm notice 2.7kB src/client/theme/SearchBar/SearchBar.tsx npm notice 2.1kB src/client/theme/SearchBar/SearchButton.css npm notice 2.7kB src/client/theme/SearchBar/SearchButton.tsx npm notice 3.0kB src/client/theme/SearchModal/icons.tsx npm notice 5.0kB src/client/theme/SearchModal/index.module.css npm notice 70B src/client/theme/SearchModal/index.ts npm notice 11.0kB src/client/theme/SearchModal/SearchModal.tsx npm notice 5.3kB src/client/theme/SearchModal/SearchResult.tsx npm notice 1.3kB src/client/theme/SearchModal/SearchResultList.tsx npm notice 1.2kB src/client/theme/SearchModal/SearchResultsSection.tsx npm notice 67B src/client/theme/SearchPage/index.ts npm notice 605B src/client/theme/SearchPage/SearchPage.module.css npm notice 6.1kB src/client/theme/SearchPage/SearchPage.tsx npm notice 627B src/client/utils/__fixtures__/search-index.json npm notice 1.9kB src/client/utils/__snapshots__/fetchIndexes.test.ts.snap npm notice 348B src/client/utils/escapeHtml.ts npm notice 2.7kB src/client/utils/fetchIndexes.test.ts npm notice 1.3kB src/client/utils/fetchIndexes.ts npm notice 3.6kB src/client/utils/getExternalURI.test.ts npm notice 1.6kB src/client/utils/getExternalURI.ts npm notice 776B src/client/utils/getStemmedPositions.test.ts npm notice 573B src/client/utils/getStemmedPositions.ts npm notice 955B src/client/utils/highlight.test.ts npm notice 1.1kB src/client/utils/highlight.ts npm notice 3.6kB src/client/utils/highlightStemmed.test.ts npm notice 3.5kB src/client/utils/highlightStemmed.ts npm notice 312B src/client/utils/looseTokenize.test.ts npm notice 536B src/client/utils/looseTokenize.ts npm notice 1.7kB src/client/utils/processTreeStatusOfSearchResults.test.ts npm notice 466B src/client/utils/processTreeStatusOfSearchResults.ts npm notice 1.4kB src/client/utils/SearchAnalyticsFactory.test.ts npm notice 1.7kB src/client/utils/SearchAnalyticsFactory.ts npm notice 2.0kB src/client/utils/SearchSourceFactory.test.ts npm notice 2.8kB src/client/utils/SearchSourceFactory.ts npm notice 521B src/client/utils/simpleTemplate.test.ts npm notice 295B src/client/utils/simpleTemplate.ts npm notice 3.0kB src/client/utils/smartQueries.test.ts npm notice 3.7kB src/client/utils/smartQueries.ts npm notice 324B src/client/utils/smartTerms.test.ts npm notice 795B src/client/utils/smartTerms.ts npm notice 1.4kB src/client/utils/sortSearchResults.test.ts npm notice 977B src/client/utils/sortSearchResults.ts npm notice 312B src/client/utils/tokenize.test.ts npm notice 327B src/client/utils/tokenize.ts npm notice 1.4kB src/docusaurus-plugin-search-local.d.ts npm notice 1.3kB src/server/index.ts npm notice 7.9kB src/server/options.test.ts npm notice 3.9kB src/server/options.ts npm notice 2.3kB src/server/utils/__snapshots__/getGlobalPluginData.test.ts.snap npm notice 643B src/server/utils/__snapshots__/getIndexHash.test.ts.snap npm notice 1.0kB src/server/utils/buildIndex.test.ts npm notice 548B src/server/utils/buildIndex.ts npm notice 392B src/server/utils/cutWordByUnderscore.test.ts npm notice 218B src/server/utils/cutWordByUnderscore.ts npm notice 242B src/server/utils/debug.ts npm notice 753B src/server/utils/getCondensedText.test.ts npm notice 1.2kB src/server/utils/getCondensedText.ts npm notice 3.3kB src/server/utils/getGlobalPluginData.test.ts npm notice 697B src/server/utils/getGlobalPluginData.ts npm notice 2.4kB src/server/utils/getIndexHash.test.ts npm notice 1.9kB src/server/utils/getIndexHash.ts npm notice 2.0kB src/server/utils/getPluginConfig.test.ts npm notice 1.4kB src/server/utils/getPluginConfig.ts npm notice 1.5kB src/server/utils/parse.test.ts npm notice 659B src/server/utils/parse.ts npm notice 3.4kB src/server/utils/parseDocument.test.ts npm notice 2.1kB src/server/utils/parseDocument.ts npm notice 1.6kB src/server/utils/parsePage.test.ts npm notice 795B src/server/utils/parsePage.ts npm notice 1.2kB src/server/utils/postBuildFactory.ts npm notice 8.2kB src/server/utils/processDocInfos.test.ts npm notice 2.7kB src/server/utils/processDocInfos.ts npm notice 2.6kB src/server/utils/scanDocuments.test.ts npm notice 1.8kB src/server/utils/scanDocuments.ts npm notice 1.2kB src/server/utils/tokenizer.test.ts npm notice 1.6kB src/server/utils/tokenizer.ts npm notice 3.0kB src/types.ts npm notice === Tarball Details === npm notice name: docusaurus-plugin-search-local npm notice version: 0.10.0 npm notice filename: docusaurus-plugin-search-local-0.10.0.tgz npm notice package size: 66.3 kB npm notice unpacked size: 280.1 kB npm notice shasum: aef067f279d23c930debe88012f09b59898c4552 npm notice integrity: sha512-xu3SXkZcYN9KG[...]faNkduckXu05g== npm notice total files: 183 npm notice docusaurus-plugin-search-local-0.10.0.tgz
Unsure if we actually want to publish .ts files, but included them for consistency.
.ts
Just going to merge this one through, since it's just related to publishing.
Fixes publishing to correctly exclude package contents.
Before fix:
After fix: