@docusaurus/core 2.0.0-beta.13 → 2.0.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/bin/beforeCli.js +14 -15
  2. package/bin/docusaurus.js +7 -5
  3. package/lib/babel/preset.d.ts +1 -1
  4. package/lib/choosePort.js +8 -8
  5. package/lib/client/LinksCollector.d.ts +1 -1
  6. package/lib/client/PendingNavigation.d.ts +2 -2
  7. package/lib/client/exports/BrowserOnly.d.ts +1 -1
  8. package/lib/client/exports/BrowserOnly.js +7 -2
  9. package/lib/client/exports/ErrorBoundary.d.ts +1 -1
  10. package/lib/client/exports/ErrorBoundary.js +3 -1
  11. package/lib/client/exports/Interpolate.d.ts +1 -1
  12. package/lib/client/exports/Translate.d.ts +2 -2
  13. package/lib/client/exports/browserContext.d.ts +1 -1
  14. package/lib/client/exports/docusaurusContext.d.ts +2 -2
  15. package/lib/client/exports/useBaseUrl.js +2 -2
  16. package/lib/client/exports/useDocusaurusContext.d.ts +1 -1
  17. package/lib/client/nprogress.css +2 -2
  18. package/lib/client/preload.d.ts +1 -1
  19. package/lib/client/serverEntry.d.ts +10 -0
  20. package/lib/client/serverEntry.js +86 -126
  21. package/lib/commands/build.d.ts +1 -1
  22. package/lib/commands/build.js +17 -15
  23. package/lib/commands/clear.js +10 -11
  24. package/lib/commands/commandUtils.d.ts +1 -1
  25. package/lib/commands/deploy.d.ts +1 -1
  26. package/lib/commands/deploy.js +12 -14
  27. package/lib/commands/external.d.ts +1 -1
  28. package/lib/commands/external.js +1 -1
  29. package/lib/commands/serve.d.ts +1 -1
  30. package/lib/commands/serve.js +2 -8
  31. package/lib/commands/start.d.ts +1 -1
  32. package/lib/commands/start.js +23 -22
  33. package/lib/commands/swizzle.d.ts +1 -1
  34. package/lib/commands/swizzle.js +26 -35
  35. package/lib/commands/writeHeadingIds.d.ts +1 -1
  36. package/lib/commands/writeHeadingIds.js +4 -5
  37. package/lib/commands/writeTranslations.d.ts +2 -2
  38. package/lib/commands/writeTranslations.js +1 -1
  39. package/lib/server/brokenLinks.d.ts +1 -1
  40. package/lib/server/brokenLinks.js +1 -2
  41. package/lib/server/client-modules/index.d.ts +1 -1
  42. package/lib/server/config.d.ts +2 -2
  43. package/lib/server/config.js +5 -2
  44. package/lib/server/configValidation.d.ts +1 -1
  45. package/lib/server/configValidation.js +5 -4
  46. package/lib/server/duplicateRoutes.d.ts +1 -1
  47. package/lib/server/html-tags/index.d.ts +1 -1
  48. package/lib/server/i18n.d.ts +1 -1
  49. package/lib/server/i18n.js +6 -14
  50. package/lib/server/index.d.ts +1 -1
  51. package/lib/server/index.js +26 -15
  52. package/lib/server/loadSetup.d.ts +1 -1
  53. package/lib/server/moduleShorthand.js +11 -7
  54. package/lib/server/plugins/applyRouteTrailingSlash.d.ts +2 -2
  55. package/lib/server/plugins/index.d.ts +1 -1
  56. package/lib/server/plugins/index.js +3 -3
  57. package/lib/server/plugins/init.d.ts +2 -2
  58. package/lib/server/plugins/init.js +10 -9
  59. package/lib/server/plugins/pluginIds.d.ts +1 -1
  60. package/lib/server/presets/index.d.ts +1 -1
  61. package/lib/server/presets/index.js +1 -1
  62. package/lib/server/routes.d.ts +1 -1
  63. package/lib/server/routes.js +1 -2
  64. package/lib/server/themes/alias.d.ts +1 -1
  65. package/lib/server/themes/index.d.ts +1 -1
  66. package/lib/server/translations/translations.d.ts +1 -1
  67. package/lib/server/translations/translations.js +7 -12
  68. package/lib/server/translations/translationsExtractor.d.ts +2 -2
  69. package/lib/server/translations/translationsExtractor.js +123 -92
  70. package/lib/server/utils.d.ts +1 -1
  71. package/lib/server/versions/__tests/index.test.js +6 -5
  72. package/lib/server/versions/index.d.ts +1 -1
  73. package/lib/webpack/base.d.ts +2 -2
  74. package/lib/webpack/client.d.ts +2 -2
  75. package/lib/webpack/client.js +2 -2
  76. package/lib/webpack/plugins/ChunkAssetPlugin.d.ts +1 -1
  77. package/lib/webpack/plugins/CleanWebpackPlugin.d.ts +1 -1
  78. package/lib/webpack/plugins/LogPlugin.d.ts +1 -1
  79. package/lib/webpack/plugins/WaitPlugin.d.ts +1 -1
  80. package/lib/webpack/server.d.ts +2 -2
  81. package/lib/{client → webpack}/templates/index.html.template.ejs +0 -0
  82. package/lib/webpack/templates/ssr.html.template.d.ts +8 -0
  83. package/lib/{client → webpack}/templates/ssr.html.template.js +3 -2
  84. package/lib/webpack/utils.d.ts +4 -4
  85. package/lib/webpack/utils.js +19 -14
  86. package/package.json +22 -22
  87. package/lib/.tsbuildinfo +0 -1
  88. package/lib/client/.tsbuildinfo +0 -1
  89. package/tsconfig.client.json +0 -12
  90. package/tsconfig.json +0 -14
package/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "incremental": true,
5
- "lib": ["DOM", "ES2019"],
6
- "tsBuildInfoFile": "./lib/.tsbuildinfo",
7
- "rootDir": "src",
8
- "outDir": "lib",
9
- "jsx": "react",
10
- "allowJs": true
11
- },
12
- "include": ["src"],
13
- "exclude": ["**/__tests__/**/*", "src/client"]
14
- }