Skip to content

Commit 032ad2b

Browse files
committed
Update package script for link:full
1 parent b27a4c8 commit 032ad2b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

components/bin/link-full

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const dir = path.join(__dirname, '..', '..');
5+
6+
if (fs.existsSync(path.join(dir, 'node_modules'))) {
7+
fs.symlinkSync(dir, path.join(dir, 'node_modules', 'mathjax-full'));
8+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mathjax-full",
3-
"version": "4.0.0-beta.1",
3+
"version": "4.0.0-beta.2",
44
"description": "Beautiful and accessible math in all browsers. MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all browsers and in server-side node applications. This package includes the source code as well as the packaged components.",
55
"keywords": [
66
"MathJax",
@@ -114,7 +114,7 @@
114114
"make-mml3-xslt": "cd ts/input/mathml/mml3 && npx xslt3 -t -xsl:mml3.xsl -export:mml3.sef.json -nogo",
115115
"postmake-mml3-xslt": "npx rimraf ts/input/mathml/mml3/mml3.xsl",
116116
"=============================================================================== install": "",
117-
"link:full": "node -e 'require(\"fs\").symlinkSync(process.cwd(), \"node_modules/mathjax-full\")'",
117+
"link:full": "node components/bin/link-full",
118118
"install": "npm run -s link:full",
119119
"use-cjs": "echo '{\n \"extends\": \"./tsconfig/cjs.json\"\n}' > tsconfig.json",
120120
"use-mjs": "echo '{\n \"extends\": \"./tsconfig/mjs.json\"\n}' > tsconfig.json"

0 commit comments

Comments
 (0)