-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
74 lines (74 loc) · 2.57 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
71
72
73
74
{
"name": "react-markdown-heading",
"description": "Render markdown table of contents as React component",
"version": "1.6.0",
"keywords": [
"markdown",
"markdown-toc",
"react",
"react-component",
"typescript"
],
"module": "dist/index.mjs",
"main": "dist/index.cjs",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/kyoncy/react-markdown-heading.git"
},
"author": "kyoncy <[email protected]>",
"license": "MIT",
"scripts": {
"build": "run-s build:esm build:cjs build:types",
"build:esm": "esbuild src/index.ts --format=esm --target=es6 --bundle '--define:process.env.NODE_ENV=\"production\"' --external:\"react\" --external:\"mdast-util-from-markdown\" --minify --outfile=dist/index.mjs",
"build:cjs": "esbuild src/index.ts --format=cjs --target=es6 --bundle '--define:process.env.NODE_ENV=\"production\"' --external:\"react\" --external:\"mdast-util-from-markdown\" --minify --outfile=dist/index.cjs",
"build:types": "tsc ./src/**/*.ts ./src/**/*.tsx --emitDeclarationOnly --declaration --jsx react-jsx --outDir ./dist",
"start": "webpack serve",
"lint": "eslint --ext .ts,.tsx .",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage",
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch",
"preversion": "npm t",
"prepublishOnly": "run-s test build"
},
"dependencies": {
"mdast-util-from-markdown": "1.2.0"
},
"devDependencies": {
"@types/enzyme": "3.10.11",
"@types/enzyme-adapter-react-16": "1.0.6",
"@types/jest": "27.4.0",
"@types/react": "17.0.38",
"@types/react-dom": "17.0.11",
"@types/webpack-dev-server": "4.7.1",
"@typescript-eslint/eslint-plugin": "5.10.0",
"@typescript-eslint/parser": "5.10.0",
"@wojtekmaj/enzyme-adapter-react-17": "0.6.6",
"assert": "2.0.0",
"classnames": "2.3.1",
"css-loader": "6.5.1",
"enzyme": "3.11.0",
"esbuild": "0.14.11",
"eslint": "8.7.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.28.0",
"html-webpack-plugin": "5.5.0",
"jest": "27.4.7",
"npm-run-all": "4.1.5",
"prettier": "2.5.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"style-loader": "3.3.1",
"ts-jest": "27.1.3",
"ts-loader": "9.2.6",
"ts-node": "10.4.0",
"typescript": "4.5.4",
"webpack": "5.66.0",
"webpack-cli": "4.9.1",
"webpack-dev-server": "4.7.3"
},
"peerDependencies": {
"react": "^17.0.2"
}
}