-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
98 lines (98 loc) · 2.67 KB
/
package.json
File metadata and controls
98 lines (98 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "@create-markdown/preview",
"version": "2.0.3",
"description": "Framework-agnostic HTML rendering for @create-markdown with optional syntax highlighting",
"author": "Val Alexander <val@viewdue.ai>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/BunsDev/create-markdown",
"directory": "packages/preview"
},
"homepage": "https://github.com/BunsDev/create-markdown/tree/main/packages/preview",
"bugs": {
"url": "https://github.com/BunsDev/create-markdown/issues"
},
"keywords": [
"markdown",
"preview",
"html",
"shiki",
"web-component",
"typescript"
],
"type": "module",
"sideEffects": [
"**/*.css"
],
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./web-component": {
"import": {
"types": "./dist/web-component.d.ts",
"default": "./dist/web-component.js"
}
},
"./themes/github.css": "./dist/themes/github.css",
"./themes/github-dark.css": "./dist/themes/github-dark.css",
"./themes/minimal.css": "./dist/themes/minimal.css",
"./themes/system.css": "./dist/themes/system.css",
"./themes": {
"import": {
"types": "./dist/themes/css-strings.d.ts",
"default": "./dist/themes/css-strings.js"
},
"require": {
"types": "./dist/themes/css-strings.d.ts",
"default": "./dist/themes/css-strings.cjs"
}
}
},
"files": [
"dist"
],
"scripts": {
"build": "pnpm run build:theme-strings && pnpm run build:js && pnpm run build:types && pnpm run build:css",
"build:theme-strings": "tsx scripts/generate-css-strings.ts",
"build:js": "tsup --config tsup.config.ts",
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist",
"build:css": "mkdir -p dist/themes && cp -f src/themes/*.css dist/themes/",
"dev": "pnpm run build:theme-strings && tsup --config tsup.config.ts --watch",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
"devDependencies": {
"@create-markdown/core": "workspace:^",
"shiki": "^4.0.2",
"typescript": "^6.0.2",
"vite": "7.1.11",
"vitest": "^4.1.2"
},
"peerDependencies": {
"@create-markdown/core": ">=2.0.3",
"shiki": ">=1.0.0"
},
"peerDependenciesMeta": {
"@create-markdown/core": {
"optional": true
},
"shiki": {
"optional": true
}
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.0.0"
}
}