-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
70 lines (70 loc) · 2.8 KB
/
package.json
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
{
"name": "markdown-story",
"version": "1.0.0",
"main": "./lib/core.mjs",
"type": "module",
"license": "MIT",
"sideEffect": false,
"files": [
"lib"
],
"exports": {
".": {
"import": "./lib/core.mjs",
"require": "./lib/core.cjs",
"types": "./lib/types/app/core/index.d.ts"
},
"./preact": {
"import": "./lib/preact.mjs",
"require": "./lib/preact.cjs",
"types": "./lib/types/app/preact/index.d.ts"
},
"./vite": {
"import": "./lib/vite.mjs",
"require": "./lib/vite.cjs",
"types": "./lib/types/app/vite/index.d.ts"
}
},
"scripts": {
"build": "yarn build:example && yarn build:vite:esm && yarn build:vite:cjs && yarn build:preact:esm && yarn build:preact:cjs && yarn build:core:esm && yarn build:core:cjs",
"build:example": "tsc && vite build",
"build:vite:esm": "esbuild app/vite/index.ts --bundle --format=esm --platform=node --minify --outfile=lib/vite.mjs --external:rollup-pluginutils --external:remark --external:remark-inline-links",
"build:vite:cjs": "esbuild app/vite/index.ts --bundle --format=cjs --platform=node --minify --outfile=lib/vite.cjs --external:rollup-pluginutils --external:remark --external:remark-inline-links",
"build:preact:esm": "esbuild app/preact/index.ts --bundle --format=esm --platform=browser --minify --outfile=lib/preact.mjs --external:preact --external:@preact/signals",
"build:preact:cjs": "esbuild app/preact/index.ts --bundle --format=cjs --platform=browser --minify --outfile=lib/preact.cjs --external:preact --external:@preact/signals",
"build:core:esm": "esbuild app/core/index.ts --bundle --format=esm --platform=node --minify --outfile=lib/core.mjs --external:remark --external:remark-inline-links",
"build:core:cjs": "esbuild app/core/index.ts --bundle --format=cjs --platform=node --minify --outfile=lib/core.cjs --external:remark --external:remark-inline-links",
"test": "uvu -r esbuild-register",
"coverage": "c8 yarn test",
"dev": "vite dev",
"postinstall": "husky install",
"fmt": "prettier --write .",
"fmt.staged": "pretty-quick --staged",
"fmt.check": "pretty-quick --check"
},
"dependencies": {
"@preact/signals": "^1.1.3",
"preact": "^10.13.2",
"remark": "^14.0.2",
"remark-inline-links": "^6.0.1",
"rollup-pluginutils": "^2.8.2"
},
"devDependencies": {
"@preact/preset-vite": "^2.5.0",
"autoprefixer": "^10.4.14",
"c8": "^7.13.0",
"esbuild": "^0.17.18",
"esbuild-register": "^3.4.2",
"husky": "^8.0.3",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.2.8",
"pretty-quick": "^3.1.3",
"sass": "^1.62.1",
"tailwindcss": "^3.3.2",
"tailwindcss-animate": "^1.0.5",
"typescript": "^5.0.4",
"uvu": "^0.5.6",
"vite": "^4.3.2",
"vite-tsconfig-paths": "^4.2.0"
}
}