Skip to content

Commit

Permalink
[chore]: Introduced yarn typecheck to validate types. Moved test acti…
Browse files Browse the repository at this point in the history
…on onto workflow folder (#25)

Signed-off-by: Giuseppe Macri <[email protected]>
  • Loading branch information
giuseppe-coinbase authored Dec 8, 2023
1 parent 127eb3e commit a62a488
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: yarn install
- name: Type Check
# When fails, please run "yarn typecheck" to your code
run: yarn typecheck
- name: Format Check
# When fails, please run "yarn format:fix" to your code
run: yarn format
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# client-analytics

## 0.0.3

### Patch Changes

- cf1213f: [chore] Introduced yarn typecheck to run tyepscript check

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "client-analytics",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"main": "./dist/client-analytics.umd.cjs",
"module": "./dist/client-analytics.js",
Expand Down
2 changes: 1 addition & 1 deletion src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type CustomConfig = {
metricPath: string;
disabled?: boolean;
onError: (err: Error, metadata?: Record<string, unknown>) => void;
isDebug: boolean;
isDebug?: boolean;
batchEventsPeriod?: number;
batchEventsThreshold?: number;
batchMetricsPeriod?: number;
Expand Down

0 comments on commit a62a488

Please sign in to comment.