-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(depsynky): CLI to synchronize dependencies accross a pnpm mono-r…
…epo (#237)
- Loading branch information
1 parent
42ec02e
commit e980ce8
Showing
18 changed files
with
1,189 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env node | ||
require('./dist/index.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.