-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
86 lines (86 loc) · 3.83 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
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "remark-renumber-references",
"version": "2.0.0",
"description": "remark plugin that renumbers numeric reference-style link ids contiguously starting from [1]",
"keywords": [
"unified",
"mdast",
"remark",
"remark-plugin",
"plugin",
"markdown",
"link",
"image",
"reference",
"definition",
"number",
"renumber",
"start",
"from",
"one"
],
"homepage": "https://github.com/Xunnamius/unified-utils/blob/main/packages/remark-renumber-references",
"repository": {
"type": "git",
"url": "https://github.com/Xunnamius/unified-utils"
},
"license": "MIT",
"author": "Xunnamius",
"sideEffects": false,
"type": "commonjs",
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"node": "./dist/src/index.mjs",
"default": "./dist/src/index.mjs"
},
"./package": "./package.json",
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"*": [
"./dist/src/index.d.ts"
]
}
},
"project": {
"documentation": {
"entry": "./src/*"
}
},
"files": [
"/dist",
"/LICENSE",
"/package.json",
"/README.md"
],
"scripts": {
"build": "npm run build:dist --",
"build:changelog": "conventional-changelog --outfile CHANGELOG.md --config ../../conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"../../conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && NODE_ENV=format remark --output --frail CHANGELOG.md && prettier --write CHANGELOG.md",
"build:dist": "echo '> Generating types...' && NODE_ENV=production tsc --project tsconfig.types.json --incremental false && tsconfig-replace-paths --project tsconfig.types.json && echo '> Building distributables...' && NODE_ENV=production-esm babel src --extensions .ts --out-dir dist/src --out-file-extension .mjs --root-mode upward && echo '> Organizing types...' && cp --recursive --link --force --target-directory=dist dist/$(realpath --relative-base=../.. .)/* && rm --recursive --force dist/$(realpath --relative-base=../.. ..) && echo '> Refactoring types...' && NODE_ENV=production-types npx babel dist --extensions .ts --only '**/*.d.ts' --out-dir dist --keep-file-extension --root-mode upward",
"build:docs": "if [ -r ./next.config.js ]; then typedoc --plugin typedoc-plugin-markdown --cleanOutputDir --tsconfig tsconfig.docs.json --out docs --readme none lib src test types external-scripts --exclude '**/*.test.*' --exclude external-scripts/bin; else ENTRY=`node -e 'const entry = require(\"./package.json\").project?.documentation?.entry; if(!entry) throw new Error(\"\\\"project.documentation.entry\\\" field is not defined in package.json\"); console.log(entry)'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --cleanOutputDir --tsconfig tsconfig.docs.json --out docs --readme none $(echo $ENTRY); fi",
"clean": "git ls-files --exclude-standard --ignored --others --directory | grep -vE '^((\\.(env|vscode|husky))|next-env\\.d\\.ts|node_modules)($|\\/)' | xargs -p rm -rf",
"format": "cd ../.. && npm run format",
"lint": "echo 'IMPLEMENT ME'",
"list-tasks": "node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))'",
"test": "npm run test:unit --",
"test:integration": "echo 'IMPLEMENT ME'",
"test:unit": "echo 'IMPLEMENT ME'"
},
"dependencies": {
"@types/mdast": "^4.0.3",
"mdast-util-hidden": "^1.1.4",
"remark-inline-links": "^7.0.0",
"remark-reference-links": "^7.0.0",
"unified": "^11.0.4",
"unist-util-remove-position": "^5.0.0",
"unist-util-visit": "^5.0.0"
},
"engines": {
"node": "^18.16.0 || >=20.4.0"
},
"publishConfig": {
"access": "public"
}
}