Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated building #216

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

gladyshcodes
Copy link
Contributor

@gladyshcodes gladyshcodes commented Dec 30, 2024

Issue: #180

Proposed change
dev script was updated to auto-build package. This removes the burden to manually run pnpm build after every change made to /packages/shortest

Why
Improve DX

Copy link

vercel bot commented Dec 30, 2024

@gladyshcodes is attempting to deploy a commit to the Antiwork Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Dec 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shortest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 6:03pm

@slavingia
Copy link
Contributor

Some merge conflicts to address!

@slavingia
Copy link
Contributor

Addressed merge conflicts.

@@ -29,7 +29,7 @@
"build:js": "esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --external:esbuild --external:punycode --external:playwright --external:@anthropic-ai/sdk --external:expect --external:dotenv",
"build:cjs": "esbuild src/index.ts --bundle --platform=node --format=cjs --outfile=dist/index.cjs --external:esbuild --external:punycode --external:playwright --external:@anthropic-ai/sdk --external:expect --external:dotenv",
"build:cli": "esbuild src/cli/bin.ts --bundle --platform=node --format=esm --outdir=dist/cli --metafile=dist/meta-cli.json --external:fsevents --external:chokidar --external:glob --external:esbuild --external:events --external:path --external:fs --external:util --external:stream --external:os --external:assert --external:url --external:playwright --external:@anthropic-ai/sdk --external:expect --external:dotenv --external:otplib --external:picocolors --external:punycode --external:https --external:http --external:net --external:tls --external:crypto --external:mailosaur",
"dev": "pnpm build:types --watch",
"dev": "pnpm build --watch",
Copy link
Contributor

@m2rads m2rads Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should update the package.json in the root to run this script otherwise users would need to do cd packages/shortest every time which is very annoying. Maybe you could update the build:pkg to run this script instead of pnpm build.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a second thought, I think it's better to have a script in root package.json like this

"watch:build": "cd packages/shortest && pnpm dev"

I think this would be more appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants