Skip to content

Commit

Permalink
Removed sync command (#143)
Browse files Browse the repository at this point in the history
* Removed `sync` command

* Removed unused import

* Removed another unused import

* Format code
  • Loading branch information
leo authored Oct 28, 2024
1 parent ab49f99 commit 03f86b8
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 1,752 deletions.
33 changes: 7 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,12 @@
"prepare": "husky && bun run build",
"format": "biome format --write"
},
"files": [
"dist"
],
"files": ["dist"],
"repository": "ronin-co/client",
"homepage": "https://ronin.co/docs/typescript-client",
"keywords": [
"ronin",
"client",
"database",
"orm",
"edge",
"serverless"
],
"keywords": ["ronin", "client", "database", "orm", "edge", "serverless"],
"lint-staged": {
"**/*": [
"biome check"
]
"**/*": ["biome check"]
},
"exports": {
".": {
Expand All @@ -56,18 +45,10 @@
},
"typesVersions": {
"*": {
"*": [
"dist/index.d.ts"
],
"types": [
"dist/types/index.d.ts"
],
"schema": [
"dist/schema/index.d.ts"
],
"utils": [
"dist/utils/index.d.ts"
]
"*": ["dist/index.d.ts"],
"types": ["dist/types/index.d.ts"],
"schema": ["dist/schema/index.d.ts"],
"utils": ["dist/utils/index.d.ts"]
}
},
"engines": {
Expand Down
162 changes: 0 additions & 162 deletions src/bin/commands/sync.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { parseArgs } from 'node:util';

import initializeProject from '@/src/bin/commands/init';
import logIn from '@/src/bin/commands/login';
import sync from '@/src/bin/commands/sync';
import { printHelp, printVersion } from '@/src/bin/utils/info';
import { getSession } from '@/src/bin/utils/session';

Expand Down Expand Up @@ -86,18 +85,6 @@ const run = async () => {
// `init` sub command
if (normalizedPositionals.includes('init')) return initializeProject(positionals);

// `sync` sub command
if (normalizedPositionals.includes('sync')) {
const reset = values.reset as boolean; // Explicitly cast reset to boolean

return sync(
positionals.slice(positionals.indexOf('sync') + 1),
appToken,
session?.token,
reset,
);
}

// If no matching flags or commands were found, render the help, since we
// don't want to use the main `ronin` command for anything yet.
return printHelp();
Expand Down
58 changes: 0 additions & 58 deletions src/bin/parser/errors.ts

This file was deleted.

Loading

0 comments on commit 03f86b8

Please sign in to comment.