Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sanity command for checking dependencies #22

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2.1

orbs:
node: circleci/node@5.1.0
sonarcloud: sonarsource/sonarcloud@1.1.1
node: circleci/node@5.2.0
sonarcloud: sonarsource/sonarcloud@2.0.0

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ jobs:
- name: Publish packages
if: steps.checkTag.outputs.exists == 'false'
run: |
npm publish
npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"bugs": {
"url": "https://github.com/dynamic-labs/dynamic-doctor/issues"
},
"version": "0.0.5",
"version": "0.1.0-beta.3",
"license": "MIT",
"bin": {
"dynamic-doctor": "./dist/index.js"
Expand Down Expand Up @@ -38,10 +38,12 @@
".circleci/config.yml": "circleci config validate"
},
"dependencies": {
"archy": "^1.0.0",
"chalk": "4.1.2",
"commander": "^10.0.1",
"enquirer": "^2.4.1",
"node-fetch": "2.6.12",
"semver": "^7.3.8",
"pug": "^3.0.2"
},
"devDependencies": {
Expand All @@ -50,6 +52,7 @@
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@rollup/plugin-typescript": "^11.1.2",
"@types/archy": "^0.0.36",
"@types/chalk": "^2.2.0",
"@types/commander": "^2.12.2",
"@types/jest": "^29.5.3",
Expand All @@ -72,7 +75,6 @@
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-preserve-shebangs": "^0.2.0",
"semver": "7.3.8",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default {
format: 'cjs',
},
external: [
'archy',
'commander',
'enquirer',
'node-fetch',
Expand All @@ -20,6 +21,7 @@ export default {
'child_process',
'chalk',
'fs/promises',
'semver',
],
plugins: [
commonjs(),
Expand Down
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Command } from 'commander';

import { doctorCommand } from './lib/commands/doctor';
import { sanityCommand } from './lib/commands/sanity';
import { treeCommand } from './lib/commands/sanity/sanityCommand';

export class DynamicCLI {
program: Command;
Expand All @@ -12,6 +14,10 @@ export class DynamicCLI {
this.program.addCommand(doctorCommand(), {
isDefault: true,
});

this.program.addCommand(sanityCommand());

this.program.addCommand(treeCommand());
}

run() {
Expand Down
Loading
Loading