]> zoso.dev Git - libnemo.git/commitdiff
Update esbuild script to target browsers.
authorChris Duncan <chris@zoso.dev>
Mon, 21 Oct 2024 13:07:57 +0000 (06:07 -0700)
committerChris Duncan <chris@zoso.dev>
Mon, 21 Oct 2024 13:07:57 +0000 (06:07 -0700)
package.json

index 7d1f632f308a5baee471e9eda59743070cdfecf0..577015a9baf5b99a067d67dfa8166301d53f7587 100644 (file)
@@ -39,7 +39,7 @@
                "url": "git+https://zoso.dev/libnemo.git"
        },
        "scripts": {
-               "build": "rm -rf dist && tsc && esbuild dist/main.js --outfile=dist/main.min.js --target=es2022 --format=esm --platform=node --bundle --minify",
+               "build": "rm -rf dist && tsc && esbuild dist/main.js --outfile=dist/main.min.js --target=es2022 --format=esm --platform=browser --bundle --minify",
                "test": "npm run build && node --test --env-file .env",
                "test:coverage": "npm run test -- --experimental-test-coverage",
                "test:coverage:report": "npm run test:coverage -- --test-reporter=lcov --test-reporter-destination=coverage.info && genhtml coverage.info --output-directory test/coverage && rm coverage.info && xdg-open test/coverage/index.html"