Skip to content

Commit 505f598

Browse files
committed
Establish workspace packages
1 parent a74c304 commit 505f598

File tree

42 files changed

+354
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+354
-204
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
with:
2323
cache: true
2424
- run: pnpm install
25-
- run: pnpm publish --access=public --no-git-checks --provenance
25+
- run: pnpm --filter @standard-config/oxlint publish --access=public --provenance

.github/workflows/verify.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
build:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v6
19-
- uses: actions/setup-node@v6
20-
with:
21-
node-version: 24
22-
- uses: pnpm/action-setup@v5
23-
with:
24-
cache: true
25-
- run: pnpm install
26-
- run: pnpm build
27-
2815
coverage:
2916
runs-on: ubuntu-latest
3017
steps:
@@ -78,4 +65,4 @@ jobs:
7865
with:
7966
cache: true
8067
- run: pnpm install
81-
- run: pnpm typecheck
68+
- run: pnpm --recursive --include-workspace-root typecheck

package.json

Lines changed: 15 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,42 @@
11
{
2-
"name": "@standard-config/oxlint",
3-
"version": "1.6.1",
4-
"description": "Curated Oxlint config with sensible defaults",
2+
"name": "@standard-config/oxlint-packages",
3+
"version": "0.0.0",
4+
"private": true,
55
"license": "MIT",
66
"author": {
77
"name": "Dom Porada",
88
"email": "dom@dom.engineering",
99
"url": "https://dom.engineering"
1010
},
11-
"repository": {
12-
"type": "git",
13-
"url": "git+https://github.com/standard-config/oxlint.git"
14-
},
15-
"keywords": [
16-
"eslint-config-xo",
17-
"eslint-config-xo-typescript",
18-
"linter",
19-
"oxc",
20-
"oxlint",
21-
"oxlint-config",
22-
"oxlint-tsgolint",
23-
"react",
24-
"standard-config",
25-
"type-aware",
26-
"typescript",
27-
"vite-plus",
28-
"vite+",
29-
"xo"
30-
],
31-
"files": [
32-
"dist/**"
33-
],
3411
"type": "module",
35-
"sideEffects": false,
36-
"exports": "./dist/index.mjs",
37-
"types": "./dist/index.d.mts",
3812
"engines": {
39-
"node": ">=20"
13+
"node": ">=24"
4014
},
4115
"packageManager": "pnpm@10.33.0",
42-
"peerDependencies": {
43-
"oxlint": ">=1.52.0",
44-
"oxlint-tsgolint": ">=0.16.0"
45-
},
46-
"peerDependenciesMeta": {
47-
"oxlint-tsgolint": {
48-
"optional": true
49-
}
50-
},
5116
"devDependencies": {
5217
"@standard-config/eslint": "^2.0.1",
53-
"@standard-config/prettier": "^1.11.1",
54-
"@standard-config/tsconfig": "^3.1.0",
55-
"@vitest/coverage-v8": "^4.1.1",
18+
"@standard-config/oxlint": "workspace:*",
19+
"@standard-config/prettier": "^1.11.2",
20+
"@standard-config/tsconfig": "catalog:",
21+
"@vitest/coverage-v8": "^4.1.2",
5622
"eslint": "^10.1.0",
5723
"oxlint": "catalog:",
5824
"oxlint-tsgolint": "catalog:",
5925
"prettier": "^3.8.1",
60-
"publint": "^0.3.18",
61-
"typescript": "^6.0.2",
62-
"vite-plus": "^0.1.14",
63-
"vitest": "^4.1.1"
26+
"publint": "catalog:",
27+
"typescript": "catalog:",
28+
"vite-plus": "catalog:",
29+
"vitest": "catalog:"
6430
},
6531
"scripts": {
66-
"build": "vp pack",
67-
"fix": "pnpm format && pnpm lint && pnpm format",
32+
"build": "pnpm --recursive build --log-level=warn --no-publint",
33+
"fix": " pnpm format && pnpm build && pnpm lint && pnpm format",
6834
"format": "prettier --ignore-unknown --log-level=warn --write .",
6935
"format:check": "prettier --check --ignore-unknown .",
7036
"lint": "oxlint --fix",
7137
"lint:check": "oxlint --deny-warnings --type-check",
72-
"prepack": "pnpm run '/^(format:check|lint:check|test|typecheck)$/' && pnpm build",
7338
"prepare": "vp config",
39+
"postprepare": "pnpm build",
7440
"test": "vitest run",
7541
"typecheck": "tsc --noEmit"
7642
}

packages/oxlint/package.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"name": "@standard-config/oxlint",
3+
"version": "1.6.1",
4+
"description": "Curated Oxlint config with sensible defaults",
5+
"license": "MIT",
6+
"author": {
7+
"name": "Dom Porada",
8+
"email": "dom@dom.engineering",
9+
"url": "https://dom.engineering"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/standard-config/oxlint.git"
14+
},
15+
"keywords": [
16+
"eslint-config-xo",
17+
"eslint-config-xo-typescript",
18+
"linter",
19+
"oxc",
20+
"oxlint",
21+
"oxlint-config",
22+
"oxlint-tsgolint",
23+
"react",
24+
"standard-config",
25+
"type-aware",
26+
"typescript",
27+
"vite-plus",
28+
"vite+",
29+
"xo"
30+
],
31+
"files": [
32+
"dist/**"
33+
],
34+
"type": "module",
35+
"sideEffects": false,
36+
"exports": "./dist/index.mjs",
37+
"types": "./dist/index.d.mts",
38+
"engines": {
39+
"node": ">=20"
40+
},
41+
"peerDependencies": {
42+
"oxlint": ">=1.52.0",
43+
"oxlint-tsgolint": ">=0.16.0"
44+
},
45+
"peerDependenciesMeta": {
46+
"oxlint-tsgolint": {
47+
"optional": true
48+
}
49+
},
50+
"devDependencies": {
51+
"@standard-config/tsconfig": "catalog:",
52+
"@standard-config/utilities": "workspace:*",
53+
"oxlint": "catalog:",
54+
"publint": "catalog:",
55+
"typescript": "catalog:",
56+
"vite-plus": "catalog:",
57+
"vitest": "catalog:"
58+
},
59+
"scripts": {
60+
"build": "vp pack",
61+
"prepack": "pnpm --workspace-root run '/^(format:check|lint:check|test)$/' && pnpm build",
62+
"test": "vitest run",
63+
"typecheck": "tsc --noEmit"
64+
}
65+
}

