mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 02:44:45 +00:00
Merge pull request #74 from robonen/refactor/dir-struct
Refactor directory structure
This commit is contained in:
24
.github/workflows/publish.yaml
vendored
24
.github/workflows/publish.yaml
vendored
@@ -34,25 +34,21 @@ jobs:
|
||||
- name: Build & Test
|
||||
run: pnpm build && pnpm test
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v46
|
||||
with:
|
||||
files: packages/*/package.json
|
||||
|
||||
- name: Check for version changes and publish
|
||||
if: steps.changed-files.outputs.any_changed == 'true'
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
# Find all package.json files (excluding node_modules)
|
||||
PACKAGE_FILES=$(find . -path "*/package.json" -not -path "*/node_modules/*")
|
||||
|
||||
for file in $PACKAGE_FILES; do
|
||||
PACKAGE_DIR=$(dirname $file)
|
||||
echo "Checking $PACKAGE_DIR for version changes..."
|
||||
|
||||
# Get package details
|
||||
PACKAGE_NAME=$(node -p "require('./$file').name")
|
||||
CURRENT_VERSION=$(node -p "require('./$file').version")
|
||||
IS_PRIVATE=$(node -p "require('./$file').private || false")
|
||||
PACKAGE_NAME=$(node -p "require('$file').name")
|
||||
CURRENT_VERSION=$(node -p "require('$file').version")
|
||||
IS_PRIVATE=$(node -p "require('$file').private || false")
|
||||
|
||||
# Skip private packages
|
||||
if [ "$IS_PRIVATE" == "true" ]; then
|
||||
@@ -60,6 +56,12 @@ jobs:
|
||||
continue
|
||||
fi
|
||||
|
||||
# Skip root package
|
||||
if [ "$PACKAGE_DIR" == "." ]; then
|
||||
echo "Skipping root package"
|
||||
continue
|
||||
fi
|
||||
|
||||
# Check if package exists on npm
|
||||
NPM_VERSION=$(npm view $PACKAGE_NAME version 2>/dev/null || echo "0.0.0")
|
||||
|
||||
|
||||
57
CHANGELOG.md
57
CHANGELOG.md
@@ -1,57 +0,0 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## v0.0.1
|
||||
|
||||
|
||||
### 🚀 Enhancements
|
||||
|
||||
- **repo:** Cli tool, base tscofig ([3fcc42e](https://github.com/robonen/tools/commit/3fcc42e))
|
||||
- **repo:** Drop node_modules ([7dba5ac](https://github.com/robonen/tools/commit/7dba5ac))
|
||||
- **repo:** Global gitignore ([00c2736](https://github.com/robonen/tools/commit/00c2736))
|
||||
- **packages/tsconfig:** Readme ([afa15cd](https://github.com/robonen/tools/commit/afa15cd))
|
||||
- **docs:** Add auto generated doc based on readme ([3960f86](https://github.com/robonen/tools/commit/3960f86))
|
||||
- **packages/stdlib:** Create stdlib ([c985b95](https://github.com/robonen/tools/commit/c985b95))
|
||||
- **packages/stdlib:** Base vite config ([0434725](https://github.com/robonen/tools/commit/0434725))
|
||||
- **packages/stdlib:** Math/clamp util ([8515bff](https://github.com/robonen/tools/commit/8515bff))
|
||||
- **packages/stdlib:** MapRange util ([d8a9a62](https://github.com/robonen/tools/commit/d8a9a62))
|
||||
- **packages/stdlib:** Levenshtein distance util ([0022153](https://github.com/robonen/tools/commit/0022153))
|
||||
- **packages/stdlib:** Add trigram distance utill ([5045852](https://github.com/robonen/tools/commit/5045852))
|
||||
|
||||
### 🩹 Fixes
|
||||
|
||||
- **repo:** Workspaces -> workspace ([80b87d7](https://github.com/robonen/tools/commit/80b87d7))
|
||||
|
||||
### 💅 Refactors
|
||||
|
||||
- **repo:** Cleanup ([bc2ebfc](https://github.com/robonen/tools/commit/bc2ebfc))
|
||||
- **packages/tsconfig:** Readme remove extra spaces ([565e7d8](https://github.com/robonen/tools/commit/565e7d8))
|
||||
- **docs:** Drop docs cache and dist ([03f755d](https://github.com/robonen/tools/commit/03f755d))
|
||||
- **repo:** Add vitepress to gitignore ([cf71b8e](https://github.com/robonen/tools/commit/cf71b8e))
|
||||
- **repo:** Add pathe lib to cli tool ([d7a2d15](https://github.com/robonen/tools/commit/d7a2d15))
|
||||
- **packages/tsconfig:** Add description and publishConfig ([37d25bf](https://github.com/robonen/tools/commit/37d25bf))
|
||||
- **repo:** Change cli generated exports in package.json ([a5d33ea](https://github.com/robonen/tools/commit/a5d33ea))
|
||||
- **packages/tsconfig:** Disable declaration and source maps ([3f1d16b](https://github.com/robonen/tools/commit/3f1d16b))
|
||||
- **packages/stdlib:** Add doc, update tests ([5280ace](https://github.com/robonen/tools/commit/5280ace))
|
||||
- **packages/stdlib:** Add comments for math utils ([65ba312](https://github.com/robonen/tools/commit/65ba312))
|
||||
- **packages/stdlib:** Levensthein fn replate to module export ([92721b3](https://github.com/robonen/tools/commit/92721b3))
|
||||
- **packages/stdlib:** Rename arguments to left and right ([7d8f5be](https://github.com/robonen/tools/commit/7d8f5be))
|
||||
- **packages/stdlib:** Reformat test files ([9031430](https://github.com/robonen/tools/commit/9031430))
|
||||
- **packages/tsconfig:** Add exclude for .output and coverage folders ([769476d](https://github.com/robonen/tools/commit/769476d))
|
||||
- **packages/stdlib:** Remove private from package.json ([5dadb50](https://github.com/robonen/tools/commit/5dadb50))
|
||||
|
||||
### 🏡 Chore
|
||||
|
||||
- **packages/stdlib:** Add bench script, add vscode workspace ([e9b8b0c](https://github.com/robonen/tools/commit/e9b8b0c))
|
||||
- **release:** V0.0.1 ([725b73d](https://github.com/robonen/tools/commit/725b73d))
|
||||
- **packages/stdlib:** Set 0.0.1 version ([c65113e](https://github.com/robonen/tools/commit/c65113e))
|
||||
- **release:** V0.0.1 ([f77716a](https://github.com/robonen/tools/commit/f77716a))
|
||||
|
||||
### ✅ Tests
|
||||
|
||||
- **packages/stdlib:** Trigram distance tests ([4c10d38](https://github.com/robonen/tools/commit/4c10d38))
|
||||
|
||||
### ❤️ Contributors
|
||||
|
||||
- Robonen ([@robonen](http://github.com/robonen))
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { mkdir, writeFile } from 'node:fs/promises';
|
||||
import { defineCommand, runMain } from 'citty';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user