From e8949c2e3a02840c1587502a0245a0b42a65af82 Mon Sep 17 00:00:00 2001 From: Lancelot Owczarczak Date: Mon, 2 Oct 2023 10:42:24 +0200 Subject: [PATCH] :bug: Fix wrong target for nodejs --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ef59725..f087ba0 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "lint:fix": "prettier --write lib/ cmd/ ; eslint --fix lib/ cmd/", "build:cmd": "esbuild cmd/index.ts --bundle --outfile=build/polyfact.tmp --platform=node && echo '#!/usr/bin/env node\n' | cat - build/polyfact.tmp > build/polyfact && rm build/polyfact.tmp", "build:vanilla-js": "esbuild target/vanilla-js.ts --bundle --minify --target=chrome67,firefox68,edge79,safari15 --outfile=build/vanilla-js.js", - "build": "tsc --target es2021 --lib es2021,DOM --moduleResolution node --strict --esModuleInterop --declaration --jsx react --skipLibCheck --outDir dist --rootDir lib lib/*.ts lib/**/*.ts && npm run build:cmd && cp build/polyfact package.json README.md dist/", + "build": "tsc --target es5 --lib es2021,DOM --moduleResolution node --strict --esModuleInterop --declaration --jsx react --skipLibCheck --outDir dist --rootDir lib lib/*.ts lib/**/*.ts && npm run build:cmd && cp build/polyfact package.json README.md dist/", "npm-publish": "npm run build && cd dist && npm publish && cd .." } }