src/config-base/__snapshots__/index.test.ts.snap renamed to packages/oxlint/src/config-base/__snapshots__/index.test.ts.snap

File renamed without changes.

src/config-base/index.test.ts renamed to packages/oxlint/src/config-base/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LinterConfigEntry } from '../types/index.d.ts';
1+
import type { LinterConfigEntry } from '@standard-config/utilities/types';
22
import { defineConfig } from 'oxlint';
33
import { expect, expectTypeOf, test } from 'vitest';
44
import config from './index.ts';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LinterConfigEntry } from '../types/index.d.ts';
1+
import type { LinterConfigEntry } from '@standard-config/utilities/types';
22

33
const config: LinterConfigEntry = {
44
plugins: [

src/config-config-files/__snapshots__/index.test.ts.snap renamed to packages/oxlint/src/config-config-files/__snapshots__/index.test.ts.snap

File renamed without changes.

src/config-type-definitions/index.test.ts renamed to packages/oxlint/src/config-config-files/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LinterConfigOverrideEntry } from '../types/index.d.ts';
1+
import type { LinterConfigOverrideEntry } from '@standard-config/utilities/types';
22
import { defineConfig } from 'oxlint';
33
import { expect, expectTypeOf, test } from 'vitest';
44
import config from './index.ts';

src/config-config-files/index.ts renamed to packages/oxlint/src/config-config-files/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LinterConfigOverrideEntry } from '../types/index.d.ts';
1+
import type { LinterConfigOverrideEntry } from '@standard-config/utilities/types';
22

33
const config: LinterConfigOverrideEntry = {
44
rules: {

0 commit comments

Comments
 (0)