mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-20 02:29:36 -06:00
feat(create-ziex): bundle
This commit is contained in:
parent
4d8372740c
commit
2de901e053
3
pkg/create-ziex/.gitignore
vendored
3
pkg/create-ziex/.gitignore
vendored
@ -2,4 +2,5 @@
|
||||
.zig-cache
|
||||
|
||||
# Nodejs
|
||||
node_modules
|
||||
node_modules
|
||||
dist
|
||||
@ -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",
|
||||
|
||||
10
pkg/create-ziex/scripts/build.js
Normal file
10
pkg/create-ziex/scripts/build.js
Normal 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!');
|
||||
Loading…
x
Reference in New Issue
Block a user