Skip to content
Merged
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
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@jsr:registry=https://npm.jsr.io
7 changes: 6 additions & 1 deletion packages/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"json-edit": "./src/json-edit.ts"
},
"devDependencies": {
"minimatch": "catalog:"
"@oxc-node/cli": "catalog:",
"@oxc-node/core": "catalog:",
"@types/semver": "catalog:",
"@std/yaml": "catalog:",
"minimatch": "catalog:",
"semver": "catalog:"
},
"scripts": {
"snap-test": "tool snap-test"
Expand Down
11 changes: 7 additions & 4 deletions packages/tools/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import { replaceFileContent } from './replace-file-content';
import { snapTest } from './snap-test';

const subcommand = process.argv[2];

switch (subcommand) {
case 'snap-test':
const { snapTest } = await import('./snap-test');
await snapTest();
break;
case 'replace-file-content':
const { replaceFileContent } = await import('./replace-file-content');
replaceFileContent();
break;
case 'sync-remote':
const { syncRemote } = await import('./sync-remote-deps');
syncRemote();
Comment thread
Brooooooklyn marked this conversation as resolved.
break;
default:
console.error(`Unknown subcommand: ${subcommand}`);
console.error('Available subcommands: snap-test, replace-file-content');
console.error('Available subcommands: snap-test, replace-file-content, sync-remote');
process.exit(1);
}
Loading
Loading