Deps migration (#1988)

* chore: migrate eslint to oxlint

* chore: migrate prettier to oxfmt

* chore: migrate typescript

* chore: toThrow should have a expected value

* chore: cast test value as Day

* chore: small title fix

* chore: mocks should be hoisted

* chore: incorrect async useage

* chore: test should be inside description

* chore: test sohuld include an expeced

* chore: oxfmt

---------

Co-authored-by: alex-Arc <omnivox@LAPTOP-RC5SNBVV.localdomain>
This commit is contained in:
Carlos Valente
2026-03-08 16:22:12 +01:00
committed by GitHub
parent 9516ac21bb
commit 1849b4d39f
501 changed files with 2678 additions and 4654 deletions
-2
View File
@@ -1,2 +0,0 @@
node_modules
dist
+5
View File
@@ -0,0 +1,5 @@
{
"$schema": "../../node_modules/oxlint/configuration_schema.json",
"extends": ["../../.oxlintrc.json"],
"plugins": ["unicorn", "typescript", "oxc", "vitest"]
}
+3 -1
View File
@@ -2,14 +2,16 @@
Congratulations! You got this far into Ontime's rabbit hole and want to manage your installation.
The Resolver is an attempt to expose our ontime's api so it is easier to integrate with
The Resolver is an attempt to expose our ontime's api so it is easier to integrate with
## Links
- [Ontime's repository](https://github.com/cpvalente/ontime)
- [Ontime's documentation](https://docs.getontime.no/)
- [Ontime's website](https://getontime.no/)
## Sponsoring
You can help the development of this project or say thank you with a one time donation. \
See the [terms of donations](https://github.com/cpvalente/ontime/blob/master/SPONSOR.md)
+12 -8
View File
@@ -7,23 +7,27 @@
"main": "./dist/main.js",
"description": "shared typings for ontime",
"scripts": {
"lint": "eslint . --quiet",
"lint": "oxlint --quiet --type-aware",
"typecheck": "tsc --noEmit",
"prebuild": "pnpm rimraf ./dist",
"build": "tsup && pnpm rimraf ./dist/index.js",
"postbuild": "pnpm rimraf ./dist/index.d.ts"
},
"keywords": ["ontime", "resolver", "parser"],
"keywords": [
"ontime",
"resolver",
"parser"
],
"author": "",
"license": "AGPL-3.0-only",
"devDependencies": {
"@sprout2000/esbuild-copy-plugin": "^1.1.19",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"tsup": "^8.5.0",
"ontime-types": "workspace:^4.2.1",
"rimraf": "catalog:",
"typescript": "catalog:",
"ontime-types": "workspace:^4.2.1"
"tsup": "^8.5.0",
"typescript": "catalog:"
},
"files": ["dist"]
"files": [
"dist"
]
}
+6
View File
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"ignoreDeprecations": "6.0"
}
}
+1 -6
View File
@@ -11,7 +11,7 @@
"declaration": true,
"outDir": "dist",
"sourceMap": true,
"baseUrl": "src",
"ignoreDeprecations": "6.0"
},
"include": [
"src",
@@ -20,10 +20,5 @@
"node_modules",
"src/**/*.test.ts",
"src/**/*.spec.ts",
],
"references": [
{
"path": "./tsconfig.tests.json"
}
]
}
-21
View File
@@ -1,21 +0,0 @@
{
"extends": "../../tsconfig.tests.json",
"compilerOptions": {
"target": "esnext",
"module": "preserve",
"moduleResolution": "bundler",
"allowUnusedLabels": false,
"removeComments": true,
"preserveConstEnums": true,
"allowJs": true,
"declaration": true,
"outDir": "dist",
"sourceMap": true,
"baseUrl": "src",
"composite": true
},
"include": [
"src/**/*.test.ts",
"src/**/*.spec.ts",
]
}
+5 -3
View File
@@ -1,13 +1,13 @@
import { defineConfig } from 'tsup';
import copyPlugin from '@sprout2000/esbuild-copy-plugin';
import { defineConfig } from 'tsup';
export default defineConfig({
const config = defineConfig({
clean: false, // we can't use clean as it runs after the copy plugin
entry: ['src/main.ts'],
outDir: 'dist',
bundle: true,
dts: { resolve: true },
dts: { resolve: true, tsconfig: './tsconfig.dts.json' },
format: 'esm',
target: 'esnext',
platform: 'node',
@@ -18,3 +18,5 @@ export default defineConfig({
}),
],
});
export default config;