Skip to content

Commit 6b3d545

Browse files
committed
feat(cli): add sync remote subcommand
1 parent 04d0f12 commit 6b3d545

6 files changed

Lines changed: 419 additions & 4 deletions

File tree

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@jsr:registry=https://npm.jsr.io

packages/tools/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
"json-edit": "./src/json-edit.ts"
88
},
99
"devDependencies": {
10-
"minimatch": "catalog:"
10+
"@oxc-node/cli": "catalog:",
11+
"@oxc-node/core": "catalog:",
12+
"@std/yaml": "catalog:",
13+
"minimatch": "catalog:",
14+
"semver": "catalog:"
15+
},
16+
"dependencies": {
17+
"@types/semver": "catalog:"
1118
},
1219
"scripts": {
1320
"snap-test": "tool snap-test"

packages/tools/src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { replaceFileContent } from './replace-file-content';
2-
import { snapTest } from './snap-test';
1+
import { replaceFileContent } from './replace-file-content.js';
2+
import { snapTest } from './snap-test.js';
3+
import { syncRemote } from './sync-remote-deps.js';
34

45
const subcommand = process.argv[2];
56

@@ -10,8 +11,11 @@ switch (subcommand) {
1011
case 'replace-file-content':
1112
replaceFileContent();
1213
break;
14+
case 'sync-remote':
15+
syncRemote();
16+
break;
1317
default:
1418
console.error(`Unknown subcommand: ${subcommand}`);
15-
console.error('Available subcommands: snap-test, replace-file-content');
19+
console.error('Available subcommands: json-edit, snap-test, replace-file-content, sync-remote');
1620
process.exit(1);
1721
}

0 commit comments

Comments
 (0)