diff --git a/.gitignore b/.gitignore index 9c8f321..d0d97fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ node_modules pacotes -*.tgz # Builds e compilados dist/ diff --git a/package.json b/package.json index 84d5f24..0d365ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p-autenticacao-drive", - "version": "1.53.0", + "version": "1.52.0", "description": "", "main": "./src/index.ts", "exports": { @@ -13,14 +13,11 @@ "types": "./src/index.ts", "scripts": { "at": "bun update @biomejs/biome typescript", - "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", + "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", "biome": "bunx @biomejs/biome check --write", "nodev": "check-node-version --node '>= 20'", "check": "bun run biome && bunx tsc --noEmit", - "postinstall": "bun run compilar" + "pacote": "npm pack && npm pack && mv $(npm pack --silent) pacote.tgz" }, "dependencies": { "cross-fetch": "4.1.0", @@ -32,6 +29,7 @@ "@biomejs/biome": "^2", "@types/node": "^20.19.13", "check-node-version": "^4.2.1", + "tsup": "8.5.0", "typescript": "~5.9.2" }, "keywords": [], diff --git a/pacote.tgz b/pacote.tgz new file mode 100644 index 0000000..68dc517 Binary files /dev/null and b/pacote.tgz differ