Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ on:
branches:
- main
paths:
- '.github/workflows/nodejs.yml'
- 'packages/countries/src/**'
- '.github/workflows/build-test.yml'
- 'packages/countries/**'
- 'packages/scripts/**'
- 'packages/test-js/**'
- 'packages/tsconfig/**'
- 'package.json'
- 'bun.lock'
- 'bunfig.toml'
- 'turbo.json'
- 'biome.json'
- 'tsconfig.json'
- '!.editorconfig'
- '!**LICENSE*'
- '!**README*'
Comment thread
dmythro marked this conversation as resolved.
Outdated
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"preset": "recommended",
"suspicious": {
"noExplicitAny": "warn"
}
Expand Down
84 changes: 42 additions & 42 deletions bun.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
],
"catalogs": {
"default": {
"@biomejs/biome": "2.4.5",
"@types/bun": "1.3.10",
"turbo": "2.8.13",
"typescript": "5.9.3"
"@biomejs/biome": "2.5.0",
"@types/bun": "1.3.14",
"turbo": "2.9.18",
"typescript": "6.0.3"
}
}
},
Expand All @@ -28,7 +28,7 @@
"devDependencies": {
"@biomejs/biome": "catalog:default",
"@types/bun": "catalog:default",
"lefthook": "2.1.2",
"lefthook": "2.1.9",
"turbo": "catalog:default",
"typescript": "catalog:default"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/countries/tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"allowImportingTsExtensions": true,
"noEmit": true,
"esModuleInterop": true,
"module": "NodeNext",
"moduleResolution": "Node",
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true
"strict": true,
"types": ["node"]
}
}
1 change: 0 additions & 1 deletion packages/countries/tsconfig-cjs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig-base.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/cjs",
"target": "ES6"
}
Expand Down
1 change: 0 additions & 1 deletion packages/countries/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "./tsconfig-base.json",
"compilerOptions": {
"composite": true,
"module": "ESNext",
"outDir": "../../dist/mjs",
"target": "ESNext"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/tasks/generateSql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function sqlKeys(fields: IDataField[]) {
}

function sqlValues(table: string, fields: IDataField[], values: (string | number)[][]): string {
if (!values || !values.length) {
if (!values?.length) {
Comment thread
dmythro marked this conversation as resolved.
Outdated
return ''
}

Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const getCurrenciesInUse = (
}

export const getStringFromArray = (arr: string[]): string => {
if (!arr || !arr.length) {
if (!arr?.length) {
Comment thread
dmythro marked this conversation as resolved.
Outdated
return ''
}

Expand Down