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", "name": "code-tokenizer-md",
"version": "1.2.4", "version": "1.2.5",
"type": "module", "type": "module",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"repository": "https://github.com/geoffsee/code-tokenizer-md.git", "repository": "https://github.com/geoffsee/code-tokenizer-md.git",
@@ -21,7 +21,7 @@
"dist" "dist"
], ],
"scripts": { "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", "test": "bun test",
"prepublishOnly": "bun run build", "prepublishOnly": "bun run build",
"dev": "bun run .", "dev": "bun run .",