-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update `package.json` and `package-lock.json` to use roll-up.js for building * **package.json** - Change `"type"` to `"module"` - Update the build script to use roll-up.js - Update the prepublish script to use roll-up.js - Update the test script to use the correct jest configuration - Add roll-up.js and related plugins as devDependencies - Add `tslib` as a dependency * **package-lock.json** - Add roll-up.js and related plugins - Update versions of `@jest/globals`, `@types/jest`, and `jest` - Add `tslib` as a dependency * fix unit tests * ci: delete node_module directory before npm ci * chore: install package updates * Rollup.js fixes * update jest packages to latest versions * Updated ESLint to 9.x.x
- Loading branch information
1 parent
a8eb375
commit d1c9409
Showing
14 changed files
with
1,016 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"tasks": { | ||
"test": "npm install && npm test", | ||
"build": "npm install && npm run build" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": ["tsconfig.json"] | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"root": true, | ||
"rules": { | ||
"semi": ["error", "never"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
# This workflow validates Pull Requests | ||
name: PR Validation | ||
|
||
# Trigger with every PR to master | ||
on: | ||
pull_request_target: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Delete node_modules directory | ||
run: rm -rf node_modules | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run linting | ||
run: npm run lint | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run tests & generate code coverage summary | ||
uses: ArtiomTr/jest-coverage-report-action@v2 | ||
with: | ||
skip-step: install | ||
# This workflow validates Pull Requests | ||
name: PR Validation | ||
|
||
# Trigger with every PR to master | ||
on: | ||
pull_request_target: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Delete node_modules directory | ||
run: rm -rf node_modules | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run linting | ||
run: npm run lint | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run tests & generate code coverage summary | ||
uses: ArtiomTr/jest-coverage-report-action@v2 | ||
with: | ||
skip-step: install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [{ | ||
ignores: [ | ||
"**/.eslintrc.js", | ||
"**/jest.config.js", | ||
"**/coverage", | ||
"**/dist", | ||
"**/node_modules", | ||
], | ||
}, ...compat.extends( | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
), { | ||
plugins: { | ||
"@typescript-eslint": typescriptEslint, | ||
}, | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 5, | ||
sourceType: "script", | ||
|
||
parserOptions: { | ||
project: ["tsconfig.json"], | ||
}, | ||
}, | ||
|
||
rules: { | ||
semi: ["error", "never"], | ||
}, | ||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = { | |
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
testMatch: ['**/*.test.ts'], | ||
}; | ||
}; |
Oops, something went wrong.