Skip to content

Commit

Permalink
build(dev): update
Browse files Browse the repository at this point in the history
  • Loading branch information
teatimeguest committed Jul 21, 2024
1 parent 7f24491 commit cad1119
Show file tree
Hide file tree
Showing 14 changed files with 6,135 additions and 3,974 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/e2e-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
proxy:
runs-on: ubuntu-latest
container:
image: ${{
image: >-
${{
github.actor == 'nektos/act'
&& 'node:20.0'
|| 'ubuntu:latest'
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22
22.5.1
9,984 changes: 6,069 additions & 3,915 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 22 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,35 @@
"semver": "^7.6.3"
},
"devDependencies": {
"@go-task/cli": "^3.37.2",
"@rspack/cli": "^0.7.3",
"@types/node": "~20.0.0",
"better-typescript-lib": "^2.7.0",
"dprint": "^0.46.2",
"@go-task/cli": "^3.38.0",
"@rspack/cli": "^0.7.5",
"@types/mock-fs": "^4.13.4",
"@types/node": "~20.14.11",
"@types/semver": "^7.5.8",
"better-typescript-lib": "^2.8.0",
"dprint": "^0.47.2",
"editorconfig-checker": "^5.1.8",
"esbuild": "^0.21.5",
"eslint": "^9.5.0",
"git-cliff": "^2.3.0",
"esbuild": "^0.23.0",
"eslint": "^9.7.0",
"git-cliff": "^2.4.0",
"jest-extended": "^4.0.2",
"markdown-link-check": "^3.12.2",
"npm-run-all2": "^6.2.0",
"mock-fs": "^5.2.0",
"npm-run-all2": "^6.2.2",
"patch-package": "^8.0.0",
"taze": "^0.13.8",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
"taze": "^0.16.1",
"ts-dedent": "^2.2.0",
"ts-essentials": "^10.0.1",
"typescript": "^5.5.3",
"vitest": "^2.0.3"
},
"overrides": {
"ajv-cli": {
"fast-json-patch": "^3.1.1"
},
"rimraf@<=3": "^4.4.1",
"semver": "$semver"
"rimraf@<=3": "^6.0.1",
"semver": "$semver",
"vitest": "$vitest",
"ws": "^8.18.0"
}
}
10 changes: 1 addition & 9 deletions packages/action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@
"unctx": "^2.3.1"
},
"devDependencies": {
"@setup-texlive-action/config": "*",
"@setup-texlive-action/data": "*",
"@setup-texlive-action/fixtures": "*",
"@setup-texlive-action/logger": "*",
"@setup-texlive-action/polyfill": "*",
"@setup-texlive-action/texlive": "*",
"@setup-texlive-action/utils": "*",
"@types/mock-fs": "^4.13.4",
"jest-extended": "^4.0.2",
"mock-fs": "^5.2.0",
"ts-dedent": "^2.2.0",
"ts-essentials": "^10.0.0",
"vitest": "^1.6.0"
"@setup-texlive-action/utils": "*"
}
}
8 changes: 7 additions & 1 deletion packages/config/dprint/dprint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,23 @@
"exportDeclaration.sortNamedExports": "caseSensitive",
"importDeclaration.sortNamedImports": "caseSensitive",
},
"yaml": {
"quotes": "preferSingle",
"formatComments": true,
},
"excludes": [
"/packages/fixtures/data",
"coverage",
"dist",
"lib",
"package-lock.json",
"/README.md",
],
"plugins": [
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.1.wasm",
"https://plugins.dprint.dev/toml-0.6.2.wasm",
"https://plugins.dprint.dev/typescript-0.91.1.wasm",
"https://plugins.dprint.dev/typescript-0.91.4.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.4.0.wasm"
],
}
14 changes: 14 additions & 0 deletions packages/config/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ export const common = defineConfig(
rules: {
'n/no-missing-import': 'off',
'n/no-path-concat': 'error',
'n/no-extraneous-import': [
'error',
{
allowModules: [
'@setup-texlive-action/config',
'@setup-texlive-action/fixtures',
'jest-extended',
'mock-fs',
'ts-dedent',
'ts-essentials',
'vitest',
],
},
],
},
},
regexp.configs['flat/recommended'],
Expand Down
17 changes: 9 additions & 8 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,25 @@
"./vitest/*": "./vitest/*"
},
"devDependencies": {
"@eslint/js": "^9.5.0",
"@eslint/js": "^9.7.0",
"@tsconfig/node20": "^20.1.4",
"@tsconfig/strictest": "^2.0.5",
"@types/nunjucks": "^3.2.6",
"@vitest/coverage-v8": "^1.6.0",
"esbuild-loader": "^4.1.0",
"eslint-plugin-import-x": "^0.5.1",
"eslint-plugin-jsdoc": "^48.2.12",
"@types/semver": "^7.5.8",
"@vitest/coverage-v8": "^2.0.3",
"esbuild-loader": "^4.2.2",
"eslint-plugin-import-x": "^3.0.1",
"eslint-plugin-jsdoc": "^48.8.3",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-tsdoc": "^0.3.0",
"eslint-plugin-unicorn": "^53.0.0",
"eslint-plugin-unicorn": "^54.0.0",
"eslint-plugin-vitest": "^0.5.4",
"github-slugger": "^2.0.0",
"nunjucks": "^3.2.4",
"semver": "^7.6.3",
"typescript-eslint": "^8.0.0-alpha.30",
"typescript-eslint": "^8.0.0-alpha.48",
"vite-tsconfig-paths": "^4.3.2",
"webpack-license-plugin": "^4.4.2"
"webpack-license-plugin": "^4.5.0"
}
}
4 changes: 1 addition & 3 deletions packages/data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
"semver": "*"
},
"devDependencies": {
"@types/semver": "^7.5.8",
"ajv-cli": "^5.0.0",
"ajv-formats": "^3.0.1",
"ts-essentials": "^10.0.0"
"ajv-formats": "^3.0.1"
}
}
10 changes: 5 additions & 5 deletions packages/data/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ export function satisfies(
* @param options - Options for the current platform.
*/
export function match<const T extends Record<string, Target>>(
patterns: Readonly<T>,
patterns: T,
options?: DeepReadonly<Options>,
): [key: keyof T, value: T[keyof T]] {
for (const [key, value] of Object.entries<keyof T, T[keyof T]>(patterns)) {
if (satisfies(value, options)) {
return [key, value];
): [keyof T, T[keyof T]] {
for (const entry of Object.entries(patterns)) {
if (satisfies(entry[1], options)) {
return entry as ReturnType<typeof match<T>>;
}
}
const error = new Error('None of the patterns matched');
Expand Down
6 changes: 1 addition & 5 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
"ts-pattern": "^5.2.0"
},
"devDependencies": {
"@setup-texlive-action/config": "*",
"@setup-texlive-action/polyfill": "*",
"@setup-texlive-action/utils": "*",
"jest-extended": "^4.0.2",
"ts-essentials": "^10.0.0",
"vitest": "^1.6.0"
"@setup-texlive-action/utils": "*"
}
}
8 changes: 1 addition & 7 deletions packages/texlive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,12 @@
"semver": "*"
},
"devDependencies": {
"@setup-texlive-action/config": "*",
"@setup-texlive-action/data": "*",
"@setup-texlive-action/fixtures": "*",
"@setup-texlive-action/logger": "*",
"@setup-texlive-action/polyfill": "*",
"@setup-texlive-action/utils": "*",
"@types/deline": "^1.0.4",
"jest-extended": "^4.0.2",
"nock": "^13.5.4",
"texlive-json-schemas": "^0.2.0",
"ts-dedent": "^2.2.0",
"ts-essentials": "^10.0.0",
"vitest": "^1.6.0"
"texlive-json-schemas": "^0.2.0"
}
}
4 changes: 1 addition & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
"ts-pattern": "^5.2.0"
},
"devDependencies": {
"@setup-texlive-action/config": "*",
"@setup-texlive-action/polyfill": "*",
"vitest": "^1.6.0"
"@setup-texlive-action/polyfill": "*"
}
}
3 changes: 1 addition & 2 deletions packages/utils/src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,4 @@ function assertString(value: unknown): string {
throw error;
}

/* eslint
@typescript-eslint/ban-types: ["error", { types: { Function: false } }] */
/* eslint @typescript-eslint/no-unsafe-function-type: off */

0 comments on commit cad1119

Please sign in to comment.