Skip to content

Commit

Permalink
feat(depsynky): CLI to synchronize dependencies accross a pnpm mono-r…
Browse files Browse the repository at this point in the history
…epo (#237)
  • Loading branch information
franklevasseur committed Apr 12, 2024
1 parent 42ec02e commit e980ce8
Show file tree
Hide file tree
Showing 18 changed files with 1,189 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/depsynky.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Depsynky

on:
push:
branches:
- master

pull_request:
paths:
- 'depsynky/**'

workflow_dispatch: {}

defaults:
run:
working-directory: ./depsynky

jobs:
depsynky:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3.0.0
with:
version: 8
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm type:check
- name: Publish
if: github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'
uses: botpress/gh-actions/publish-if-not-exists@master
with:
path: './depsynky'
token: '${{ secrets.NPM_ACCESS_TOKEN }}'
2 changes: 2 additions & 0 deletions depsynky/bin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('./dist/index.js')
36 changes: 36 additions & 0 deletions depsynky/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "@bpinternal/depsynky",
"version": "0.0.1",
"description": "CLI to synchronize dependencies accross a pnpm mono-repo",
"main": "dist/index.js",
"scripts": {
"type:check": "tsc --noEmit",
"build": "esbuild --bundle --platform=node --target=node18 --outdir=dist src/index.ts",
"dev": "ts-node -T src/index.ts",
"start": "node dist/index.js"
},
"bin": {
"depsynky": "./bin.js"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@bpinternal/yargs-extra": "^0.0.3",
"chalk": "^4.1.2",
"glob": "^9.3.4",
"prettier": "^2.8.1",
"prompts": "^2.4.2",
"semver": "^7.5.1",
"yaml": "^2.3.1"
},
"devDependencies": {
"@types/node": "^18.11.18",
"@types/prettier": "^2.7.3",
"@types/prompts": "^2.0.14",
"@types/semver": "^7.3.11",
"esbuild": "^0.20.2",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
}
}
Loading

0 comments on commit e980ce8

Please sign in to comment.