**chore(version, build): bump version to 0.9.13 and enhance CLI build configuration**
- Updated `npm` badge in `README.md` to reflect version `0.9.13`. - Updated `VERSION` constant in `src/utils/version.ts` to `0.9.13`. - Refined `rollup.config.js` to conditionally export configurations based on build type (`cli` or `main`). - Added `build:cli` script in `package.json` for CLI-specific builds. - Updated `cli` script to include CLI build step for executable generation. - Adjusted `package.json` `files` field to exclude CLI build artifacts in package distribution. These changes ensure version consistency, improve CLI build workflows, and align the package distribution with project requirements.
This commit is contained in:
parent
f87e13b8bc
commit
5d9128991f
4 changed files with 10 additions and 6 deletions
|
|
@ -31,9 +31,10 @@
|
|||
"prebuild": "node scripts/generate-version.js",
|
||||
"build": "BUILD_TYPE=unified rollup -c rollup.config.js",
|
||||
"build:browser": "BUILD_TYPE=browser rollup -c rollup.config.js",
|
||||
"build:cli": "BUILD_TYPE=cli rollup -c rollup.config.js",
|
||||
"start": "node dist/unified.js",
|
||||
"demo": "npm run build && npm run build:browser && npx http-server -o /index.html",
|
||||
"cli": "node ./cli-wrapper.js",
|
||||
"cli": "npm run build:cli && node ./cli-wrapper.js",
|
||||
"version": "node scripts/generate-version.js",
|
||||
"version:patch": "npm version patch",
|
||||
"version:minor": "npm version minor",
|
||||
|
|
@ -84,7 +85,9 @@
|
|||
"LICENSE",
|
||||
"README.md",
|
||||
"cli-wrapper.js",
|
||||
"brainy.png"
|
||||
"brainy.png",
|
||||
"!dist/cli.js",
|
||||
"!dist/cli.js.map"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue