bump patch: Add module splitting to build script.

Enabled the --splitting option in the build script to support code splitting, which the cli/library can both reference instead of bundling the entire bundle for each, so this effectively cuts the bundle size in half.
This commit is contained in:
2024-12-01 14:11:54 -05:00
parent d7211570b7
commit 7deb9fa9ca

View File

@@ -1,6 +1,6 @@
{
"name": "code-tokenizer-md",
"version": "1.2.4",
"version": "1.2.5",
"type": "module",
"license": "AGPL-3.0-or-later",
"repository": "https://github.com/geoffsee/code-tokenizer-md.git",
@@ -21,7 +21,7 @@
"dist"
],
"scripts": {
"build": "rm -rf dist && bun build ./src/index.ts ./src/cli.ts --outdir dist --target node && bun ./build.ts",
"build": "rm -rf dist && bun build ./src/index.ts ./src/cli.ts --splitting --outdir dist --target node && bun ./build.ts",
"test": "bun test",
"prepublishOnly": "bun run build",
"dev": "bun run .",