Skip to content

Commit f93c510

Browse files
committed
ci: fix formatting
1 parent df96113 commit f93c510

7 files changed

Lines changed: 367 additions & 370 deletions

File tree

biome.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"formatter": {
4-
"formatWithErrors": true,
5-
"lineWidth": 120,
6-
"indentWidth": 2,
7-
"bracketSpacing": true,
8-
"indentStyle": "space"
9-
}
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"formatter": {
4+
"formatWithErrors": true,
5+
"lineWidth": 120,
6+
"indentWidth": 2,
7+
"bracketSpacing": true,
8+
"indentStyle": "space"
9+
}
1010
}

build.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
import type { BuildConfig } from 'bun'
1+
import type { BuildConfig } from "bun";
22

3-
import dts from 'bun-plugin-dts'
3+
import dts from "bun-plugin-dts";
44

55
const buildConfig: BuildConfig = {
6-
entrypoints: ['./src/index.ts'],
7-
outdir: './dist',
8-
minify: true,
9-
}
6+
entrypoints: ["./src/index.ts"],
7+
outdir: "./dist",
8+
minify: true,
9+
};
1010

1111
await Promise.all([
12-
Bun.build({
13-
...buildConfig,
14-
plugins: [dts()],
15-
format: 'esm',
16-
naming: "[dir]/[name].js",
17-
}),
18-
Bun.build({
19-
...buildConfig,
20-
format: 'cjs',
21-
naming: "[dir]/[name].cjs",
22-
})
23-
])
12+
Bun.build({
13+
...buildConfig,
14+
plugins: [dts()],
15+
format: "esm",
16+
naming: "[dir]/[name].js",
17+
}),
18+
Bun.build({
19+
...buildConfig,
20+
format: "cjs",
21+
naming: "[dir]/[name].cjs",
22+
}),
23+
]);

package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
{
2-
"name": "@devhaven/unit-conversion",
3-
"version": "0.0.5",
4-
"description": "A type-safe unit conversion library.",
5-
"license": "Apache-2.0",
6-
"author": "Ram Shankar Choudhary",
7-
"type": "module",
8-
"main": "./dist/index.js",
9-
"module": "./dist/index.js",
10-
"types": "./dist/index.d.ts",
11-
"exports": {
12-
"types": "./dist/index.d.ts",
13-
"import": "./dist/index.js",
14-
"require": "./dist/index.cjs"
15-
},
16-
"scripts": {
17-
"build": "bun run build.ts",
18-
"dev": "bun --watch run src/index.ts",
19-
"lint": "biome check src",
20-
"lint:fix": "biome check --fix src",
21-
"test": "vitest watch",
22-
"test:run": "vitest run",
23-
"test:watch": "vitest watch",
24-
"test:ui": "vitest --ui",
25-
"check:deps": "bunx knip"
26-
},
27-
"files": [
28-
"dist"
29-
],
30-
"keywords": [
31-
"bun",
32-
"unit-conversion"
33-
],
34-
"homepage": "https://github.com/BlankRiser/unit-conversion#readme",
35-
"repository": {
36-
"type": "git",
37-
"url": "git+https://github.com/BlankRiser/unit-conversion.git"
38-
},
39-
"bugs": {
40-
"url": "https://github.com/BlankRiser/unit-conversion/issues"
41-
},
42-
"devDependencies": {
43-
"@biomejs/biome": "2.1.3",
44-
"@types/bun": "1.2.19",
45-
"@vitest/ui": "3.2.4",
46-
"bun-plugin-dts": "0.3.0",
47-
"typescript": "5.9.2",
48-
"vitest": "3.2.4"
49-
}
2+
"name": "@devhaven/unit-conversion",
3+
"version": "0.0.5",
4+
"description": "A type-safe unit conversion library.",
5+
"license": "Apache-2.0",
6+
"author": "Ram Shankar Choudhary",
7+
"type": "module",
8+
"main": "./dist/index.js",
9+
"module": "./dist/index.js",
10+
"types": "./dist/index.d.ts",
11+
"exports": {
12+
"types": "./dist/index.d.ts",
13+
"import": "./dist/index.js",
14+
"require": "./dist/index.cjs"
15+
},
16+
"scripts": {
17+
"build": "bun run build.ts",
18+
"dev": "bun --watch run src/index.ts",
19+
"lint": "biome check src",
20+
"lint:fix": "biome check --fix src",
21+
"test": "vitest watch",
22+
"test:run": "vitest run",
23+
"test:watch": "vitest watch",
24+
"test:ui": "vitest --ui",
25+
"check:deps": "bunx knip"
26+
},
27+
"files": [
28+
"dist"
29+
],
30+
"keywords": [
31+
"bun",
32+
"unit-conversion"
33+
],
34+
"homepage": "https://github.com/BlankRiser/unit-conversion#readme",
35+
"repository": {
36+
"type": "git",
37+
"url": "git+https://github.com/BlankRiser/unit-conversion.git"
38+
},
39+
"bugs": {
40+
"url": "https://github.com/BlankRiser/unit-conversion/issues"
41+
},
42+
"devDependencies": {
43+
"@biomejs/biome": "2.1.3",
44+
"@types/bun": "1.2.19",
45+
"@vitest/ui": "3.2.4",
46+
"bun-plugin-dts": "0.3.0",
47+
"typescript": "5.9.2",
48+
"vitest": "3.2.4"
49+
}
5050
}

0 commit comments

Comments
 (0)