Skip to content

Commit 34a4f2f

Browse files
authored
chore: move oxlint&oxfmt to flake (#291)
1 parent 09b1f81 commit 34a4f2f

File tree

5 files changed

+28
-293
lines changed

5 files changed

+28
-293
lines changed

flake.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
# formatting and linting tools
3232
similarity
3333
nixfmt-rfc-style
34+
tsgolint
35+
oxlint
36+
oxfmt
3437

3538
# security
3639
gitleaks

knip.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
},
1313
},
1414
ignore: ['**/*.test.ts', '**/*.spec.ts', '**/*.test-d.ts'],
15-
ignoreBinaries: ['only-allow'],
15+
ignoreBinaries: ['only-allow', 'oxfmt', 'oxlint'],
1616
ignoreDependencies: ['@typescript/native-preview'],
1717
rules: {
1818
optionalPeerDependencies: 'off',

package.json

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,36 @@
1313
],
1414
"homepage": "https://github.com/StackOneHQ/stackone-ai-node#readme",
1515
"bugs": "https://github.com/StackOneHQ/stackone-ai-node/issues",
16+
"license": "Apache-2.0",
17+
"author": "StackOne",
1618
"repository": {
1719
"type": "git",
1820
"url": "git+https://github.com/StackOneHQ/stackone-ai-node.git"
1921
},
20-
"author": "StackOne",
21-
"license": "Apache-2.0",
22+
"files": [
23+
"dist",
24+
"LICENSE",
25+
"README.md",
26+
"src",
27+
"!examples/*.test.ts",
28+
"examples/*.ts",
29+
"!src/**/*.test-d.ts",
30+
"!src/**/*.test.ts"
31+
],
2232
"type": "module",
2333
"main": "./dist/index.mjs",
34+
"module": "./dist/index.mjs",
35+
"types": "./dist/index.d.mts",
2436
"exports": {
2537
".": "./src/index.ts",
2638
"./package.json": "./package.json"
2739
},
28-
"module": "./dist/index.mjs",
29-
"types": "./dist/index.d.mts",
30-
"files": [
31-
"!examples/*.test.ts",
32-
"!src/**/*.test-d.ts",
33-
"!src/**/*.test.ts",
34-
"LICENSE",
35-
"README.md",
36-
"dist",
37-
"examples/*.ts",
38-
"src"
39-
],
40+
"publishConfig": {
41+
"exports": {
42+
".": "./dist/index.mjs",
43+
"./package.json": "./package.json"
44+
}
45+
},
4046
"scripts": {
4147
"build": "tsdown",
4248
"format": "pnpm --no-bail --aggregate-output run '/^format:/'",
@@ -69,9 +75,6 @@
6975
"lefthook": "catalog:dev",
7076
"msw": "catalog:dev",
7177
"openai": "catalog:peer",
72-
"oxfmt": "catalog:dev",
73-
"oxlint": "catalog:dev",
74-
"oxlint-tsgolint": "catalog:dev",
7578
"publint": "catalog:dev",
7679
"tsdown": "catalog:dev",
7780
"type-fest": "catalog:dev",
@@ -100,10 +103,6 @@
100103
"optional": true
101104
}
102105
},
103-
"packageManager": "[email protected]",
104-
"engines": {
105-
"node": ">=20.19.6"
106-
},
107106
"devEngines": {
108107
"runtime": [
109108
{
@@ -113,10 +112,8 @@
113112
}
114113
]
115114
},
116-
"publishConfig": {
117-
"exports": {
118-
".": "./dist/index.mjs",
119-
"./package.json": "./package.json"
120-
}
121-
}
115+
"engines": {
116+
"node": ">=20.19.6"
117+
},
118+
"packageManager": "[email protected]"
122119
}

0 commit comments

Comments
 (0)