Skip to content

Commit

Permalink
add debug script
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Sep 11, 2024
1 parent be4bb1f commit 4ebad3e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 26 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/tagged-release.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ jobs:
shell: bash
run: |
npm ci
npx playwright install --with-deps
npm run test:all
npm run debug
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
],
"scripts": {
"compile": "virmator compile",
"debug": "cd packages/virmator && tsx src/debug.ts",
"docs": "virmator docs",
"format": "virmator format",
"lint": "virmator lint fix",
Expand Down
7 changes: 7 additions & 0 deletions packages/virmator/src/debug.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {queryNpmWorkspace, runShellCommand} from '@augment-vir/node-js';
import {dirname} from 'node:path';

const packageDir = dirname(import.meta.dirname);

console.log('1', await runShellCommand('npm query .workspace', {cwd: packageDir}));
console.log('2', await queryNpmWorkspace(packageDir));

0 comments on commit 4ebad3e

Please sign in to comment.