md-editor-lite 0.1.3 → 0.1.4

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 +10 -0
  2. package/package.json +9 -4
package/README.md CHANGED
@@ -53,6 +53,16 @@ npm install md-editor-lite
53
53
 
54
54
  ---
55
55
 
56
+ ### Styles
57
+
58
+ This library does not inject styles automatically.
59
+
60
+ ```ts
61
+ import "md-editor-lite/style.css";
62
+ ```
63
+
64
+ ---
65
+
56
66
  ## 🚀 Basic Usage (Uncontrolled)
57
67
 
58
68
  ```tsx
package/package.json CHANGED
@@ -10,10 +10,15 @@
10
10
  "lightweight",
11
11
  "textarea"
12
12
  ],
13
- "version": "0.1.3",
14
- "main": "dist/index.js",
15
- "module": "dist/index.mjs",
16
- "types": "dist/index.d.ts",
13
+ "version": "0.1.4",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.mjs",
17
+ "require": "./dist/index.js",
18
+ "types": "./dist/index.d.ts"
19
+ },
20
+ "./style.css": "./dist/style.css"
21
+ },
17
22
  "scripts": {
18
23
  "build": "tsup src/index.ts --format esm,cjs --dts --clean --tsconfig tsconfig.build.json"
19
24
  },