Skip to content

Commit a5b41da

Browse files
committed
Minify production build of the compiler.
1 parent 180be14 commit a5b41da

File tree

2 files changed

+140
-6
lines changed

2 files changed

+140
-6
lines changed

package-lock.json

+137-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Compiler for the Gren programming language",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1",
7-
"prepublishOnly": "npm run build",
7+
"prepublishOnly": "npx --package=gren-lang@0.4.5 --yes -- gren make src/Main.gren --optimize --output=/dev/stdout | terser -c -m -o compiler.js",
88
"build": "npx --package=gren-lang@0.4.5 --yes -- gren make src/Main.gren --output=compiler.js",
99
"prettier": "prettier -w \"!**/*.json\" .",
1010
"prettier:check": "prettier -c \"!**/*.json\" ."
@@ -36,6 +36,7 @@
3636
"postject": "^1.0.0-alpha.6"
3737
},
3838
"devDependencies": {
39-
"prettier": "3.3.3"
39+
"prettier": "^3.4.2",
40+
"terser": "^5.38.1"
4041
}
4142
}

0 commit comments

Comments
 (0)