@o-zone/scorer-core 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -21
- package/package.json +13 -15
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Orienteering scoring core library with modular exports for server, race, and com
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
pnpm add @o-zone/scorer-core
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -29,21 +29,21 @@ import { ... } from '@o-zone/scorer-core/competition';
|
|
|
29
29
|
|
|
30
30
|
### Setup
|
|
31
31
|
```bash
|
|
32
|
-
|
|
32
|
+
pnpm install
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Build
|
|
36
36
|
```bash
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
pnpm run build # Compile TypeScript → dist/
|
|
38
|
+
pnpm run build:watch # Watch mode for development
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
### Quality Checks
|
|
42
42
|
```bash
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
pnpm run check:types # TypeScript type checking
|
|
44
|
+
pnpm run lint # Code quality with Biome
|
|
45
|
+
pnpm run lint:fix # Auto-fix lint issues
|
|
46
|
+
pnpm run format # Code formatting
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
## Publishing
|
|
@@ -52,7 +52,7 @@ This package uses [Changesets](https://github.com/changesets/changesets) for aut
|
|
|
52
52
|
|
|
53
53
|
### Workflow
|
|
54
54
|
1. Make code changes
|
|
55
|
-
2. Run `
|
|
55
|
+
2. Run `pnpm changeset add` to document changes
|
|
56
56
|
3. Push to main branch
|
|
57
57
|
4. GitHub Actions automatically:
|
|
58
58
|
- Creates a Release PR (bumps version, updates changelog)
|
|
@@ -76,20 +76,20 @@ dist/ # Built output (published to npm)
|
|
|
76
76
|
|
|
77
77
|
| Command | Purpose |
|
|
78
78
|
|---------|---------|
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
79
|
+
| `pnpm run build` | Build TypeScript to dist/ |
|
|
80
|
+
| `pnpm run build:watch` | Watch mode build |
|
|
81
|
+
| `pnpm run check:types` | Type check without emit |
|
|
82
|
+
| `pnpm run lint` | Lint code |
|
|
83
|
+
| `pnpm run lint:fix` | Auto-fix lint issues |
|
|
84
|
+
| `pnpm run format` | Format code |
|
|
85
|
+
| `pnpm changeset add` | Create a changeset |
|
|
86
|
+
| `pnpm run publish` | Build and publish |
|
|
87
87
|
|
|
88
88
|
## Technologies
|
|
89
89
|
|
|
90
90
|
- **Language**: TypeScript 5.3+
|
|
91
|
-
- **Runtime**:
|
|
92
|
-
- **Package Manager**:
|
|
91
|
+
- **Runtime**: pnpm 1.3.5+
|
|
92
|
+
- **Package Manager**: pnpm
|
|
93
93
|
- **Linter**: Biome
|
|
94
94
|
- **Release Management**: Changesets
|
|
95
95
|
- **CI/CD**: GitHub Actions
|
|
@@ -103,6 +103,6 @@ MIT
|
|
|
103
103
|
|
|
104
104
|
1. Create a feature branch
|
|
105
105
|
2. Make your changes
|
|
106
|
-
3. Run `
|
|
107
|
-
4. Create a changeset: `
|
|
106
|
+
3. Run `pnpm run lint:fix` to format
|
|
107
|
+
4. Create a changeset: `pnpm changes`
|
|
108
108
|
5. Push and create a pull request
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o-zone/scorer-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Orienteering scoring core library with modular exports",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,18 +25,6 @@
|
|
|
25
25
|
"files": [
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "tsc --project tsconfig.build.json",
|
|
30
|
-
"build:watch": "tsc --project tsconfig.build.json --watch",
|
|
31
|
-
"changes": "bun changeset add",
|
|
32
|
-
"changeset": "bun changeset",
|
|
33
|
-
"changeset:release": "bun changeset version && npm run build",
|
|
34
|
-
"check:types": "tsc --noEmit",
|
|
35
|
-
"format": "biome format . --write",
|
|
36
|
-
"lint": "biome check .",
|
|
37
|
-
"lint:fix": "biome check . --write",
|
|
38
|
-
"publish": "npm run build && bun changeset publish"
|
|
39
|
-
},
|
|
40
28
|
"dependencies": {
|
|
41
29
|
"zod": "^4.3.6"
|
|
42
30
|
},
|
|
@@ -51,8 +39,18 @@
|
|
|
51
39
|
"peerDependencies": {
|
|
52
40
|
"typescript": "^5"
|
|
53
41
|
},
|
|
54
|
-
"packageManager": "bun@1.3.5",
|
|
55
42
|
"publishConfig": {
|
|
56
43
|
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc --project tsconfig.build.json",
|
|
47
|
+
"build:watch": "tsc --project tsconfig.build.json --watch",
|
|
48
|
+
"changes": "pnpm changeset add",
|
|
49
|
+
"changeset:publish": "npm run build && pnpm changeset publish",
|
|
50
|
+
"changeset:release": "pnpm changeset version && npm run build",
|
|
51
|
+
"check:types": "tsc --noEmit",
|
|
52
|
+
"format": "biome format . --write",
|
|
53
|
+
"lint": "biome check .",
|
|
54
|
+
"lint:fix": "biome check . --write"
|
|
57
55
|
}
|
|
58
|
-
}
|
|
56
|
+
}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC7E,cAAc,aAAa,CAAC"}
|
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,OAAO,EAAE,UAAU,EAAa,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAoB,MAAM,wBAAwB,CAAC;AAC7E,cAAc,aAAa,CAAC"}
|