@sapphire/docusaurus-plugin-ts2esm2cjs 2.0.2-next.38a7691.0 → 2.0.2-next.621df18.0

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 (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -25,17 +25,19 @@ In your `docusaurus.config.js`, for the plugins where you need this feature (doc
25
25
 
26
26
  ```js
27
27
  // docusaurus.config.js
28
- module.exports = {
28
+ import { ts2esm2cjs } from '@sapphire/docusaurus-plugin-ts2esm2cjs';
29
+
30
+ export default {
29
31
  // ...
30
32
  presets: [
31
33
  [
32
34
  '@docusaurus/preset-classic',
33
35
  {
34
36
  docs: {
35
- remarkPlugins: [[require('@sapphire/docusaurus-plugin-ts2esm2cjs')]]
37
+ remarkPlugins: [ts2esm2cjs]
36
38
  },
37
39
  pages: {
38
- remarkPlugins: [require('@sapphire/docusaurus-plugin-ts2esm2cjs')]
40
+ remarkPlugins: [ts2esm2cjs]
39
41
  },
40
42
  blog: {
41
43
  // ...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/docusaurus-plugin-ts2esm2cjs",
3
- "version": "2.0.2-next.38a7691.0",
3
+ "version": "2.0.2-next.621df18.0",
4
4
  "description": "Docusaurus Remark plugin for converting TypeScript code to ESM and CJS code",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",