@xingchuan-qxc/fmcli 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ @echo off
2
+ node "%~dp0fmcli" %*
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@xingchuan-qxc/fmcli",
3
+ "version": "1.0.2",
4
+ "description": "A flexible, module-driven CLI framework — define and run your own modules as first-class subcommands",
5
+ "license": "MIT",
6
+ "module": "index.ts",
7
+ "type": "module",
8
+ "bin": {
9
+ "fmcli": "dist/bin/fmcli"
10
+ },
11
+ "files": [
12
+ "dist/bin/"
13
+ ],
14
+ "scripts": {
15
+ "build:node": "mkdir -p dist/bin && bun build --define __FMCLI_VERSION__='\"'${FMCLI_VERSION:-$(date +%Y%m%d%H%M%S)}'\"' --target=node --minify --outfile dist/bin/fmcli.tmp src/cli.ts && { echo '#!/usr/bin/env node'; tail -n +3 dist/bin/fmcli.tmp; } > dist/bin/fmcli && rm dist/bin/fmcli.tmp && chmod +x dist/bin/fmcli && cp scripts/fmcli.cmd dist/bin/fmcli.cmd && bun run clean:build-cache",
16
+ "build:darwin-arm64": "bun build --define __FMCLI_VERSION__='\"'${FMCLI_VERSION:-$(date +%Y%m%d%H%M%S)}'\"' --compile --target=bun-darwin-arm64 src/cli.ts --outfile dist/fmcli-arm64 && bun run clean:build-cache",
17
+ "build:darwin-x64": "bun build --define __FMCLI_VERSION__='\"'${FMCLI_VERSION:-$(date +%Y%m%d%H%M%S)}'\"' --compile --target=bun-darwin-x64 src/cli.ts --outfile dist/fmcli-x64 && bun run clean:build-cache",
18
+ "build:win-x64": "bun build --define __FMCLI_VERSION__='\"'${FMCLI_VERSION:-$(date +%Y%m%d%H%M%S)}'\"' --compile --target=bun-windows-x64 src/cli.ts --outfile dist/fmcli-win-x64.exe && bun run clean:build-cache",
19
+ "build:win-x64-baseline": "bun build --define __FMCLI_VERSION__='\"'${FMCLI_VERSION:-$(date +%Y%m%d%H%M%S)}'\"' --compile --target=bun-windows-x64-baseline src/cli.ts --outfile dist/fmcli-win-x64-baseline.exe && bun run clean:build-cache",
20
+ "build": "export FMCLI_VERSION=${FMCLI_VERSION:-$(date +%Y%m%d%H%M%S)} && bun run build:darwin-arm64 && bun run build:darwin-x64 && bun run build:win-x64 && bun run build:win-x64-baseline",
21
+ "clean:build-cache": "find . -maxdepth 1 -name '.*.bun-build' -delete",
22
+ "release": "export FMCLI_VERSION=${FMCLI_VERSION:-$(date +%Y%m%d%H%M%S)} && bun run build && cd dist && zip -j fmcli-release-$(date +%m%d).zip fmcli-arm64 fmcli-x64 fmcli-win-x64.exe fmcli-win-x64-baseline.exe && ls -lh fmcli-release-$(date +%m%d).zip",
23
+ "release:node": "export FMCLI_VERSION=${FMCLI_VERSION:-$(date +%Y%m%d%H%M%S)} && bun run build:node && cd dist && zip -j fmcli-node-$(date +%m%d).zip bin/fmcli bin/fmcli.cmd && ls -lh fmcli-node-$(date +%m%d).zip",
24
+ "release:publish": "bun scripts/publish-release.ts --config /Users/Shared/ossutilconfig_ai_guide_book --bucket starchain-astrolabe-prod --region cn-shanghai",
25
+ "release:npm": "FMCLI_VERSION=$(node -p \"require('./package.json').version\") bun run build:node && npm publish --access public"
26
+ },
27
+ "devDependencies": {
28
+ "@types/adm-zip": "^0.5.8",
29
+ "@types/bun": "latest"
30
+ },
31
+ "peerDependencies": {
32
+ "typescript": "^5"
33
+ },
34
+ "dependencies": {
35
+ "adm-zip": "^0.5.17",
36
+ "commander": "^14.0.3",
37
+ "mysql2": "^3.22.3"
38
+ }
39
+ }