@thangnv-dev/time-common 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. package/README.md +37 -0
  2. package/package.json +5 -6
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @thangnv-dev/time-common
2
+
3
+ Reusable library package in this monorepo.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @thangnv-dev/time-common
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import * as api from '@thangnv-dev/time-common'
15
+ ```
16
+
17
+ ## Public API
18
+
19
+ This package exports the following API surface from `src/index.ts`:
20
+
21
+ ```ts
22
+ export type { Clock } from './clock.js'
23
+ export { SystemClock } from './clock.js'
24
+ export type { Timer, TimerHandle } from './timer.js'
25
+ export { SystemTimer } from './timer.js'
26
+ export { TimeTravelClock } from './time-travel-clock.js'
27
+ export { TimeTravelTimer } from './time-travel-timer.js'
28
+ export { TimeTravelTime } from './time-travel-time.js'
29
+
30
+ ```
31
+
32
+ ## Development
33
+
34
+ ```bash
35
+ yarn workspace @thangnv-dev/time-common build
36
+ yarn workspace @thangnv-dev/time-common test
37
+ ```
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@thangnv-dev/time-common",
3
- "version": "0.0.2",
4
- "private": false,
3
+ "version": "0.0.3",
5
4
  "publishConfig": {
6
5
  "access": "public"
7
6
  },
@@ -24,12 +23,12 @@
24
23
  "test": "vitest run"
25
24
  },
26
25
  "dependencies": {
27
- "@thangnv-dev/error-common": "workspace:^"
26
+ "@thangnv-dev/error-common": "^0.0.3"
28
27
  },
29
28
  "devDependencies": {
30
- "@typescript-eslint/eslint-plugin": "^8.56.0",
31
- "@typescript-eslint/parser": "^8.56.0",
32
- "eslint": "^10.0.0",
29
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
30
+ "@typescript-eslint/parser": "^8.56.1",
31
+ "eslint": "^10.0.2",
33
32
  "typescript": "^5.9.3",
34
33
  "vitest": "^4.0.18"
35
34
  },