feat(create-ziex): bundle

This commit is contained in:
Nurul Huda (Apon) 2026-03-21 15:40:23 +06:00
parent 4d8372740c
commit 2de901e053
No known key found for this signature in database
GPG Key ID: 5D3F1DE2855A2F79
3 changed files with 27 additions and 5 deletions

View File

@ -2,4 +2,5 @@
.zig-cache
# Nodejs
node_modules
node_modules
dist

View File

@ -1,12 +1,23 @@
{
"name": "create-ziex",
"version": "0.1.0-dev.2",
"bin": "bin/index.js",
"type": "module",
"scripts": {
"start": "node bin/index.js"
"bin": {
"create-ziex": "dist/index.js"
},
"dependencies": {
"files": [
"dist",
"README.md",
"LICENSE",
"build.zig",
"build.zig.zon"
],
"scripts": {
"start": "node bin/index.js",
"build": "bun run scripts/build.js",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@clack/prompts": "^1.1.0",
"giget": "^3.1.2",
"picocolors": "^1.1.1",

View File

@ -0,0 +1,10 @@
await Bun.build({
entrypoints: ['./bin/index.js'],
outdir: './dist',
target: 'node',
minify: true,
naming: 'index.js',
});
console.log('✅ Ziex CLI bundled successfully!');