Skip to content

Commit

Permalink
chore: manually merge improvements from vite-ecosystem-ci - skip chan…
Browse files Browse the repository at this point in the history
…ges in pr workflow for now (#15)
  • Loading branch information
dominikg committed Feb 5, 2024
1 parent 677fb3b commit 81ab934
Show file tree
Hide file tree
Showing 29 changed files with 399 additions and 307 deletions.
3 changes: 1 addition & 2 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "schedule:weekly", "group:allNonMajor"],
"labels": ["dependencies"],
"ignorePaths": [],
"pin": false,
"rangeStrategy": "bump",
"node": false,
"packageRules": [
{
"depTypeList": ["peerDependencies", "engines"],
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
run: pnpm format
- name: lint
run: pnpm run lint
- name: typecheck
run: pnpm run typecheck
- name: audit
if: (${{ success() }} || ${{ failure() }})
run: pnpm audit
Expand Down
4 changes: 2 additions & 2 deletions builds/language-tools.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runInRepo } from '../utils'
import { RunOptions } from '../types'
import { runInRepo } from '../utils.ts'
import { RunOptions } from '../types.ts'

export async function build(options: RunOptions) {
return runInRepo({
Expand Down
4 changes: 2 additions & 2 deletions builds/rollup-plugin-svelte.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runInRepo } from '../utils'
import { RunOptions } from '../types'
import { runInRepo } from '../utils.ts'
import { RunOptions } from '../types.ts'

export async function build(options: RunOptions) {
return runInRepo({
Expand Down
4 changes: 2 additions & 2 deletions builds/sveltekit.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runInRepo } from '../utils'
import { RunOptions } from '../types'
import { runInRepo } from '../utils.ts'
import { RunOptions } from '../types.ts'

export async function build(options: RunOptions) {
return runInRepo({
Expand Down
4 changes: 2 additions & 2 deletions builds/vite-plugin-svelte.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runInRepo } from '../utils'
import { RunOptions } from '../types'
import { runInRepo } from '../utils.ts'
import { RunOptions } from '../types.ts'

export async function build(options: RunOptions) {
return runInRepo({
Expand Down
4 changes: 2 additions & 2 deletions discord-webhook.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fetch from 'node-fetch'
import { getPermanentRef, setupEnvironment } from './utils'
import { getPermanentRef, setupEnvironment } from './utils.ts'

type RefType = 'branch' | 'tag' | 'commit' | 'release'
type Status = 'success' | 'failure' | 'cancelled'
Expand Down Expand Up @@ -134,7 +134,7 @@ async function fetchJobs() {
? {
Authorization: `token ${process.env.GITHUB_TOKEN}`,
// eslint-disable-next-line no-mixed-spaces-and-tabs
}
}
: undefined),
},
})
Expand Down
4 changes: 2 additions & 2 deletions ecosystem-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
bisectSvelte,
parseSvelteMajor,
parseMajorVersion,
} from './utils'
import { CommandOptions, RunOptions } from './types'
} from './utils.ts'
import type { CommandOptions, RunOptions } from './types.d.ts'

const cli = cac()
cli
Expand Down
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "svelte-ecosystem-ci",
"private": true,
"version": "0.0.1",
"description": "svelte Ecosystem CI",
"scripts": {
"prepare": "pnpm exec simple-git-hooks",
"lint": "eslint --ignore-path .gitignore '**/*.ts'",
"lint:fix": "pnpm lint --fix",
"typecheck": "tsc",
"format": "prettier --ignore-path .gitignore --check .",
"format:fix": "pnpm format --write",
"test:self": "tsx ecosystem-ci.ts _selftest",
Expand All @@ -20,13 +22,13 @@
"prettier --write --ignore-unknown"
],
"*.ts": [
"eslint"
"eslint --fix"
]
},
"packageManager": "[email protected]",
"type": "module",
"engines": {
"node": ">=20",
"node": ">=18",
"pnpm": "^8.0.0"
},
"repository": {
Expand All @@ -45,19 +47,19 @@
"node-fetch": "^3.3.2"
},
"devDependencies": {
"@antfu/ni": "^0.21.8",
"@types/node": "^20.9.0",
"@types/semver": "^7.5.5",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"eslint": "^8.53.0",
"eslint-define-config": "^1.24.1",
"eslint-plugin-n": "^16.3.0",
"lint-staged": "^15.0.2",
"prettier": "^3.0.3",
"@antfu/ni": "^0.21.12",
"@types/node": "^20.11.16",
"@types/semver": "^7.5.6",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.56.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-n": "^16.6.2",
"lint-staged": "^15.2.1",
"prettier": "^3.2.5",
"semver": "^7.5.4",
"simple-git-hooks": "^2.9.0",
"tsx": "^3.14.0",
"typescript": "^5.2.2"
"tsx": "^4.7.0",
"typescript": "^5.3.3"
}
}
Loading

0 comments on commit 81ab934

Please sign in to comment.