|
3 | 3 | "version": "3.2.2",
|
4 | 4 | "description": "React component preview markdown text in web browser. The minimal amount of CSS to replicate the GitHub Markdown style.",
|
5 | 5 | "homepage": "https://uiwjs.github.io/react-markdown-preview",
|
6 |
| - "main": "lib/cjs/index.js", |
7 |
| - "module": "lib/esm/index.js", |
| 6 | + "main": "lib/index.js", |
| 7 | + "module": "esm/index.js", |
8 | 8 | "scripts": {
|
9 |
| - "prepare": "npm run build:lib", |
| 9 | + "prepare": "npm run build", |
10 | 10 | "doc": "kkt build --app-src ./website",
|
11 | 11 | "start": "kkt start --app-src ./website",
|
12 |
| - "build": "npm run build:lib && npm run doc", |
13 |
| - "build:lib": "npm run ts:build && npm run types:esm && npm run types:cjs && npm run css:build && npm run css:build:dist", |
14 |
| - "watch": "npm run ts:watch & npm run types:watch & npm run css:watch", |
15 |
| - "types:build": "tsbb types --sourceRoot src --target ESNEXT", |
16 |
| - "types:watch": "npm run types:esm -- --watch & npm run types:cjs -- --watch", |
17 |
| - "types:esm": "npm run types:build -- --outDir ../lib/esm", |
18 |
| - "types:cjs": "npm run types:build -- --outDir ../lib/cjs", |
19 |
| - "css:build": "compile-less -d src -o lib/esm", |
20 |
| - "css:watch": "compile-less -d src -o lib/esm --watch", |
21 |
| - "css:build:dist": "compile-less -d src --combine dist/markdown.css --rm-global", |
22 |
| - "ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react", |
23 |
| - "ts:build": "tsbb build --target react" |
| 12 | + "css:build": "compile-less -d src -o esm", |
| 13 | + "css:watch": "compile-less -d src -o esm --watch", |
| 14 | + "css:build:dist": "compile-less -d src --combine markdown.css --rm-global", |
| 15 | + "watch": "tsbb watch", |
| 16 | + "build": "tsbb build && npm run css:build && npm run css:build:dist" |
24 | 17 | },
|
25 | 18 | "repository": {
|
26 | 19 | "type": "git",
|
|
30 | 23 | "license": "MIT",
|
31 | 24 | "files": [
|
32 | 25 | "lib",
|
33 |
| - "dist", |
| 26 | + "esm", |
| 27 | + "markdown.css", |
34 | 28 | "src"
|
35 | 29 | ],
|
36 | 30 | "keywords": [
|
|
57 | 51 | "@kkt/less-modules": "6.11.0",
|
58 | 52 | "@kkt/raw-modules": "6.11.0",
|
59 | 53 | "@kkt/scope-plugin-options": "6.11.0",
|
60 |
| - "@types/react": "17.0.18", |
| 54 | + "@types/react": "17.0.19", |
61 | 55 | "@types/react-dom": "17.0.9",
|
62 | 56 | "@uiw/react-codesandbox": "1.1.0",
|
63 | 57 | "@uiw/react-github-corners": "1.4.0",
|
64 | 58 | "@uiw/react-shields": "1.1.1",
|
65 | 59 | "@uiw/reset.css": "1.0.5",
|
66 |
| - "compile-less-cli": "1.8.0", |
| 60 | + "compile-less-cli": "1.8.1", |
67 | 61 | "kkt": "6.11.0",
|
68 | 62 | "react": "17.0.2",
|
69 | 63 | "react-dom": "17.0.2",
|
70 |
| - "tsbb": "2.3.1" |
| 64 | + "tsbb": "3.0.0" |
71 | 65 | },
|
72 | 66 | "eslintConfig": {
|
73 | 67 | "extends": "react-app"
|
|
0 commit comments