Skip to content
Open
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
182,861 changes: 116,935 additions & 65,926 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/index.js.map

Large diffs are not rendered by default.

619 changes: 0 additions & 619 deletions dist/licenses.txt

This file was deleted.

28 changes: 15 additions & 13 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
// See: https://eslint.org/docs/latest/use/configure/configuration-files

import path from 'node:path'
import url from 'node:url'
import globals from 'globals'

import { FlatCompat } from '@eslint/eslintrc'
import js from '@eslint/js'

import typescriptParser from '@typescript-eslint/parser'
import typescriptPlugin from '@typescript-eslint/eslint-plugin'
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import jest from 'eslint-plugin-jest'
import prettier from 'eslint-plugin-prettier'
import globals from 'globals'

const __filename = url.fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
baseDirectory: import.meta.dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
})
Expand All @@ -35,7 +29,7 @@ export default [
plugins: {
jest,
prettier,
'@typescript-eslint': typescriptPlugin
'@typescript-eslint': typescriptEslint
},

languageOptions: {
Expand All @@ -51,16 +45,24 @@ export default [
sourceType: 'module',

parserOptions: {
project: ['tsconfig.eslint.json'],
tsconfigRootDir: '.'
projectService: {
allowDefaultProject: [
'__fixtures__/*.ts',
'__tests__/*.ts',
'eslint.config.mjs',
'jest.config.js',
'rollup.config.ts'
]
},
tsconfigRootDir: import.meta.dirname
}
},

settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: 'tsconfig.eslint.json'
project: 'tsconfig.json'
}
}
},
Expand Down
40 changes: 40 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// See: https://jestjs.io/docs/configuration

/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ['./src/**'],
coverageDirectory: './coverage',
coveragePathIgnorePatterns: ['/node_modules/', '/dist/'],
coverageReporters: ['json-summary', 'text', 'lcov'],
// Uncomment the below lines if you would like to enforce a coverage threshold
// for your action. This will fail the build if the coverage is below the
// specified thresholds.
// coverageThreshold: {
// global: {
// branches: 100,
// functions: 100,
// lines: 100,
// statements: 100
// }
// },
extensionsToTreatAsEsm: ['.ts'],
moduleFileExtensions: ['ts', 'js'],
preset: 'ts-jest',
reporters: ['default'],
resolver: 'ts-jest-resolver',
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
transform: {
'^.+\\.ts$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
useESM: true
}
]
},
verbose: true
}
15 changes: 0 additions & 15 deletions jest.config.json

This file was deleted.

Loading
Loading