diff --git a/.gitignore b/.gitignore index d0d97fc..9c8f321 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules pacotes +*.tgz # Builds e compilados dist/ diff --git a/package.json b/package.json index 0d365ad..84d5f24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p-autenticacao-drive", - "version": "1.52.0", + "version": "1.53.0", "description": "", "main": "./src/index.ts", "exports": { @@ -13,11 +13,14 @@ "types": "./src/index.ts", "scripts": { "at": "bun update @biomejs/biome typescript", - "build": "bun run check && bunx tsup --config ./node_modules/p-comuns/tsup/tsup.config.ts && npm --no-git-tag-version version minor && bun run pacote", + "build": "bun run check && bun run compilar && npm --no-git-tag-version version minor", + "build:front": "bun build ./src/index.ts --target=browser --format=esm --outfile=./dist-front/index.mjs --external=cross-fetch --external=uuid --external=dayjs --external=zod", + "build:back": "bun build ./src/index.ts --target=node --format=cjs --outfile=./dist-back/index.js --external=cross-fetch --external=uuid --external=dayjs --external=zod", + "compilar": "bun run build:front && bun run build:back", "biome": "bunx @biomejs/biome check --write", "nodev": "check-node-version --node '>= 20'", "check": "bun run biome && bunx tsc --noEmit", - "pacote": "npm pack && npm pack && mv $(npm pack --silent) pacote.tgz" + "postinstall": "bun run compilar" }, "dependencies": { "cross-fetch": "4.1.0", @@ -29,7 +32,6 @@ "@biomejs/biome": "^2", "@types/node": "^20.19.13", "check-node-version": "^4.2.1", - "tsup": "8.5.0", "typescript": "~5.9.2" }, "keywords": [],