Skip to content

Commit a0c92eb

Browse files
committed
feat: upgrade a number of dependencies in the templates
1 parent 1b62c6b commit a0c92eb

File tree

6 files changed

+767
-934
lines changed

6 files changed

+767
-934
lines changed

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,32 +41,32 @@
4141
"*.{js,jsx,ts,tsx}": "yarn eslint src --cache --fix"
4242
},
4343
"devDependencies": {
44-
"@commitlint/cli": "^19.3.0",
45-
"@commitlint/config-conventional": "^19.2.2",
46-
"@openapi-typescript-infra/coconfig": "^4.4.0",
47-
"@semantic-release/github": "^10.0.3",
44+
"@commitlint/cli": "^19.5.0",
45+
"@commitlint/config-conventional": "^19.5.0",
46+
"@openapi-typescript-infra/coconfig": "^4.6.0",
47+
"@semantic-release/github": "^11.0.0",
4848
"@types/configstore": "^6.0.2",
4949
"@types/handlebars-helpers": "^0.5.6",
5050
"@types/minimist": "^1.2.5",
51-
"@types/node": "^20.12.8",
51+
"@types/node": "^22.8.4",
5252
"@types/parse-git-config": "^3.0.4",
5353
"@types/pascalcase": "^1.0.3",
5454
"@typescript-eslint/eslint-plugin": "^6.21.0",
5555
"@typescript-eslint/parser": "^6.21.0",
56-
"coconfig": "^1.5.2",
57-
"eslint": "^8.57.0",
56+
"coconfig": "^1.6.1",
57+
"eslint": "^8.57.1",
5858
"eslint-config-prettier": "^9.1.0",
59-
"eslint-import-resolver-typescript": "^3.6.1",
60-
"eslint-plugin-import": "^2.29.1",
59+
"eslint-import-resolver-typescript": "^3.6.3",
60+
"eslint-plugin-import": "^2.31.0",
6161
"pinst": "^3.0.0",
62-
"prettier": "^3.2.5",
63-
"typescript": "^5.4.5"
62+
"prettier": "^3.3.3",
63+
"typescript": "^5.6.3"
6464
},
6565
"packageManager": "[email protected]",
6666
"dependencies": {
67-
"@readme/openapi-parser": "^2.5.1",
68-
"boxen": "^7.1.1",
69-
"configstore": "^6.0.0",
67+
"@readme/openapi-parser": "^2.6.0",
68+
"boxen": "^8.0.1",
69+
"configstore": "^7.0.0",
7070
"handlebars-helpers": "^0.10.0",
7171
"minimist": "^1.2.8",
7272
"mkdirp": "^3.0.1",

src/dependencies.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,42 @@ function sortByKey(deps: Record<string, string>) {
99

1010
export function dependencies({ features }: { features: string[] }) {
1111
const deps = {
12-
'@openapi-typescript-infra/coconfig': '^4.2.0',
12+
'@openapi-typescript-infra/coconfig': '^4.6.0',
1313
'@openapi-typescript-infra/service': '^4.5.1',
1414
} as Record<string, string>;
1515
if (features.includes('db')) {
1616
Object.assign(deps, {
1717
'db-migrate': '^0.11.14',
1818
'db-migrate-pg': '^1.5.2',
19-
kysely: '^0.26.3',
20-
pg: '^8.11.3',
19+
kysely: '^0.27.4',
20+
pg: '^8.13.1',
2121
});
2222
}
2323
if (features.includes('redis')) {
2424
Object.assign(deps, {
25-
ioredis: '^5.3.2',
25+
ioredis: '^5.4.1',
2626
});
2727
}
2828
return sortByKey(deps);
2929
}
3030

3131
export function devDependencies({ features }: { features: string[] }) {
3232
const deps = {
33-
coconfig: '^0.13.3',
34-
'@openapi-typescript-infra/service-tester': '^4.0.1',
35-
'@typescript-eslint/eslint-plugin': '^6.8.0',
36-
'@typescript-eslint/parser': '^6.8.0',
33+
coconfig: '^1.6.1',
34+
'@openapi-typescript-infra/service-tester': '^6.1.1',
35+
'@typescript-eslint/eslint-plugin': '^7.0.0',
36+
'@typescript-eslint/parser': '^7.0.0',
3737
eslint: '^8.51.0',
3838
'eslint-config-prettier': '^9.0.0',
3939
'eslint-plugin-import': '^2.28.1',
40-
prettier: '^3.0.3',
41-
typescript: '^5.2.2',
42-
vitest: '^0.34.4',
40+
prettier: '^3.3.3',
41+
typescript: '^5.6.3',
42+
vitest: '^2.1.4',
4343
};
4444
if (features.includes('db')) {
4545
Object.assign(deps, {
4646
'run-pg-sql': '^1.2.0',
47-
'kysely-codegen': '^0.10.1',
47+
'kysely-codegen': '^0.17.0',
4848
});
4949
}
5050
return sortByKey(deps);

templates/all/package.json.hbs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
"private": true,
44
"version": "1.0.0",
55
"description": "{{desc}}",
6-
"main": "build/index.js",
6+
"main": "./build/index.js",
7+
"exports": "./build/index.js",
8+
"type": "module",
79
"types": "build/index.d.ts",
10+
"imports": {
11+
"#src/*": "./src/*"
12+
},
813
"scripts": {
914
"test": "vitest",
1015
"build": "make",

templates/all/src/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './service';
2-
export * from './config';
1+
export * from './service.js';
2+
export * from './config.js';

templates/all/src/types/service.ts.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import type {
77
} from '@openapi-typescript-infra/service';
88

99
{{#inArray features 'db'}}
10-
import type { DB } from '../generated/database';
10+
import type { DB } from '../generated/database.js';
1111
{{/inArray}}
12-
import type { operationHandlers } from '../generated/service';
12+
import type { operationHandlers } from '../generated/service.js';
1313

14-
import type { {{properCase name}}, {{properCase name}}ConfigSchema } from './types';
14+
import type { {{properCase name}}, {{properCase name}}ConfigSchema } from './types.js';
1515

1616
export interface {{properCase name}}Locals extends ServiceLocals<{{properCase name}}ConfigSchema> {
1717
{{#inArray features 'db'}} db: Kysely<DB>;

0 commit comments

Comments
 (0)