Skip to content

Commit dbe59ea

Browse files
authored
Update deps (#50)
1 parent 38efa0b commit dbe59ea

16 files changed

Lines changed: 571 additions & 559 deletions

.eslintrc.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ typings/
4343

4444
# Output of 'npm pack'
4545
*.tgz
46+
47+
.idea
48+
sarif.json

.idea/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.idea/analyze-code-security-scc.iml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 40 deletions
This file was deleted.

bin/runTests.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -eEuo pipefail
3+
4+
#
5+
# As of Node 20, the --test parameter does not support globbing, and it does not
6+
# support variable Windows paths. We also cannot invoke the test runner
7+
# directly, because while it has an API, there's no way to force it to transpile
8+
# the Typescript into JavaScript before passing it to the runner.
9+
#
10+
# So we're left with this solution, which shells out to Node to list all files
11+
# that end in *.test.ts (excluding node_modules/), and then execs out to that
12+
# process. We have to exec so the stderr/stdout and exit code is appropriately
13+
# fed to the caller.
14+
#
15+
16+
FILES="$(node -e "process.stdout.write(require('node:fs').readdirSync('./', { recursive: true }).filter((e) => {return e.endsWith('.test.ts') && !e.startsWith('node_modules');}).sort().join(' '));")"
17+
18+
set -x
19+
exec node --require ts-node/register --test-reporter spec --test ${FILES}

dist/main/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import js from '@eslint/js';
2+
import ts from 'typescript-eslint';
3+
import tsParser from '@typescript-eslint/parser';
4+
5+
import prettierRecommended from 'eslint-plugin-prettier/recommended';
6+
7+
export default ts.config(
8+
js.configs.recommended,
9+
ts.configs.eslintRecommended,
10+
{
11+
files: ['**/*.ts', '**/*.tsx'],
12+
languageOptions: {
13+
parser: tsParser,
14+
},
15+
},
16+
{ ignores: ['dist/', '**/*.js'] },
17+
{
18+
rules: {
19+
'no-unused-vars': 'off',
20+
},
21+
},
22+
prettierRecommended,
23+
);

0 commit comments

Comments
 (0)